From: dac.override@gmail.com (Dominick Grift)
To: refpolicy@oss.tresys.com
Subject: [refpolicy] [PATCH] Add all the missing _admin interfaces to sysadm
Date: Wed, 3 Dec 2014 17:28:54 +0100 [thread overview]
Message-ID: <20141203162852.GB14237@e145.network2> (raw)
In-Reply-To: <547F355C.3030902@tresys.com>
On Wed, Dec 03, 2014 at 11:07:56AM -0500, Christopher J. PeBenito wrote:
> On 12/3/2014 10:39 AM, Dominick Grift wrote:
> > On Wed, Dec 03, 2014 at 08:56:31AM -0500, Christopher J. PeBenito
> > wrote:
> >>>>
> >>>> I'm not opposed to this change, but I wonder about cases
> >>>> like these:
> >>>>
> >>>>> + +optional_policy(` + asterisk_admin(sysadm_t, sysadm_r)
> >>>>> asterisk_stream_connect(sysadm_t) ')
> >>>>
> >>>> Since I would assume that the admin interface would already
> >>>> include the existing rule.
> >>>
> >>> Bacula_admin does indeed call _run_admin so i'll take that
> >>> away, asterisk does not call _stream_connect so that one is
> >>> correct. I will
> >>
> >> I think there is still the question, should the stream connect
> >> be added to the admin interface?
> >>
> >
> > In my opinion where refpolicy went wrong is by allowing confined
> > user domains this low level access in the first place shells do
> > not stream connect, applications do.sysadm is a strict domain and
> > so it should run the app that stream connects in the apps domain
> > with a domain transition if that makes sense.
> >
> > That is strict. Anything else is "drunken unconfined" in my view,
> > or at least a compromise.
> >
> > In my vision confined users should be strictly enforced (least
> > privilege) or at least as much as possible
>
> I understand your position, but I believe the (IMO modest) gains don't
> outweigh the additional complexity cost. In this case, if your admin
> is abusing their privileges, then there is a worse problem. I think a
> more effective confinement would be eliminating sysadm's blanket
> manage access on basically the entire filesystem. If all these admin
> interfaces work well, all that access won't be necessary.
Its not just about abuse its about containing processes. Programs have flaws
If you run those programs in one big privileged domain than those processes can affect everything else it has access to.
I rather have a highly complex policy that does what it say's on the label and is applicable, than a slighty less highly complex policy that is basically a compromise that sets a sub-optimal precedence.
Anyhow you made your point, and i made my point. Lets just agree to disagree.
--
Dominick Grift
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 648 bytes
Desc: not available
Url : http://oss.tresys.com/pipermail/refpolicy/attachments/20141203/ec0ed892/attachment.bin
next prev parent reply other threads:[~2014-12-03 16:28 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-12-03 12:28 [refpolicy] [PATCH] Add all the missing _admin interfaces to sysadm Jason Zaman
2014-12-03 13:18 ` Christopher J. PeBenito
2014-12-03 13:42 ` Jason Zaman
2014-12-03 13:56 ` Christopher J. PeBenito
2014-12-03 14:27 ` Dominick Grift
2014-12-03 15:29 ` Jason Zaman
2014-12-03 15:41 ` Dominick Grift
2014-12-03 15:44 ` Christopher J. PeBenito
2014-12-03 15:50 ` Christopher J. PeBenito
2014-12-03 15:55 ` Dominick Grift
2014-12-03 16:12 ` Christopher J. PeBenito
2014-12-03 16:19 ` Dominick Grift
2014-12-03 15:39 ` Dominick Grift
2014-12-03 15:50 ` Dominick Grift
2014-12-03 16:07 ` Christopher J. PeBenito
2014-12-03 16:28 ` Dominick Grift [this message]
2014-12-03 16:47 ` Christopher J. PeBenito
2015-04-03 14:29 ` Miroslav Grepl
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=20141203162852.GB14237@e145.network2 \
--to=dac.override@gmail.com \
--cc=refpolicy@oss.tresys.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 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.