From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mimi Zohar Subject: Re: [PATCH] security: move LSM xattrnames to xattr.h Date: Tue, 12 Oct 2010 09:06:09 -0400 Message-ID: <1286888769.2670.5.camel@localhost.localdomain> References: <1278011263-7951-1-git-send-email-zohar@linux.vnet.ibm.com> <201010121414.14486.ozan@pardus.org.tr> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: QUOTED-PRINTABLE Cc: Steve Grubb , James Morris , linux-kernel@vger.kernel.org, linux-security-module@vger.kernel.org, linux-fsdevel@vger.kernel.org, Casey Schaufler , David Safford , Dave Hansen , Mimi Zohar To: Ozan =?UTF-8?Q?=C3=87a=C4=9Flayan?= Return-path: In-Reply-To: <201010121414.14486.ozan@pardus.org.tr> Sender: linux-security-module-owner@vger.kernel.org List-Id: linux-fsdevel.vger.kernel.org On Tue, 2010-10-12 at 14:14 +0300, Ozan =C3=87a=C4=9Flayan wrote: > Cuma 02 Temmuz 2010 g=C3=BCn=C3=BC (saat 03:16:01) James Morris =C5=9F= unlar=C4=B1 yazm=C4=B1=C5=9Ft=C4=B1: > > On Thu, 1 Jul 2010, Mimi Zohar wrote: > > > Make the security extended attributes names global. Updated to mo= ve > > > the remaining Smack xattrs. > > >=20 > > > Signed-off-by: Mimi Zohar > > > Acked-by: Serge Hallyn > >=20 >=20 > This drops=20 >=20 > #define XATTR_CAPS_SUFFIX "capability" > #define XATTR_NAME_CAPS XATTR_SECURITY_PREFIX XATTR_CAPS_SUFFIX >=20 > definitions from capability.h and puts them in xattr.h's #ifdef __KER= NEL__=20 > section making them invisible to userspace like libcap-ng causing bui= ld=20 > failures. >=20 > Am I wrong? You're correct. It's the same reason that cap-ng.c has to define 'security'. #ifdef VFS_CAP_U32 #include #define XATTR_SECURITY_PREFIX "security." Am cc'ing Steve. Mimi -- To unsubscribe from this list: send the line "unsubscribe linux-securit= y-module" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html