From: Krzysztof Struczynski <krzysztof.struczynski@huawei.com>
To: Mimi Zohar <zohar@linux.ibm.com>, Luke Hinds <lhinds@redhat.com>,
"Dr. Greg" <greg@enjellic.com>
Cc: "mkayaalp@cs.binghamton.edu" <mkayaalp@cs.binghamton.edu>,
"sunyuqiong1988@gmail.com" <sunyuqiong1988@gmail.com>,
"containers@lists.linux-foundation.org"
<containers@lists.linux-foundation.org>,
"jannh@google.com" <jannh@google.com>,
Roberto Sassu <roberto.sassu@huawei.com>,
Linux Kernel Mailing List <linux-kernel@vger.kernel.org>,
"viro@zeniv.linux.org.uk" <viro@zeniv.linux.org.uk>,
"linux-security-module@vger.kernel.org"
<linux-security-module@vger.kernel.org>,
Silviu Vlasceanu <Silviu.Vlasceanu@huawei.com>,
"ebiederm@xmission.com" <ebiederm@xmission.com>,
"dmitry.kasatkin@gmail.com" <dmitry.kasatkin@gmail.com>,
"nick.dusek@gmail.com" <nick.dusek@gmail.com>,
"luto@amacapital.net" <luto@amacapital.net>,
"torvalds@linux-foundation.org" <torvalds@linux-foundation.org>,
"linux-integrity@vger.kernel.org"
<linux-integrity@vger.kernel.org>,
"christian@brauner.io" <christian@brauner.io>
Subject: RE: [RFC PATCH 00/30] ima: Introduce IMA namespace
Date: Mon, 14 Sep 2020 12:07:53 +0000 [thread overview]
Message-ID: <9ed6fa28510c464a97d4283f6d5b21c5@huawei.com> (raw)
In-Reply-To: <d405bab0d262b32fd16e85444791b6c49d820aa2.camel@linux.ibm.com>
> From: Mimi Zohar [mailto:zohar@linux.ibm.com]
> Sent: Tuesday, September 8, 2020 4:03 PM
> > > Candidly, given the politics of security technology being viewed as
> > > 'constraining' user rights, I think that a lot of forthcoming security
> > > technology may end up being out of tree moving forward.
> > >
> >
> > I think it's prudent to look forward and plan diligently, but I would
> > not want perfect to be the enemy of good.
>
> Agreed. This isn't an abstract problem, but one that has already come
> up and, hopefully, has been addressed appropriately.
>
> >
> > I approach this more from a user's perspective. We are using IMA in
> > https://keylime.dev to measure a host and would like to measure
> > within a container too. It's the most common request we hear from our
> > users.
> >
> > Perhaps we all collaborate on a proposal extending Stefans work here:
> > https://kernsec.org/wiki/index.php/IMA_Namespacing_design_considerati
> > ons
> >
> > I have seen around 3-4 patches now get submitted, so work has been
> > done before, and as above, users are present too. We could then have
> > some consensus on how this should look and later patches might have
> > more success at landing.
> >
> > Would anyone be interested in this and have recommendations on how we
> > could approach this?
>
> When Roberto Sassu and Krzysztof Struczynski contacted me about the
> status of Stefan Berger's patch set, based on Yuqiong Sun's work, I was
> under the impression that they would be rebasing it on the latest
> kernel and going forward from there. Obviously things changed. I
> pointed out to them resolving the "IMA namespacing" issue would be the
> first thing that needs to be addressed. So here we are.
>
The concept of the IMA namespace as a separate namespace, not attached to
the user or mount namespace, remains the same as in the last set of
Stefan's patches. The creation and configuration mechanism changed,
partially because of the changes in the upstream kernel like extension of
the CLONE_ flags, that facilitated other solutions. The main inspiration
in this regard was the new time namespace.
The implemented mechanism is intended to make the configuration of the IMA
namespace as similar as possible to the upstream IMA implementation and
allows to configure the new IMA namespace before any process enters that
namespace, so the very first actions can be measured/appraised/audited.
In this implementation many design points formulated by Stefan still stand.
The significant difference in the presented design is the threat model.
The actions of the host's root and any other user within the container are
measured/appraised/audited according to the container's policy. However,
every action that affects objects in the root namespace, is detected when
processes from the root namespace access them.
Best regards,
Krzysztof
> Definitely, let's have this discussion.
>
> Mimi
_______________________________________________
Containers mailing list
Containers@lists.linux-foundation.org
https://lists.linuxfoundation.org/mailman/listinfo/containers
next prev parent reply other threads:[~2020-09-14 12:08 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <N>
[not found] ` <20200818152037.11869-1-krzysztof.struczynski@huawei.com>
[not found] ` <1597767571.3898.15.camel@HansenPartnership.com>
[not found] ` <401a2f36149f450291d1742aeb6c2260@huawei.com>
2020-09-02 18:53 ` [RFC PATCH 00/30] ima: Introduce IMA namespace Mimi Zohar
2020-09-04 14:06 ` Dr. Greg
2020-09-14 12:05 ` Krzysztof Struczynski
[not found] ` <20200818164943.va3um7toztazcfud@wittgenstein>
2020-09-02 19:54 ` Mimi Zohar
2020-09-06 17:14 ` Dr. Greg
2020-09-07 11:50 ` Luke Hinds
2020-09-08 14:03 ` Mimi Zohar
2020-09-14 12:07 ` Krzysztof Struczynski [this message]
2020-10-19 9:30 ` Krzysztof Struczynski
2020-10-25 15:00 ` Dr. Greg
2020-09-09 10:11 ` Dr. Greg
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=9ed6fa28510c464a97d4283f6d5b21c5@huawei.com \
--to=krzysztof.struczynski@huawei.com \
--cc=Silviu.Vlasceanu@huawei.com \
--cc=christian@brauner.io \
--cc=containers@lists.linux-foundation.org \
--cc=dmitry.kasatkin@gmail.com \
--cc=ebiederm@xmission.com \
--cc=greg@enjellic.com \
--cc=jannh@google.com \
--cc=lhinds@redhat.com \
--cc=linux-integrity@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-security-module@vger.kernel.org \
--cc=luto@amacapital.net \
--cc=mkayaalp@cs.binghamton.edu \
--cc=nick.dusek@gmail.com \
--cc=roberto.sassu@huawei.com \
--cc=sunyuqiong1988@gmail.com \
--cc=torvalds@linux-foundation.org \
--cc=viro@zeniv.linux.org.uk \
--cc=zohar@linux.ibm.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox