Skip to content

Commit

Permalink
security: filesystem capabilities refactor kernel code
Browse files Browse the repository at this point in the history
To date, we've tried hard to confine filesystem support for capabilities
to the security modules.  This has left a lot of the code in
kernel/capability.c in a state where it looks like it supports something
that filesystem support for capabilities actually suppresses when the LSM
security/commmoncap.c code runs.  What is left is a lot of code that uses
sub-optimal locking in the main kernel

With this change we refactor the main kernel code and make it explicit
which locks are needed and that the only remaining kernel races in this
area are associated with non-filesystem capability code.

Signed-off-by: Andrew G. Morgan <morgan@kernel.org>
Acked-by: Serge Hallyn <serue@us.ibm.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
  • Loading branch information
Andrew G. Morgan authored and Linus Torvalds committed Jul 24, 2008
1 parent 5459c16 commit ab763c7
Showing 1 changed file with 221 additions and 117 deletions.
Loading

0 comments on commit ab763c7

Please sign in to comment.