Re: [patch] file capabilities: Add no_file_caps switch

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Serge E. Hallyn
Date: Wednesday, August 27, 2008 - 6:52 am

Quoting Andreas Gruenbacher (agruen@suse.de):

Hi Andreas,

No objections in general - if it makes you more comfortable shipping
kernels with CONFIG_SECURITY_FILE_CAPABILITIES=y then it's worthwhile.
However, can you elaborate on your concerns?

In particular, if as you say above the concern is really just that a
file might have capabilities accidentally (or maliciously) enabled, then
we should be able to just check for file_caps_enabled() at
get_file_caps(), refusing to fill in the file capabilities.

The other changes which you are canceling out confuscate the code but
actually make no difference.  In particular, the change in behavior
wrt CAP_SETPCAP is as follows:  With
CONFIG_SECURITY_FILE_CAPABILITIES=n, CAP_SETPCAP means that you
can give your capabilities to another task.  With
CONFIG_SECURITY_FILE_CAPABILITIES=y, CAP_SETPCAP *only* means that
you can add bits to your pI.  But pI is always masked with fI, so
if we refuse to fill in fI at get_file_caps(), then that is ok :)

Do you want me to send a such a patch?

thanks,
-serge

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

Messages in current thread:
[patch] file capabilities: Add no_file_caps switch, Andreas Gruenbacher, (Tue Aug 26, 11:57 am)
Re: [patch] file capabilities: Add no_file_caps switch, Ingo Molnar, (Tue Aug 26, 1:28 pm)
Re: [patch] file capabilities: Add no_file_caps switch, Serge E. Hallyn, (Wed Aug 27, 6:52 am)
Re: [patch] file capabilities: Add no_file_caps switch, Andreas Gruenbacher, (Wed Aug 27, 8:29 am)
Re: [patch] file capabilities: Add no_file_caps switch, Serge E. Hallyn, (Wed Aug 27, 9:04 am)
Re: [patch] file capabilities: Add no_file_caps switch, David Howells, (Wed Aug 27, 9:13 am)
Re: [patch] file capabilities: Add no_file_caps switch, Andreas Gruenbacher, (Wed Aug 27, 9:57 am)
Re: [patch] file capabilities: Add no_file_caps switch, David Howells, (Wed Aug 27, 10:00 am)
Re: [patch] file capabilities: Add no_file_caps switch, David Howells, (Wed Aug 27, 10:04 am)
Re: [patch] file capabilities: Add no_file_caps switch, Serge E. Hallyn, (Wed Aug 27, 11:58 am)
Re: [patch] file capabilities: Add no_file_caps switch, David Howells, (Wed Aug 27, 2:14 pm)
Re: [patch] file capabilities: Add no_file_caps switch, James Morris, (Wed Aug 27, 5:05 pm)
Re: [patch] file capabilities: Add no_file_caps switch, Serge E. Hallyn, (Wed Aug 27, 5:48 pm)
Re: [patch] file capabilities: Add no_file_caps switch, James Morris, (Wed Aug 27, 6:57 pm)
Re: [patch] file capabilities: Add no_file_caps switch, Andrew G. Morgan, (Thu Aug 28, 8:35 am)
Re: [patch] file capabilities: Add no_file_caps switch, Andreas Gruenbacher, (Thu Aug 28, 9:27 am)
Re: [patch] file capabilities: Add no_file_caps switch, Serge E. Hallyn, (Thu Aug 28, 10:09 am)