From: Mehmet Kayaalp <mkayaalp@linux.vnet.ibm.com>
To: Peter Dolding <oiaohm@gmail.com>
Cc: Matthew Garrett <mjg59@google.com>,
Masanobu Koike <masanobu2.koike@toshiba.co.jp>,
james.l.morris@oracle.com, "Serge E. Hallyn" <serge@hallyn.com>,
linux-security-module <linux-security-module@vger.kernel.org>,
linux-kernel <linux-kernel@vger.kernel.org>
Subject: Re: [RFC 0/3] WhiteEgret LSM module
Date: Wed, 31 May 2017 11:36:16 -0400 [thread overview]
Message-ID: <88D2080F-FEFA-4535-ACF1-01A584F469D9@linux.vnet.ibm.com> (raw)
In-Reply-To: <CANA3KFXUTSe8XyU1S+WgjgCtgKSiENp9EJZEaAc7PkVO_tgKqQ@mail.gmail.com>
> On May 31, 2017, at 6:59 AM, Peter Dolding <oiaohm@gmail.com> wrote:
>
> Number 1 we need to split the idea of signed and whitelisted. IMA is
> signed should not be confused with white-listed. You will find
> policies stating whitelist and signed as two different things.
IMA-appraisal can do both. If the securtiy.ima extended attribute
of the file is a hash and not a signature, then it is whitelisting.
> Like you see here in Australian government policy there is another
> thing called whitelisted.
> https://www.asd.gov.au/publications/protect/top_4_mitigations_linux.htm
> Matthew Garrett you might want to call IMA whitelisting Australian
> government for one does not agree. IMA is signed. The difference
> between signed and white-listed is you might have signed a lot more
> than what a particular system is white-listed to allowed used.
I doubt the Australian government is an authority on Linux features.
IMA-appraisal can be set to "fix" mode with a boot parameter. If the
policy covers what you want to whitelist (e.g. files opened by user x),
and then when those files are accessed, the kernel writes out the hash.
Then, you can switch to "enforce" mode to allow only files with hashes.
Also, you can achieve the same thing by signing all whitelisted
files and add the certificate to .ima keyring and throwing away the
signing key.
> The feature need to include in it name whitelisting or just like the
> Australian Department of Defence other parties will mark Linux has not
> having this feature.
I guess we need to advertise IMA-appraisal better.
> Whitelist is program name/path and checksum/s. If the file any more
> than that is now not a Whitelist but a Security Policy Enforcement or
> signing. Whitelist and blacklists are meant to be simple things.
> This is also why IMA fails and is signed to too complete to be a basic
> Whitelist.
When you work out all the little details, you arrive at IMA-appraisal.
You have to consider how the scheme is bootstrapped and how it
is protected against the root. IMA-appraisal either relies on a boot
parameter and write-once policy, or the trusted keyrings.
> Peter Dolding.
Mehmet
next prev parent reply other threads:[~2017-05-31 15:35 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-05-30 11:11 Masanobu Koike
2017-05-30 17:18 ` Casey Schaufler
2017-06-06 9:28 ` masanobu2.koike
2017-05-30 20:50 ` Matthew Garrett
2017-05-31 10:59 ` Peter Dolding
2017-05-31 15:22 ` Casey Schaufler
2017-05-31 15:35 ` Serge E. Hallyn
2017-06-04 2:43 ` Peter Dolding
2017-06-04 16:25 ` Serge E. Hallyn
2017-06-02 17:39 ` Steve Kemp
2017-06-02 19:00 ` Casey Schaufler
2017-06-02 20:28 ` Steve Kemp
2017-05-31 15:36 ` Mehmet Kayaalp [this message]
2017-06-04 2:21 ` Peter Dolding
2017-06-04 18:51 ` Mehmet Kayaalp
2017-06-15 7:56 ` masanobu2.koike
2017-06-01 12:31 ` masanobu2.koike
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=88D2080F-FEFA-4535-ACF1-01A584F469D9@linux.vnet.ibm.com \
--to=mkayaalp@linux.vnet.ibm.com \
--cc=james.l.morris@oracle.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-security-module@vger.kernel.org \
--cc=masanobu2.koike@toshiba.co.jp \
--cc=mjg59@google.com \
--cc=oiaohm@gmail.com \
--cc=serge@hallyn.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
all inboxes | Powered by JetHome®