From: Chris Wright <chris@wirex.com>
To: Gabor Kerenyi <wom@tateyama.hu>
Cc: Greg KH <greg@kroah.com>,
linux-kernel@vger.kernel.org, Chris Wright <chris@wirex.com>
Subject: Re: extended file permissions based on LSM
Date: Sat, 31 Aug 2002 17:23:36 -0700 [thread overview]
Message-ID: <20020831172336.D11165@figure1.int.wirex.com> (raw)
In-Reply-To: <200208310909.59676.wom@tateyama.hu>; from wom@tateyama.hu on Sat, Aug 31, 2002 at 09:09:59AM +0200
* Gabor Kerenyi (wom@tateyama.hu) wrote:
>
> How can I determine the dentry what the user actually acts on? Because
> of hardlinks I thought it is impossible to find out the dentry having
> only the inode. 1:n (inode:dentry) relation isn't it?
> Or did I miss something?
You are correct. In addition you need the vfsmount to pin it to a
unique point in the namespace. As I mentioned, the dentry/vfsmount
pair is an anticipated change.
> If we move all security checks from the VFS to the LSM then
> the bahavior will be determined by the currently loaded LSM.
> In your point of view:
> the capability.c (or def_fileperm.c) can implement a deny policiy.
> For the rest of the LSModules it's up to them.
>
> Is it acceptable for you?
No, this does not sound like a safe transition. For starters we want a
fail safe mechanism.
> Having an "allow policiy" doesn't mean less security _if_ the loaded
> LSM knows what it is doing. It can be as secure as a "deny policy"
> if it is implemented in a proper way - it will always allow or deny
> access exaclty how the root told to by setting permissions etc.
> If the module is not implemented in a proper way then it means
> a problem whether it denies or allows things.
Indeed, however the invasive nature of a purely permissive policy along
with the ease of bugs is not a good way to begin merging a new project ;-)
Also, the capability interface provides a coarse grained permissive
interface, so all is not lost.
> OK. We can state that the current LSM design is restrictive and
> only an extension to the current security checks. So it can't add
> any extra security features (not checks) and therefore it's limitied
> in its own way. With this interface nobody can customize the
> system without hacking the very kernel (vfs for exmaple) to
> achieve new behavior and features.
Yes, this is intentional. Of course, depending on your notion of
security feature, it may already be supported or not fall into the
category of access controls, which LSM is providing.
> Or we can create another LSM say Core Linux Security Module
> and its duty will be to move the security checks from the kernel
> to a seperate place and call the LSM functions if needed.
> You can't reprogram the security checks now. I know it's implemented
> to be U*IX like. It's great, it's enough for me too. But why can't we
> provide a possibility (only) to implement something else as well
> instead of and/or in conjunction with the current one?
> Would it be a big harm?
Please review the LSM list archives as this has been discussed
extensively. The executive summary is that a restrictive design
provides simple assurance. A permissive design is both more invasive
and makes it easy to write dumb security bugs. The current focus is
merging the restrictive interface, later we can look at enhancements.
Basic walk before run philosophy ;-)
thanks,
-chris
--
Linux Security Modules http://lsm.immunix.org http://lsm.bkbits.net
next prev parent reply other threads:[~2002-09-01 0:23 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-08-31 4:16 Gabor Kerenyi
2002-08-31 5:21 ` Greg KH
2002-08-31 7:09 ` Gabor Kerenyi
2002-09-01 0:23 ` Chris Wright [this message]
2002-08-31 7:57 ` Ingo Oeser
2002-09-01 0:26 ` Chris Wright
2002-09-01 15:55 ` Daniel Phillips
2002-09-01 23:08 ` Chris Wright
2002-09-02 0:20 ` Gabor Kerenyi
2002-08-31 23:50 ` Chris Wright
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=20020831172336.D11165@figure1.int.wirex.com \
--to=chris@wirex.com \
--cc=greg@kroah.com \
--cc=linux-kernel@vger.kernel.org \
--cc=wom@tateyama.hu \
/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®