]> git.ipfire.org Git - thirdparty/systemd.git/commit
core: mount and initialize Smack
authorNathaniel Chen <nathaniel.chen@intel.com>
Thu, 7 Mar 2013 19:06:58 +0000 (11:06 -0800)
committerLennart Poettering <lennart@poettering.net>
Thu, 7 Mar 2013 19:53:14 +0000 (20:53 +0100)
commitffbd2c4d45787ba5ba85a32db6551efba66a1ee6
treedf4c6083913ff2a020cecbe98cd80ff0b4fc981f
parent8f838d8aab0c5480664de04dce0171de4f4c7b00
core: mount and initialize Smack

SMACK is the Simple Mandatory Access Control Kernel, a minimal
approach to Access Control implemented as a kernel LSM.

The kernel exposes the smackfs filesystem API through which access
rules can be loaded. At boot time, we want to load the access rules
as early as possible to ensure all early boot steps are checked by Smack.

This patch mounts smackfs at the new location at /sys/fs/smackfs for
kernels 3.8 and above. The /smack mountpoint is not supported.
After mounting smackfs, rules are loaded from the usual location.

For more information about Smack see:
  http://www.kernel.org/doc/Documentation/security/Smack.txt
Makefile.am
README
src/core/main.c
src/core/mount-setup.c
src/core/smack-setup.c [new file with mode: 0644]
src/core/smack-setup.h [new file with mode: 0644]