From: Stephen Smalley <sds@tycho.nsa.gov>
To: Daniel J Walsh <dwalsh@redhat.com>
Cc: Matthew Ife <deleriux@airattack-central.com>,
SELinux <selinux@tycho.nsa.gov>
Subject: Re: As we move to systemd, we are loosing some functionality from init scripts.
Date: Thu, 14 Jul 2011 08:51:55 -0400 [thread overview]
Message-ID: <1310647915.28361.2.camel@moss-pluto> (raw)
In-Reply-To: <4E1DD9A7.80007@redhat.com>
On Wed, 2011-07-13 at 13:45 -0400, Daniel J Walsh wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> On 07/13/2011 01:20 PM, Matthew Ife wrote:
> > I dont think that will work. According to my strace systemd performs
> > the work completely on behalf of the user when calling systemctl.
> >
> > It might be more elegant to solve the problem in software.. ideally
> > with some selinux object manager for systemd that systemctl can be
> > intercepted with.
> >
> > Say classes of target and service and permissions like start, stop
> > reload, restart etc.
> >
> > That could take a while to implement though.
> >
> Right, I was thinking of something simpler, Have systemd become an
> object manager but only have it check the services file. That way we
> just put a label on the services file and have systemd check if the user
> context is allowed to "PROCESS" "EXECUTE" or some other access method on
> the services file.
Don't reuse the kernel classes/permissions please. I know we've done
that in e.g. crond in the past, but it conflates their purpose; define
new classes/perms for this purpose instead. Also be sure to use the
newer interfaces for userspace object managers ala XSELinux so that you
use dynamic class/perm mapping. We still need the older userspace
object managers to be updated in that regard.
--
Stephen Smalley
National Security Agency
--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to majordomo@tycho.nsa.gov with
the words "unsubscribe selinux" without quotes as the message.
next prev parent reply other threads:[~2011-07-14 12:51 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-07-12 21:12 As we move to systemd, we are loosing some functionality from init scripts Daniel J Walsh
2011-07-13 13:33 ` Christopher J. PeBenito
2011-07-13 13:38 ` Daniel J Walsh
2011-07-13 17:20 ` Matthew Ife
2011-07-13 17:45 ` Daniel J Walsh
2011-07-14 12:51 ` Stephen Smalley [this message]
2011-07-14 13:23 ` Russell Coker
2011-07-14 13:41 ` Stephen Smalley
2011-07-15 17:10 ` Daniel J Walsh
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=1310647915.28361.2.camel@moss-pluto \
--to=sds@tycho.nsa.gov \
--cc=deleriux@airattack-central.com \
--cc=dwalsh@redhat.com \
--cc=selinux@tycho.nsa.gov \
/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.