mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 0/3] Smack: add support for modification of existing rules, restructure rules list showing in smackfs
@ 2012-11-27 17:40 Rafal Krypa
  2012-11-27 17:40 ` [PATCH 1/3] Smack: use RCU functions and read locking in smackfs seq list operations Rafal Krypa
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Rafal Krypa @ 2012-11-27 17:40 UTC (permalink / raw)
  To: Casey Schaufler
  Cc: linux-security-module, linux-doc, linux-kernel, Rafal Krypa

The following three patches are intended to introduce in-place
modification of Smack rules. Until now Smack supported only
overwriting of existing rules. To change permitted access for a given
subject and object, user had to read list of rules to get current
accesses, modify it and write modified rule back to kernel. This way
was inefficient, non-atomic and unnecessarily difficult.
New interface is intended to ease such modifications.

I have prepared three patches:
1. Use RCU functions and read locking in smackfs seq list operations

Because rule lists will now get modified by list_replace_rcu(), this
one is intended to assure RCU reader critical sections in smackfs.

2. Remove global master list of rules

This is for avoiding having to modify rules in two places (per subject
list and the global list). The master list was redundant and kept up
for backward compatibility with previous smackfs seq operations code.

3. Add support for modification of existing rules

The actual patch with new interface.
A previous version of this one has posted previously
(http://thread.gmane.org/gmane.linux.documentation/6759),
but was proven to be wrong.

Rafal Krypa (3):
  Smack: use RCU functions and read locking in smackfs seq list
    operations
  Smack: remove global master list of rules
  Smack: add support for modification of existing rules

 Documentation/security/Smack.txt |   11 ++
 security/smack/smackfs.c         |  362 ++++++++++++++++++++++++--------------
 2 files changed, 239 insertions(+), 134 deletions(-)

-- 
1.7.10.4


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

end of thread, other threads:[~2012-11-27 18:26 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-11-27 17:40 [PATCH 0/3] Smack: add support for modification of existing rules, restructure rules list showing in smackfs Rafal Krypa
2012-11-27 17:40 ` [PATCH 1/3] Smack: use RCU functions and read locking in smackfs seq list operations Rafal Krypa
2012-11-27 17:40 ` [PATCH 2/3] Smack: remove global master list of rules Rafal Krypa
2012-11-27 17:40 ` [PATCH 3/3] Smack: add support for modification of existing rules Rafal Krypa
2012-11-27 18:26 ` [PATCH 0/3] Smack: add support for modification of existing rules, restructure rules list showing in smackfs Casey Schaufler

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®