All of lore.kernel.org
 help / color / mirror / Atom feed
From: Daniel J Walsh <dwalsh@redhat.com>
To: Matthew Ife <deleriux@airattack-central.com>
Cc: SELinux <selinux@tycho.nsa.gov>
Subject: Re: As we move to systemd, we are loosing some functionality from init scripts.
Date: Wed, 13 Jul 2011 13:45:11 -0400	[thread overview]
Message-ID: <4E1DD9A7.80007@redhat.com> (raw)
In-Reply-To: <1310577633.19434.6.camel@home.localdomain>

-----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.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk4d2acACgkQrlYvE4MpobP1vwCeOKZ7Z15EU43/I7UN9i86Udcz
Qi0AoM71WDDl6Y1N3ZDNbdf/mRcKIWfT
=fDed
-----END PGP SIGNATURE-----

--
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.

  reply	other threads:[~2011-07-13 17:45 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 [this message]
2011-07-14 12:51     ` Stephen Smalley
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=4E1DD9A7.80007@redhat.com \
    --to=dwalsh@redhat.com \
    --cc=deleriux@airattack-central.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.