Re: [patch] smack: remove unnecessary xattr checks

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Casey Schaufler
Date: Tuesday, July 1, 2008 - 5:01 pm

Miklos Szeredi wrote:
Nacked-by: Casey Schaufler <casey@schaufler-ca.com>

I tried your patch without looking at it and found that
getxattr is too permissive with your changes. I found that

   % ls -l foo

will fail while

   % attr -S -g SMACK64 foo

will succeed. Of course if stat() fails due to a Smack
access check getxattr() ought to as well. So it would
appear that the call to security_inode_permission is not
sufficient.




-- 

----------------------

Casey Schaufler
casey@schaufler-ca.com
650.906.1780


--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[patch] smack: remove unnecessary xattr checks, Miklos Szeredi, (Tue Jul 1, 1:47 pm)
Re: [patch] smack: remove unnecessary xattr checks, Casey Schaufler, (Tue Jul 1, 2:47 pm)
Re: [patch] smack: remove unnecessary xattr checks, Casey Schaufler, (Tue Jul 1, 5:01 pm)
Re: [patch] smack: remove unnecessary xattr checks, Miklos Szeredi, (Wed Jul 2, 12:30 am)