From: Casey Schaufler <casey@schaufler-ca.com>
To: Mimi Zohar <zohar@linux.vnet.ibm.com>
Cc: James Morris <jmorris@namei.org>,
Linus Torvalds <torvalds@linux-foundation.org>,
Hugh Dickins <hugh.dickins@tiscali.co.uk>,
Mimi Zohar <zohar@us.ibm.com>,
Andrew Morton <akpm@linux-foundation.org>,
Serge Hallyn <serue@us.ibm.com>,
Al Viro <viro@zeniv.linux.org.uk>,
linux-kernel@vger.kernel.org,
linux-security-module@vger.kernel.org,
David Safford <safford@watson.ibm.com>
Subject: Re: [PATCH] integrity: fix IMA inode leak
Date: Mon, 08 Jun 2009 20:42:10 -0700 [thread overview]
Message-ID: <4A2DDA12.3020907@schaufler-ca.com> (raw)
In-Reply-To: <1244516211.3804.24.camel@dyn9002018117.watson.ibm.com>
Mimi Zohar wrote:
> On Tue, 2009-06-09 at 09:16 +1000, James Morris wrote:
>
>> On Mon, 8 Jun 2009, Mimi Zohar wrote:
>>
>>
>>> Ok, so instead of having a full fledge single security layer, only add
>>> the security layer for those places where both the LSM hooks and IMA
>>> co-exist: security_file_mmap, security_bprm_check, security_inode_alloc,
>>> security_inode_free, and security_file_free. As the LSM hooks are called
>>> 'security_XXXX', the call would look something like:
>>>
>>> security_all_inode_free() {
>>> ima_inode_free()
>>> security_inode_free()
>>> }
>>>
>> Yes, it only needs to be a wrapper. The above is ugly, how about:
>>
>
> agreed! But changing only these 5 security_ hook names and leaving the
> rest alone is even uglier.
>
>
>> security_inode_free()
>> {
>> ima_inode_free();
>> lsm_inode_free();
>> }
>>
>> I think we may have come full circle on the naming of the LSM hook, but
>> 'security_*' was never great given that it's only supposed to be covering
>> access control.
>>
>
> so why not 'mac_'?
>
An LSM could introduce a discretionary scheme. If you use SELinux with
just MCS that's what you get. Although POSIX ACLs can't be implemented
via the LSM (the mode bit interactions preclude doing so) there are other
ACL schemes that could use the LSM. I have gotten suggestions on "label
ownership" that would turn Smack into DAC. If you wanted to call it
Additional Access Control (AAC) or Supplemental Access Control (SAC)
I would go along with it, but not MAC.
> Mimi Zohar
>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at http://www.tux.org/lkml/
>
>
>
next prev parent reply other threads:[~2009-06-09 3:42 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-06-06 20:18 [PATCH] integrity: fix IMA inode leak Hugh Dickins
2009-06-06 21:18 ` Linus Torvalds
2009-06-06 21:35 ` Linus Torvalds
2009-06-06 22:29 ` Hugh Dickins
2009-06-07 6:08 ` Mimi Zohar
2009-06-07 23:09 ` Linus Torvalds
2009-06-08 12:28 ` Mimi Zohar
2009-06-08 16:15 ` Linus Torvalds
2009-06-08 18:44 ` Mimi Zohar
2009-06-08 23:16 ` James Morris
2009-06-09 2:56 ` Mimi Zohar
2009-06-09 3:42 ` Casey Schaufler [this message]
2009-06-07 6:07 ` Mimi Zohar
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=4A2DDA12.3020907@schaufler-ca.com \
--to=casey@schaufler-ca.com \
--cc=akpm@linux-foundation.org \
--cc=hugh.dickins@tiscali.co.uk \
--cc=jmorris@namei.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-security-module@vger.kernel.org \
--cc=safford@watson.ibm.com \
--cc=serue@us.ibm.com \
--cc=torvalds@linux-foundation.org \
--cc=viro@zeniv.linux.org.uk \
--cc=zohar@linux.vnet.ibm.com \
--cc=zohar@us.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