All of lore.kernel.org
 help / color / mirror / Atom feed
From: Daniel J Walsh <dwalsh@redhat.com>
To: SE Linux <selinux@tycho.nsa.gov>
Subject: Elimination of disable_trans boolean ramifications
Date: Fri, 23 Mar 2007 13:41:58 -0400	[thread overview]
Message-ID: <46041166.8010102@redhat.com> (raw)

I have removed the disable_trans booleans from Rawhide, and FC7 Test3.  
I wanted to remove these booleans because they cause as many problems as 
they solve.    If you turn off certain domains, it can change the 
labeling on the system and cause other confined domains to blow up.

If you syslog_disable_trans, the devlog_t context is wrong and any 
confined app that tries to syslog will no longer work.

The best thing to do when confronted with an AVC would be to figure out 
if this is expected behavior, if yes then report it as a bug to upstream 
or to the distribution and create a loadable policy module that handles 
the problem.

If there are so many problems or a user just does not want to deal with 
it I figured we could just load a policy that sets the domain as an 
unconfined_domain.

If you wanted to run samba as an unconfined domain  you would build a 
policy module

policy_module(mysamba, 1.0)

require {
        type smbd_t;
}

unconfined_domain(smbd_t)


Compile it

make -f /usr/share/selinux/devel/Makefile

And load it

semodule -i mysamba.pp

Only problem...

semodule -i mysamba.pp
libsepol.permission_copy_callback: Module mysamba depends on permission 
* in class capability, not satisfied
libsemanage.semanage_link_sandbox: Link packages failed
semodule:  Failed!

But once we fix the interface this should work.

I think this is a better solution, we could even instrument 
system-config-selinux or audit2allow to  generate this policy module on 
the fly.  I think this is better than disable_trans or setting up a 
boolean for all confined domains to go to unconfined.



--
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:[~2007-03-23 17:42 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-03-23 17:41 Daniel J Walsh [this message]
2007-03-23 18:52 ` Elimination of disable_trans boolean ramifications Daniel J Walsh
2007-03-28 18:09   ` Christopher J. PeBenito
2007-03-26 16:43 ` Karl MacMillan
2007-03-26 19:11   ` Daniel J Walsh
2007-03-26 20:12     ` Karl MacMillan

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=46041166.8010102@redhat.com \
    --to=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.