All of lore.kernel.org
 help / color / mirror / Atom feed
* [RFC PATCH v3 0/3] ima: namespacing IMA
@ 2018-03-27 13:57 ` Stefan Berger
  0 siblings, 0 replies; 64+ messages in thread
From: Stefan Berger @ 2018-03-27 13:57 UTC (permalink / raw)
  To: linux-integrity
  Cc: containers, linux-kernel, linux-security-module, tycho, serge,
	sunyuqiong1988, david.safford, mkayaalp, James.Bottomley, zohar,
	ebiederm, Stefan Berger

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

^ permalink raw reply	[flat|nested] 64+ messages in thread

end of thread, other threads:[~2018-04-27  0:50 UTC | newest]

Thread overview: 64+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-03-27 13:57 [RFC PATCH v3 0/3] ima: namespacing IMA Stefan Berger
2018-03-27 13:57 ` Stefan Berger
2018-03-27 13:57 ` [RFC PATCH v3 2/3] ima: Add ns_status for storing namespaced iint data Stefan Berger
2018-03-27 13:57   ` Stefan Berger
2018-03-27 13:57 ` [RFC PATCH v3 3/3] ima: mamespace audit status flags Stefan Berger
2018-03-27 13:57   ` Stefan Berger
     [not found] ` <1522159038-14175-1-git-send-email-stefanb-23VcF4HTsmIX0ybBhKVfKdBPR1lH4CV8@public.gmane.org>
2018-03-27 13:57   ` [RFC PATCH v3 1/3] ima: extend clone() with IMA namespace support Stefan Berger
2018-03-27 13:57     ` Stefan Berger
2018-03-27 13:57     ` Stefan Berger
     [not found]     ` <1522159038-14175-2-git-send-email-stefanb-23VcF4HTsmIX0ybBhKVfKdBPR1lH4CV8@public.gmane.org>
2018-03-27 23:01       ` Eric W. Biederman
2018-03-27 23:01     ` Eric W. Biederman
2018-03-27 23:01       ` Eric W. Biederman
2018-03-28 11:10       ` Stefan Berger
2018-03-28 11:10         ` Stefan Berger
     [not found]         ` <bc03161e-394b-bf4d-48c4-858dcf05458a-23VcF4HTsmIX0ybBhKVfKdBPR1lH4CV8@public.gmane.org>
2018-03-28 12:14           ` Dr. Greg Wettstein
2018-04-18 15:59           ` John Johansen
2018-03-28 12:14         ` Dr. Greg Wettstein
2018-03-28 12:14           ` Dr. Greg Wettstein
2018-03-28 12:44           ` Stefan Berger
2018-03-28 12:44             ` Stefan Berger
     [not found]           ` <20180328121418.GA24712-DHO+NtfOqB5PEDpkEIzg7wC/G2K4zDHf@public.gmane.org>
2018-03-28 12:44             ` Stefan Berger
2018-04-18 15:59         ` John Johansen
2018-04-18 15:59           ` John Johansen
2018-04-18 15:59           ` John Johansen
2018-04-13 16:25       ` Mimi Zohar
2018-04-13 16:25         ` Mimi Zohar
2018-04-13 16:25         ` Mimi Zohar
2018-04-18 16:09         ` John Johansen
2018-04-18 16:09           ` John Johansen
2018-04-18 16:09           ` John Johansen
2018-04-18 19:57           ` Mimi Zohar
2018-04-18 19:57             ` Mimi Zohar
2018-04-18 19:57             ` Mimi Zohar
     [not found]             ` <1524081472.3272.319.camel-23VcF4HTsmIX0ybBhKVfKdBPR1lH4CV8@public.gmane.org>
2018-04-18 20:12               ` Eric W. Biederman
2018-04-18 20:12                 ` Eric W. Biederman
2018-04-18 20:12                 ` Eric W. Biederman
2018-04-18 20:12                 ` Eric W. Biederman
     [not found]                 ` <87wox4s282.fsf-aS9lmoZGLiVWk0Htik3J/w@public.gmane.org>
2018-04-18 20:27                   ` Mimi Zohar
2018-04-18 20:27                     ` Mimi Zohar
2018-04-18 20:27                     ` Mimi Zohar
2018-04-18 20:27                     ` Mimi Zohar
2018-04-18 21:32                   ` John Johansen
2018-04-18 21:32                 ` John Johansen
2018-04-18 21:32                   ` John Johansen
2018-04-18 21:32                   ` John Johansen
2018-04-19 11:03                   ` Stefan Berger
2018-04-19 11:03                     ` Stefan Berger
2018-04-19 15:35                     ` John Johansen
2018-04-19 15:35                       ` John Johansen
2018-04-19 15:35                       ` John Johansen
     [not found]                       ` <f84ae8af-fa5b-9f31-fbef-5a49f90dd45a-Z7WLFzj8eWMS+FvcfC7Uqw@public.gmane.org>
2018-04-26 21:18                         ` Stefan Berger
2018-04-26 21:18                       ` Stefan Berger
2018-04-26 21:18                         ` Stefan Berger
2018-04-27  0:49                         ` Eric W. Biederman
2018-04-27  0:49                           ` Eric W. Biederman
     [not found]                         ` <0d2b2635-d7fb-d240-7dd0-2a81014c58ba-23VcF4HTsmIX0ybBhKVfKdBPR1lH4CV8@public.gmane.org>
2018-04-27  0:49                           ` Eric W. Biederman
     [not found]                     ` <2103bbb9-3f2a-78f8-f7ad-28859659973f-23VcF4HTsmIX0ybBhKVfKdBPR1lH4CV8@public.gmane.org>
2018-04-19 15:35                       ` John Johansen
     [not found]                   ` <8895cb9c-7b9e-2f82-e3d8-a15f5fc26e25-Z7WLFzj8eWMS+FvcfC7Uqw@public.gmane.org>
2018-04-19 11:03                     ` Stefan Berger
     [not found]           ` <d8c30d7d-c679-9323-7a25-d3148e9b96c6-Z7WLFzj8eWMS+FvcfC7Uqw@public.gmane.org>
2018-04-18 19:57             ` Mimi Zohar
     [not found]         ` <1523636702.3272.63.camel-23VcF4HTsmIX0ybBhKVfKdBPR1lH4CV8@public.gmane.org>
2018-04-18 16:09           ` John Johansen
     [not found]       ` <87sh8lcecn.fsf-aS9lmoZGLiVWk0Htik3J/w@public.gmane.org>
2018-03-28 11:10         ` Stefan Berger
2018-04-13 16:25         ` Mimi Zohar
2018-03-27 13:57   ` [RFC PATCH v3 2/3] ima: Add ns_status for storing namespaced iint data Stefan Berger
2018-03-27 13:57   ` [RFC PATCH v3 3/3] ima: mamespace audit status flags Stefan Berger

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.