public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCHv2] Smack: add support for modification of existing rules
@ 2013-01-10 18:41 Rafal Krypa
  2013-01-10 18:42 ` Rafal Krypa
  0 siblings, 1 reply; 5+ messages in thread
From: Rafal Krypa @ 2013-01-10 18:41 UTC (permalink / raw)
  To: Casey Schaufler
  Cc: linux-security-module, linux-kernel, linux-doc, Rafal Krypa

The following patch introduces 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.

Changes in v2:
- dropped patches for smackfs seq list operations
- changed modification approach to simple integer assignment

Rafal Krypa (1):
  Smack: add support for modification of existing rules

 Documentation/security/Smack.txt |   11 ++
 security/smack/smackfs.c         |  249 ++++++++++++++++++++++++++------------
 2 files changed, 181 insertions(+), 79 deletions(-)

-- 
1.7.10.4


^ permalink raw reply	[flat|nested] 5+ messages in thread
* [PATCHv2] Smack: add support for modification of existing rules
@ 2012-11-28 17:43 Rafal Krypa
  0 siblings, 0 replies; 5+ messages in thread
From: Rafal Krypa @ 2012-11-28 17:43 UTC (permalink / raw)
  To: Casey Schaufler
  Cc: linux-security-module, linux-doc, linux-kernel, Rafal Krypa

The following patch introduces 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.

Changes in v2:
- dropped patches for smackfs seq list operations
- changed modification approach to simple integer assignment

Rafal Krypa (1):

  Smack: add support for modification of existing rules

 Documentation/security/Smack.txt |   11 ++
 security/smack/smackfs.c         |  249 ++++++++++++++++++++++++++------------
 2 files changed, 181 insertions(+), 79 deletions(-)

-- 
1.7.10.4


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

end of thread, other threads:[~2013-01-16  3:26 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-01-10 18:41 [PATCHv2] Smack: add support for modification of existing rules Rafal Krypa
2013-01-10 18:42 ` Rafal Krypa
2013-01-11 12:46   ` Mimi Zohar
2013-01-16  3:26   ` Casey Schaufler
  -- strict thread matches above, loose matches on Subject: below --
2012-11-28 17:43 Rafal Krypa

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox