Re: implement-file-posix-capabilities.patch

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Andrew Morgan <morgan@...>
Cc: Serge E. Hallyn <serue@...>, Chris Wright <chrisw@...>, Andrew Morgan <agm@...>, <casey@...>, Andrew Morton <akpm@...>, Stephen Smalley <sds@...>, James Morris <jmorris@...>, <linux-security-module@...>, lkml <linux-kernel@...>
Date: Sunday, June 24, 2007 - 11:51 am

Quoting Andrew Morgan (morgan@kernel.org):

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

we can always just remove the security.capability xattr.  Right?

If there's a case where that does not suffice, then I have no objection
to doing it this way.


The functionality is special, but someone with CAP_SYS_ADMIN can always
unload the capability module and create the security.capability xattr
using the dummy module.

If we do add this cap, do we want to make it apply to all security.*
xattrs?


Ok, so you're saying that when we do switch to 64-bit caps or some other
evolution, we switch to completely separate logic based on the
VFS_CAP_REVISION?

That seems sane to me.


set_bprm_caps actually sounds best to me.


Sounds sane.  If it looks less sane when I try to write the patch I'll
get back to you  :)


Hmm, changing the behavior of the cap_bset is something that seems to
belong in 8), though I see what you're saying, it does affect the
behavior of vfs caps.

One gets a cozy feeling from the fact that cap_bset is set to
(~0 & ~~CAP_TO_MASK(CAP_SETPCAP)), but since it's sysctl controllable
that seems like it could present a real security problem.

So yeah, I think you're right - but the question is whose word do we
take here?  The admin who set the vfs caps on the binary, or the admin
who set cap_bset through sysctl?

I wonder whether anyone actually uses the cap_bset sysctl...


If you have a list of such cleanups you could send out, we can then
decide whether those all are safe to apply to the current capability
module, or whether it makes sense to fork off a shiny new capabiltyv2
module :)

many thanks for all the suggestions,
-serge

-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: implement-file-posix-capabilities.patch, Serge E. Hallyn, (Thu Jun 21, 12:00 pm)
Re: implement-file-posix-capabilities.patch, Andrew Morgan, (Sat Jun 23, 4:13 am)
Re: implement-file-posix-capabilities.patch, Serge E. Hallyn, (Mon Jul 2, 10:38 am)
Re: implement-file-posix-capabilities.patch, Andrew Morgan, (Wed Jul 4, 5:29 pm)
Re: implement-file-posix-capabilities.patch, Casey Schaufler, (Wed Jul 4, 7:00 pm)
Re: implement-file-posix-capabilities.patch, Serge E. Hallyn, (Sun Jun 24, 11:51 am)
Re: implement-file-posix-capabilities.patch, Andrew Morgan, (Wed Jun 27, 1:00 am)
Re: implement-file-posix-capabilities.patch, Serge E. Hallyn, (Wed Jun 27, 9:16 am)
Re: implement-file-posix-capabilities.patch, Andrew Morgan, (Thu Jun 28, 2:19 am)
Re: implement-file-posix-capabilities.patch, Casey Schaufler, (Thu Jun 28, 11:14 am)
Re: implement-file-posix-capabilities.patch, Andrew Morgan, (Thu Jun 28, 11:50 am)
Re: implement-file-posix-capabilities.patch, Serge E. Hallyn, (Thu Jun 28, 11:38 am)
Re: implement-file-posix-capabilities.patch, Casey Schaufler, (Thu Jun 28, 11:56 am)
Re: implement-file-posix-capabilities.patch, Andrew Morgan, (Fri Jun 29, 1:30 am)
Re: implement-file-posix-capabilities.patch, Casey Schaufler, (Fri Jun 29, 10:46 am)
Re: implement-file-posix-capabilities.patch, Serge E. Hallyn, (Fri Jun 29, 9:24 am)
Re: implement-file-posix-capabilities.patch, Serge E. Hallyn, (Thu Jun 28, 9:36 am)
Re: implement-file-posix-capabilities.patch, James Morris, (Sun Jun 24, 12:18 pm)
Re: [PATCH try #2] security: Convert LSM into a static inter..., Andreas Gruenbacher, (Mon Jun 25, 4:37 pm)
Re: [PATCH][RFC] security: Convert LSM into a static interface, Roberto De Ioris, (Mon Jun 25, 10:24 am)