chiark / gitweb /
smack-setup: enable Smack/CIPSO mapping
authorNathaniel Chen <nathaniel.chen@intel.com>
Tue, 12 Mar 2013 23:16:44 +0000 (16:16 -0700)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Sat, 16 Mar 2013 02:56:40 +0000 (22:56 -0400)
commitabbacb1defaaecb8d2477685f7bb3fabcf58585b
treebba719aaf1893116ee989446c0f3750770400601
parenta4783bd17ad96f55b0fe83a50959da13555292bf
smack-setup: enable Smack/CIPSO mapping

CIPSO is the Common IP Security Option, an IETF standard for setting
security levels for a process sending packets. In Smack kernels,
CIPSO headers are mapped to Smack labels automatically, but can be changed.

This patch writes label/category mappings from /etc/smack/cipso/ to
/sys/fs/smackfs/cipso2. The mapping format is "%s%4d%4d"["%4d"]...

For more information about Smack and CIPSO, see:
  https://kernel.org/doc/Documentation/security/Smack.txt
src/core/smack-setup.c