From: antoine <antoine@nagafix.co.uk>
To: ivg2@cornell.edu
Cc: SELinux <selinux@tycho.nsa.gov>, walters@redhat.com
Subject: Re: mdadm policy
Date: Fri, 24 Jun 2005 17:35:05 +0100 [thread overview]
Message-ID: <1119630905.9645.37.camel@localhost> (raw)
In-Reply-To: <1119627684.30464.8.camel@celtics.boston.redhat.com>
> > I guess it allows execution of /bin and /sbin for the "PROGRAM" user
> > defined action, so I could keep it more restricted by only allowing
> > execution of sendmail_exec_t for my use.
>
> Perhaps...
>
> Note that the execution occurs without a transition (execute_no_trans),
> which means that while executing the sub-program, it runs in
> the same confined domain.
Well that's no comfort at all, mdadm_t domain has the ability to access
raw disks and send mail... That's worrying enough.
# RAID block device access
allow mdadm_t fixed_disk_device_t:blk_file create_file_perms;
> > Since this is the only
> > statement in the policy that allows execution of external code, it feels
> > like the most important place to put restrictions on.
>
> See above - execution of external code isn't so much of a problem
> as long as it occurs in the same domain. If the external code
> does anything undesirable, it will be done in the mdadm domain.
True as long as the domain is sufficiently constrained, which is not the
case for mdadm. I will tweak my policy to make it run sendmail in
sendmail_t and nothing else. That's safer than mdadm_t.
Antoine
--
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:[~2005-06-24 16:33 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-06-23 23:27 mdadm policy antoine
2005-06-24 1:50 ` Ivan Gyurdiev
2005-06-24 9:35 ` antoine
2005-06-24 15:41 ` Ivan Gyurdiev
2005-06-24 15:58 ` Colin Walters
2005-06-24 16:35 ` antoine [this message]
2005-06-24 17:46 ` Ivan Gyurdiev
2005-06-24 18:02 ` antoine
2005-06-24 19:05 ` Ivan Gyurdiev
2005-06-24 19:27 ` antoine
2005-06-24 19:29 ` Ivan Gyurdiev
2005-06-24 19:43 ` Stephen Smalley
2005-06-25 3:42 ` Daniel J Walsh
2005-06-24 19:47 ` Stephen Smalley
2005-06-24 11:29 ` Stephen Smalley
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=1119630905.9645.37.camel@localhost \
--to=antoine@nagafix.co.uk \
--cc=ivg2@cornell.edu \
--cc=selinux@tycho.nsa.gov \
--cc=walters@redhat.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.