mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* security capabilities on filesystems
@ 2006-01-29 20:04 Lukasz Stelmach
  2006-01-30  0:00 ` Peter Gordon
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Lukasz Stelmach @ 2006-01-29 20:04 UTC (permalink / raw)
  To: linux-kernel; +Cc: Łukasz Stelmach

[-- Attachment #1: Type: text/plain, Size: 430 bytes --]

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.
-- 
Było mi bardzo miło.                    Czwarta pospolita klęska, [...]
>Łukasz<                      Już nie katolicka lecz złodziejska.  (c)PP


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 256 bytes --]

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

* Re: security capabilities on filesystems
  2006-01-29 20:04 security capabilities on filesystems Lukasz Stelmach
@ 2006-01-30  0:00 ` Peter Gordon
  2006-01-30  0:33   ` Lukasz Stelmach
  2006-01-30  8:52 ` Arjan van de Ven
  2006-01-30 16:13 ` Stephen Smalley
  2 siblings, 1 reply; 5+ messages in thread
From: Peter Gordon @ 2006-01-30  0:00 UTC (permalink / raw)
  To: linux-kernel; +Cc: Lukasz Stelmach

On 1/29/06, Lukasz Stelmach <stlman@poczta.fm> wrote:
> 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.

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

* Re: security capabilities on filesystems
  2006-01-30  0:00 ` Peter Gordon
@ 2006-01-30  0:33   ` Lukasz Stelmach
  0 siblings, 0 replies; 5+ messages in thread
From: Lukasz Stelmach @ 2006-01-30  0:33 UTC (permalink / raw)
  To: Peter Gordon; +Cc: linux-kernel

[-- Attachment #1: Type: text/plain, Size: 1063 bytes --]

Peter Gordon wrote:

>>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.

> Hope this helps.

I am afraid no :-(

Bye.
-- 
Było mi bardzo miło.                    Czwarta pospolita klęska, [...]
>Łukasz<                      Już nie katolicka lecz złodziejska.  (c)PP


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 256 bytes --]

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

* Re: security capabilities on filesystems
  2006-01-29 20:04 security capabilities on filesystems Lukasz Stelmach
  2006-01-30  0:00 ` Peter Gordon
@ 2006-01-30  8:52 ` Arjan van de Ven
  2006-01-30 16:13 ` Stephen Smalley
  2 siblings, 0 replies; 5+ messages in thread
From: Arjan van de Ven @ 2006-01-30  8:52 UTC (permalink / raw)
  To: Lukasz Stelmach; +Cc: linux-kernel

On Sun, 2006-01-29 at 21:04 +0100, Lukasz Stelmach wrote:
> 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...


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

* Re: security capabilities on filesystems
  2006-01-29 20:04 security capabilities on filesystems Lukasz Stelmach
  2006-01-30  0:00 ` Peter Gordon
  2006-01-30  8:52 ` Arjan van de Ven
@ 2006-01-30 16:13 ` Stephen Smalley
  2 siblings, 0 replies; 5+ messages in thread
From: Stephen Smalley @ 2006-01-30 16:13 UTC (permalink / raw)
  To: Lukasz Stelmach; +Cc: linux-kernel

On Sun, 2006-01-29 at 21:04 +0100, Lukasz Stelmach wrote:
> 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

-- 
Stephen Smalley
National Security Agency


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

end of thread, other threads:[~2006-01-30 16:07 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-01-29 20:04 security capabilities on filesystems Lukasz Stelmach
2006-01-30  0:00 ` Peter Gordon
2006-01-30  0:33   ` Lukasz Stelmach
2006-01-30  8:52 ` Arjan van de Ven
2006-01-30 16:13 ` Stephen Smalley

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®