Skip to contentSkip to conversation

security capabilities on filesystems

DISCUSSION Lukasz Stelmach 4 participants 5 messages Jan 29, 2006 – Jan 30, 2006

lore
Share & tools
lore
#0 lore raw

Greetings.

I've poke around for some information but all I got (was this lousy t-shirt) that there is no support for capablities stored on a filesystem. However, I'd like to ask if there are any chances to see this feature soon.

Best regards.

PS. Please CC.

Signature · 1 line
Było mi bardzo miło.                    Czwarta pospolita klęska, [...]
Quoted 1 line

Łukasz< Już nie katolicka lecz złodziejska. (c)PP

#1 lore raw
Quoted 6 lines · Lukasz Stelmach

Greetings.

I've poke around for some information but all I got (was this lousy t-shirt) that there is no support for capablities stored on a filesystem. However, I'd like to ask if there are any chances to see this feature soon.

What do you mean exactly? Ext2 (and its journalled cousin, Ext3; I'm not certain of other filesystems) can both store POSIX-style Access Control Lists (ACLs) and SELinux labeling as part of the inode metadata. Hope this helps.

#2 lore raw
Quoted 8 lines · Peter Gordon
Quoted 3 lines

I've poke around for some information but all I got (was this lousy t-shirt) that there is no support for capablities stored on a filesystem. However, I'd like to ask if there are any chances to see this feature soon.

What do you mean exactly? Ext2 (and its journalled cousin, Ext3; I'm not certain of other filesystems) can both store POSIX-style Access Control Lists (ACLs) and SELinux labeling as part of the inode metadata.

Reiserfs, xfs and jfs too.

Yet they all can't store, or I don't know how to set it up, POSIX capabilities for executables. Those like CAP_NET_RAW or CAP_SYS_RAWIO. The former is useful for ping the latter (was?) for X11. I know that this functionality can be achived with SELinux but it's to havy-weight for me. I'd rather implement BSD seclevels and capabilities.

Quoted 1 line

Hope this helps.

I am afraid no :-(

Bye.

Signature · 1 line
Było mi bardzo miło.                    Czwarta pospolita klęska, [...]
Quoted 1 line

Łukasz< Już nie katolicka lecz złodziejska. (c)PP

#3 lore raw
In reply to Lukasz Stelmach
Quoted 5 lines · Lukasz Stelmach

Greetings.

I've poke around for some information but all I got (was this lousy t-shirt) that there is no support for capablities stored on a filesystem. However, I'd like to ask if there are any chances to see this feature soon.

this has been asked many many times, and the answer seems to always have been "no because that's not secure"; I suggest google as a way to find out more details...

#4 lore raw
In reply to Lukasz Stelmach
Quoted 5 lines · Lukasz Stelmach

Greetings.

I've poke around for some information but all I got (was this lousy t-shirt) that there is no support for capablities stored on a filesystem. However, I'd like to ask if there are any chances to see this feature soon.

Storage of the capability bits isn't the hard part; that is especially easy these days given the extensible security namespace for extended attributes that was introduced for SELinux (but not limited to it).

# touch foo
# setfattr -n security.capability.effcap -v 0xdeadbeef foo
# getfattr -e hex -n security.capability.effcap foo
# file: foo
security.capability.effcap=0xdeadbeef
Signature · 2 lines
Stephen Smalley
National Security Agency