[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <105043.1306691306@turing-police.cc.vt.edu>
Date: Sun, 29 May 2011 13:48:26 -0400
From: Valdis.Kletnieks@...edu
To: Andi Kleen <ak@...ux.intel.com>
Cc: Andi Kleen <andi@...stfloor.org>, linux-kernel@...r.kernel.org,
linux-fsdevel@...r.kernel.org, viro@...iv.linux.org.uk,
chris.mason@...cle.com, josef@...hat.com, agruen@...bit.com,
"Serge E. Hallyn" <serue@...ibm.com>
Subject: Re: [PATCH 1/4] Cache xattr security drop check for write
On Sun, 29 May 2011 07:24:32 PDT, Andi Kleen said:
> These are not for selinux xattrs, but capability xattrs.
+#define S_NOSEC 4096 /* no suid or xattr security attributes */
Sorry for reading that wrong, since selinux stores stuff under security.* xattr
as well.
+ int issec = !strncmp(name, XATTR_SECURITY_PREFIX,
+ XATTR_SECURITY_PREFIX_LEN);
is going to match *any* security.* attribute, including SELinux ones stored under
security.selinux. If you wanted to be capability-specific, maybe youw anted these
two:
#define XATTR_CAPS_SUFFIX "capability"
#define XATTR_NAME_CAPS XATTR_SECURITY_PREFIX XATTR_CAPS_SUFFIX
Content of type "application/pgp-signature" skipped
Powered by blists - more mailing lists