lkml.org 
[lkml]   [2018]   [Mar]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Subject[RFC PATCH v3 0/3] ima: namespacing IMA
Date
This patch set implements an IMA namespace data structure that gets
created alongside a user namespace with CLONE_NEWUSER, and lays down the
foundation for namespacing the different aspects of IMA (eg. IMA-audit,
IMA-measurement, IMA-appraisal).

The original PoC patches [1] created a new CLONE_NEWIMA flag to explicitly
control when a new IMA namespace should be created. The previously posted
version 2 of this series had it hooked on the mount namespace, which was
regarded as inappropriate. Based on comments, we elected to hang the IMA
namepace off of the existing user namespace now. In this patch series we
are adding a pointer to the user_namespace pointing to the ima_namespace.
Both are now tied together and joining the user_namespace with setns() also
joins the ima_namespace that was created along with it.

The first patch creates the ima_namespace data, while the second patch
puts the iint->flags in the namespace. The third patch uses these flags
for namespacing the IMA-audit messages, enabling the same file to be
audited each time it is accessed in a new namespace.


Stefan

Mehmet Kayaalp (2):
ima: Add ns_status for storing namespaced iint data
ima: mamespace audit status flags

Yuqiong Sun (1):
ima: extend clone() with IMA namespace support

include/linux/ima.h | 67 +++++++++
include/linux/user_namespace.h | 4 +
init/Kconfig | 10 ++
kernel/user.c | 7 +
kernel/user_namespace.c | 18 +++
security/integrity/ima/Makefile | 3 +-
security/integrity/ima/ima.h | 47 ++++++-
security/integrity/ima/ima_api.c | 8 +-
security/integrity/ima/ima_init.c | 4 +
security/integrity/ima/ima_init_ima_ns.c | 43 ++++++
security/integrity/ima/ima_main.c | 15 ++-
security/integrity/ima/ima_ns.c | 225 +++++++++++++++++++++++++++++++
12 files changed, 443 insertions(+), 8 deletions(-)
create mode 100644 security/integrity/ima/ima_init_ima_ns.c
create mode 100644 security/integrity/ima/ima_ns.c

--
2.14.3

\
 
 \ /
  Last update: 2018-03-27 15:59    [W:0.113 / U:2.912 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site