Re: implement-file-posix-capabilities.patch

2007-07-04 Thread Casey Schaufler
--- Andrew Morgan <[EMAIL PROTECTED]> wrote: > no one has yet actually > given an example of where fE being richer than a simple binary helps > anything. Until I see an example, I'm going to hold the position that > this is needless "complexity". The only counter to this argument is that you

Re: implement-file-posix-capabilities.patch

2007-07-04 Thread Andrew Morgan
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Serge E. Hallyn wrote: > 1. Exactly Andrew describes. Once userspace switches to a new cap > format, an older kernel simply won't support them Mmm. Let me see. I think I prefer this one! :-) > 2. As Andrew describes, but also encode the version

Re: implement-file-posix-capabilities.patch

2007-07-04 Thread Andrew Morgan
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Serge E. Hallyn wrote: 1. Exactly Andrew describes. Once userspace switches to a new cap format, an older kernel simply won't support them Mmm. Let me see. I think I prefer this one! :-) 2. As Andrew describes, but also encode the version number

Re: implement-file-posix-capabilities.patch

2007-07-04 Thread Casey Schaufler
--- Andrew Morgan [EMAIL PROTECTED] wrote: no one has yet actually given an example of where fE being richer than a simple binary helps anything. Until I see an example, I'm going to hold the position that this is needless complexity. The only counter to this argument is that you now have a

Re: implement-file-posix-capabilities.patch

2007-07-02 Thread Serge E. Hallyn
All, Regarding future/backward compatibility of file capabilities: Quoting Andrew Morgan ([EMAIL PROTECTED]): > -BEGIN PGP SIGNED MESSAGE- ... > #define VFS_CAP_REVISION_MASK 0xFF00 > #define VFS_CAP_REVISION 0x0100 > > #define VFS_CAP_FLAGS_MASK

Re: implement-file-posix-capabilities.patch

2007-07-02 Thread Serge E. Hallyn
All, Regarding future/backward compatibility of file capabilities: Quoting Andrew Morgan ([EMAIL PROTECTED]): -BEGIN PGP SIGNED MESSAGE- ... #define VFS_CAP_REVISION_MASK 0xFF00 #define VFS_CAP_REVISION 0x0100 #define VFS_CAP_FLAGS_MASK

Re: implement-file-posix-capabilities.patch

2007-06-29 Thread Casey Schaufler
--- Andrew Morgan <[EMAIL PROTECTED]> wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Casey Schaufler wrote: > >> Would there be a difference between that and setting either fI or fP > >> (depending on your intent) to those caps, and setting fE=1 in Andrew's > >> scheme? > > > >

Re: implement-file-posix-capabilities.patch

2007-06-29 Thread Serge E. Hallyn
Quoting Andrew Morgan ([EMAIL PROTECTED]): > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Casey Schaufler wrote: > >> Would there be a difference between that and setting either fI or fP > >> (depending on your intent) to those caps, and setting fE=1 in Andrew's > >> scheme? > > > > Arg,

Re: implement-file-posix-capabilities.patch

2007-06-29 Thread Serge E. Hallyn
Quoting Andrew Morgan ([EMAIL PROTECTED]): -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Casey Schaufler wrote: Would there be a difference between that and setting either fI or fP (depending on your intent) to those caps, and setting fE=1 in Andrew's scheme? Arg, you're making me

Re: implement-file-posix-capabilities.patch

2007-06-29 Thread Casey Schaufler
--- Andrew Morgan [EMAIL PROTECTED] wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Casey Schaufler wrote: Would there be a difference between that and setting either fI or fP (depending on your intent) to those caps, and setting fE=1 in Andrew's scheme? Arg, you're making

Re: implement-file-posix-capabilities.patch

2007-06-28 Thread Andrew Morgan
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Casey Schaufler wrote: >> Would there be a difference between that and setting either fI or fP >> (depending on your intent) to those caps, and setting fE=1 in Andrew's >> scheme? > > Arg, you're making me think. The POSIX group went through this, >

Re: implement-file-posix-capabilities.patch

2007-06-28 Thread Casey Schaufler
--- "Serge E. Hallyn" <[EMAIL PROTECTED]> wrote: > Quoting Casey Schaufler ([EMAIL PROTECTED]): > > > > --- Andrew Morgan <[EMAIL PROTECTED]> wrote: > > > > > -BEGIN PGP SIGNED MESSAGE- > > > Hash: SHA1 > > > > > > Serge E. Hallyn wrote: > > > >> Does that explain it? > > > > > > > >

