lkml.org 
[lkml]   [2015]   [Sep]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Subject[PATCH v2 0/1] Introducing domain transition mechanism into Smack
Date
This patch introduce domain transition mechanism into Smack.

The idea was to give a process limited ability to change its Smack label
without giving that process CAP_MAC_ADMIN capabilities. Moreover, this ability
is granted without any additional Smack policy rules.

This feature consists of two, new kernel interfaces:

- <smack_fs>/relabel-possible - for setting transition privilege
- <smack_fs>/relabel-list - for transition-labels list

Process can set transition flag only to itself and only if has CAP_MAC_ADMIN
capability.
Process can transit (only once) into other Smack label only if it has
transition flag set 'on' and target domain is on relabel-list.

Changes in v2:
* squashed into one commit

Zbigniew Jasinski (1):
Introducing domain transition mechanism into Smack.

Documentation/security/Smack.txt | 13 +++
security/smack/smack.h | 9 ++
security/smack/smack_lsm.c | 27 ++++-
security/smack/smackfs.c | 221 +++++++++++++++++++++++++++++++++++++++
4 files changed, 268 insertions(+), 2 deletions(-)

--
1.9.1



\
 
 \ /
  Last update: 2015-09-29 17:01    [W:0.048 / U:0.104 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site