[PATCH v2 0/1] Introducing domain transition mechanism into Smack

From: Zbigniew Jasinski
Date: Tue Sep 29 2015 - 10:42:19 EST


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

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/