Re: implement-file-posix-capabilities.patch

2007-06-28 Thread Andrew Morgan
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Casey Schaufler wrote: >> The only reason for having an fE bitmap is to allow a capability-aware >> program (you really trust to do its privileged operations carefully) to >> be lazy and get some of its capabilities raised for free. Perhaps you >> can

Re: implement-file-posix-capabilities.patch

2007-06-28 Thread Serge E. Hallyn
Quoting Casey Schaufler ([EMAIL PROTECTED]): > > --- Andrew Morgan <[EMAIL PROTECTED]> wrote: > > > -BEGIN PGP SIGNED MESSAGE- > > Hash: SHA1 > > > > Serge E. Hallyn wrote: > > >> Does that explain it? > > > > > > Yes, thanks, but then it still could come in handy to have fE be a full

Re: implement-file-posix-capabilities.patch

2007-06-28 Thread Casey Schaufler
--- Andrew Morgan <[EMAIL PROTECTED]> wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Serge E. Hallyn wrote: > >> Does that explain it? > > > > Yes, thanks, but then it still could come in handy to have fE be a full > > bitset, so the application gets some eff caps automatically,

Re: implement-file-posix-capabilities.patch

2007-06-28 Thread Serge E. Hallyn
Quoting Andrew Morgan ([EMAIL PROTECTED]): > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Serge E. Hallyn wrote: > >> Does that explain it? > > > > Yes, thanks, but then it still could come in handy to have fE be a full > > bitset, so the application gets some eff caps automatically,

Re: implement-file-posix-capabilities.patch

2007-06-28 Thread Andrew Morgan
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Serge E. Hallyn wrote: >> Does that explain it? > > Yes, thanks, but then it still could come in handy to have fE be a full > bitset, so the application gets some eff caps automatically, while > others it has to manually set... [We touched on this a

Re: implement-file-posix-capabilities.patch

2007-06-28 Thread Andrew Morgan
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Serge E. Hallyn wrote: Does that explain it? Yes, thanks, but then it still could come in handy to have fE be a full bitset, so the application gets some eff caps automatically, while others it has to manually set... [We touched on this a

Re: implement-file-posix-capabilities.patch

2007-06-28 Thread Serge E. Hallyn
Quoting Andrew Morgan ([EMAIL PROTECTED]): -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Serge E. Hallyn wrote: Does that explain it? Yes, thanks, but then it still could come in handy to have fE be a full bitset, so the application gets some eff caps automatically, while others it

Re: implement-file-posix-capabilities.patch

2007-06-28 Thread Casey Schaufler
--- Andrew Morgan [EMAIL PROTECTED] wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Serge E. Hallyn wrote: Does that explain it? Yes, thanks, but then it still could come in handy to have fE be a full bitset, so the application gets some eff caps automatically, while others

Re: implement-file-posix-capabilities.patch

2007-06-28 Thread Serge E. Hallyn
Quoting Casey Schaufler ([EMAIL PROTECTED]): --- Andrew Morgan [EMAIL PROTECTED] wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Serge E. Hallyn wrote: Does that explain it? Yes, thanks, but then it still could come in handy to have fE be a full bitset, so the

Re: implement-file-posix-capabilities.patch

2007-06-28 Thread Andrew Morgan
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Casey Schaufler wrote: The only reason for having an fE bitmap is to allow a capability-aware program (you really trust to do its privileged operations carefully) to be lazy and get some of its capabilities raised for free. Perhaps you can clarify

Re: implement-file-posix-capabilities.patch

2007-06-28 Thread Casey Schaufler
--- Serge E. Hallyn [EMAIL PROTECTED] wrote: Quoting Casey Schaufler ([EMAIL PROTECTED]): --- Andrew Morgan [EMAIL PROTECTED] wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Serge E. Hallyn wrote: Does that explain it? Yes, thanks, but then it still could

Re: implement-file-posix-capabilities.patch

2007-06-28 Thread Andrew Morgan
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Casey Schaufler wrote: Would there be a difference between that and setting either fI or fP (depending on your intent) to those caps, and setting fE=1 in Andrew's scheme? Arg, you're making me think. The POSIX group went through this, let me

Re: implement-file-posix-capabilities.patch

2007-06-27 Thread Serge E. Hallyn
Quoting Andrew Morgan ([EMAIL PROTECTED]): > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Serge E. Hallyn wrote: > > > >> I don't particularly mind, but can you point out any case where > >> it is an advantage to have the one bit for f'E rather than just > >> drop f'E altogether? Instead

Re: implement-file-posix-capabilities.patch

2007-06-27 Thread Serge E. Hallyn
Quoting Andrew Morgan ([EMAIL PROTECTED]): -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Serge E. Hallyn wrote: I don't particularly mind, but can you point out any case where it is an advantage to have the one bit for f'E rather than just drop f'E altogether? Instead of having

Re: implement-file-posix-capabilities.patch

2007-06-26 Thread Andrew Morgan
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Serge E. Hallyn wrote: > >> I don't particularly mind, but can you point out any case where >> it is an advantage to have the one bit for f'E rather than just >> drop f'E altogether? Instead of having > >> f'I=something >> f'P=something

Re: implement-file-posix-capabilities.patch

2007-06-26 Thread Andrew Morgan
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Serge E. Hallyn wrote: I don't particularly mind, but can you point out any case where it is an advantage to have the one bit for f'E rather than just drop f'E altogether? Instead of having f'I=something f'P=something f'E=off

Re: implement-file-posix-capabilities.patch

2007-06-24 Thread James Morris
On Sun, 24 Jun 2007, Serge E. Hallyn wrote: > > 2) Allocate capability bit-31 for CAP_SETFCAP, and use it to gate > > whether the user can set this xattr on a file or not. CAP_SYS_ADMIN is > > way too overloaded and this functionality is special. > > The functionality is special, but someone

Re: implement-file-posix-capabilities.patch

2007-06-24 Thread Serge E. Hallyn
Quoting Andrew Morgan ([EMAIL PROTECTED]): > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Serge, > > [time passes] > > I'm a little better up to speed on all the kernel now. I don't feel that > I conceptually object so much to this patch-series any more :-) > > I do, however, think

