chiark / gitweb /
main: added support for loading IMA custom policies
authorRoberto Sassu <roberto.sassu@polito.it>
Thu, 15 Mar 2012 18:06:11 +0000 (19:06 +0100)
committerLennart Poettering <lennart@poettering.net>
Wed, 21 Mar 2012 23:20:58 +0000 (00:20 +0100)
commit816115863962548a9a0d9fbfe429c7f8e685beac
tree2751984a95d834da101c8cdb3d7da0df6871e5ea
parent160481f68d0a5f26f75c04fb576fb854fd5416a5
main: added support for loading IMA custom policies

This is an S/MIME signed message

The new function ima_setup() loads an IMA custom policy from a file in the
default location '/etc/ima/ima-policy', if present, and writes it to the
path 'ima/policy' in the security filesystem. This function is executed
at early stage in order to avoid that some file operations are not measured
by IMA and it is placed after the initialization of SELinux because IMA
needs the latter (or other security modules) to understand LSM-specific
rules. This feature is enabled by default and can be disabled by providing
the option '--disable-ima' to the configure script.

Signed-off-by: Roberto Sassu <roberto.sassu@polito.it>
Acked-by: Gianluca Ramunno <ramunno@polito.it>
Makefile.am
configure.ac
src/build.h
src/ima-setup.c [new file with mode: 0644]
src/ima-setup.h [new file with mode: 0644]
src/main.c