All of lore.kernel.org
 help / color / mirror / Atom feed
* Suppressing selinux label getxattrs on FUSE
@ 2012-03-06 11:51 Han-Wen Nienhuys
  2012-03-06 13:07 ` Christopher J. PeBenito
  0 siblings, 1 reply; 3+ messages in thread
From: Han-Wen Nienhuys @ 2012-03-06 11:51 UTC (permalink / raw)
  To: selinux

Hi there,

What is the best way to stop to SELinux from trying read ACL security
labels for (FUSE) mounts?

Background:

>From what I read, Selinux is not really working on FUSE filesystems,
however, when I run a FUSE filesystem, I see various GETXATTR calls
passing by asking for

security.capability
system.posix_acl_default
system.posix_acl_access

In the most common use case, it is the user that runs the FUSE daemon,
and the mount is only visible to him.  In this case, inspection of
security/access labels haves no sense at all. Since the calls have
overhead (each one requires a context switch, costing about 10us), I
would like to suppress them.

-- 
Han-Wen Nienhuys - hanwen@xs4all.nl - http://www.xs4all.nl/~hanwen

--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to majordomo@tycho.nsa.gov with
the words "unsubscribe selinux" without quotes as the message.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Suppressing selinux label getxattrs on FUSE
  2012-03-06 11:51 Suppressing selinux label getxattrs on FUSE Han-Wen Nienhuys
@ 2012-03-06 13:07 ` Christopher J. PeBenito
  2012-03-06 15:31   ` Han-Wen Nienhuys
  0 siblings, 1 reply; 3+ messages in thread
From: Christopher J. PeBenito @ 2012-03-06 13:07 UTC (permalink / raw)
  To: hanwen; +Cc: Han-Wen Nienhuys, selinux

On 03/06/12 06:51, Han-Wen Nienhuys wrote:
> Hi there,
> 
> What is the best way to stop to SELinux from trying read ACL security
> labels for (FUSE) mounts?
> 
> Background:
> 
> From what I read, Selinux is not really working on FUSE filesystems,
> however, when I run a FUSE filesystem, I see various GETXATTR calls
> passing by asking for

SELinux uses the security.selinux xattr.
 
> security.capability

I'm guessing this is for fs capabilities.

> system.posix_acl_default
> system.posix_acl_access

POSIX ACL.

You'd presumably have to disable these mechanisms to eliminate this access.

-- 
Chris PeBenito
Tresys Technology, LLC
www.tresys.com | oss.tresys.com

--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to majordomo@tycho.nsa.gov with
the words "unsubscribe selinux" without quotes as the message.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Suppressing selinux label getxattrs on FUSE
  2012-03-06 13:07 ` Christopher J. PeBenito
@ 2012-03-06 15:31   ` Han-Wen Nienhuys
  0 siblings, 0 replies; 3+ messages in thread
From: Han-Wen Nienhuys @ 2012-03-06 15:31 UTC (permalink / raw)
  To: Christopher J. PeBenito; +Cc: selinux

On Tue, Mar 6, 2012 at 10:07 AM, Christopher J. PeBenito
<cpebenito@tresys.com> wrote:
> On 03/06/12 06:51, Han-Wen Nienhuys wrote:
>> Hi there,
>>
>> What is the best way to stop to SELinux from trying read ACL security
>> labels for (FUSE) mounts?
>>
>> Background:
>>
>> From what I read, Selinux is not really working on FUSE filesystems,
>> however, when I run a FUSE filesystem, I see various GETXATTR calls
>> passing by asking for
>
> SELinux uses the security.selinux xattr.
>
>> security.capability
>
> I'm guessing this is for fs capabilities.
>
>> system.posix_acl_default
>> system.posix_acl_access
>
> POSIX ACL.
>
> You'd presumably have to disable these mechanisms to eliminate this access.

Would you have some pointers to background on these mechanisms?  Sorry
for the newbie-ish question.

-- 
Han-Wen Nienhuys - hanwen@xs4all.nl - http://www.xs4all.nl/~hanwen

--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to majordomo@tycho.nsa.gov with
the words "unsubscribe selinux" without quotes as the message.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2012-03-06 15:31 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-03-06 11:51 Suppressing selinux label getxattrs on FUSE Han-Wen Nienhuys
2012-03-06 13:07 ` Christopher J. PeBenito
2012-03-06 15:31   ` Han-Wen Nienhuys

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.