Re: implement-file-posix-capabilities.patch

2007-06-24 Thread Serge E. Hallyn
Quoting Andrew Morgan ([EMAIL PROTECTED]): -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Serge, [time passes] I'm a little better up to speed on all the kernel now. I don't feel that I conceptually object so much to this patch-series any more :-) I do, however, think the patch

Re: implement-file-posix-capabilities.patch

2007-06-24 Thread James Morris
On Sun, 24 Jun 2007, Serge E. Hallyn wrote: 2) Allocate capability bit-31 for CAP_SETFCAP, and use it to gate whether the user can set this xattr on a file or not. CAP_SYS_ADMIN is way too overloaded and this functionality is special. The functionality is special, but someone with

Re: implement-file-posix-capabilities.patch

2007-06-23 Thread Andrew Morgan
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Serge, [time passes] I'm a little better up to speed on all the kernel now. I don't feel that I conceptually object so much to this patch-series any more :-) I do, however, think the patch needs some work: 1) As previously discussed, fE should

Re: implement-file-posix-capabilities.patch

2007-06-23 Thread Andrew Morgan
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Serge, [time passes] I'm a little better up to speed on all the kernel now. I don't feel that I conceptually object so much to this patch-series any more :-) I do, however, think the patch needs some work: 1) As previously discussed, fE should

Re: implement-file-posix-capabilities.patch

2007-06-21 Thread Serge E. Hallyn
Quoting Chris Wright ([EMAIL PROTECTED]): > [folks, this is getting much too long-winded to stay a private thread] > > * Serge E. Hallyn ([EMAIL PROTECTED]) wrote: > > Quoting Chris Wright ([EMAIL PROTECTED]): > > > * Andrew Morgan ([EMAIL PROTECTED]) wrote: > > > > I share Casey's view that

Re: implement-file-posix-capabilities.patch

2007-06-21 Thread Serge E. Hallyn
Quoting Chris Wright ([EMAIL PROTECTED]): [folks, this is getting much too long-winded to stay a private thread] * Serge E. Hallyn ([EMAIL PROTECTED]) wrote: Quoting Chris Wright ([EMAIL PROTECTED]): * Andrew Morgan ([EMAIL PROTECTED]) wrote: I share Casey's view that what's in the