From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932457Ab0JLNGO (ORCPT ); Tue, 12 Oct 2010 09:06:14 -0400 Received: from e3.ny.us.ibm.com ([32.97.182.143]:56118 "EHLO e3.ny.us.ibm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932278Ab0JLNGM (ORCPT ); Tue, 12 Oct 2010 09:06:12 -0400 Subject: Re: [PATCH] security: move LSM xattrnames to xattr.h From: Mimi Zohar To: Ozan =?UTF-8?Q?=C3=87a=C4=9Flayan?= 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 In-Reply-To: <201010121414.14486.ozan@pardus.org.tr> References: <1278011263-7951-1-git-send-email-zohar@linux.vnet.ibm.com> <201010121414.14486.ozan@pardus.org.tr> Content-Type: text/plain; charset="UTF-8" Date: Tue, 12 Oct 2010 09:06:09 -0400 Message-ID: <1286888769.2670.5.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.30.3 (2.30.3-1.fc13) Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 2010-10-12 at 14:14 +0300, Ozan Çağlayan wrote: > Cuma 02 Temmuz 2010 günü (saat 03:16:01) James Morris şunları yazmıştı: > > On Thu, 1 Jul 2010, Mimi Zohar wrote: > > > Make the security extended attributes names global. Updated to move > > > the remaining Smack xattrs. > > > > > > Signed-off-by: Mimi Zohar > > > Acked-by: Serge Hallyn > > > > This drops > > #define XATTR_CAPS_SUFFIX "capability" > #define XATTR_NAME_CAPS XATTR_SECURITY_PREFIX XATTR_CAPS_SUFFIX > > definitions from capability.h and puts them in xattr.h's #ifdef __KERNEL__ > section making them invisible to userspace like libcap-ng causing build > failures. > > 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