All of lore.kernel.org
 help / color / mirror / Atom feed
From: Daniel J Walsh <dwalsh@redhat.com>
To: Karl MacMillan <kmacmillan@mentalrootkit.com>
Cc: SE Linux <selinux@tycho.nsa.gov>
Subject: Re: Elimination of disable_trans boolean ramifications
Date: Mon, 26 Mar 2007 15:11:28 -0400	[thread overview]
Message-ID: <46081AE0.5070703@redhat.com> (raw)
In-Reply-To: <1174927405.12204.51.camel@localhost.localdomain>

Karl MacMillan wrote:
> On Fri, 2007-03-23 at 13:41 -0400, Daniel J Walsh wrote:
>   
>> 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)
>>
>>
>>     
>
> So - I like this idea from a technical point-of-view. The only concern
> is that users are used to looking for a booleans for this type of thing.
> There is some hope that they would discover the changed booleans poking
> around a gui tool or using g/setsebool. I don't think most users would
> never think to create a module to make a domain unconfined. Plus, the
> directions on how to do this go from a single command to several.
>
> I've heard concern that the number of booleans is growing too large. I
> would suggest that if that is your motivation for avoiding booleans that
> we find a way to organize them instead.
>
> Karl
>   
I think turning a domain unconfined_domain should be the last resort.  
(Or I guess better then chcon -t bin_t EXEC)

I think adding a boolean makes it too easy for them.

The response to an AVC would be best if it involved the following:

1. Ignore AVC if the app works. Reporting a bugzilla against the package 
that created it.  Leaked file descriptor or daemons trying to talk to 
terminals are classic examples of this.
2. If setroubleshoot suggests a boolean or file_context to set then set 
it and see if the app works.
3. audit2allow -M myEXEC -i /var/log/audit/audit.log  to "fix" the 
policy for the app  (BUGZILLA)
4. New tool to create unconfined_domain policy package for running 
daemon unconfined (BUGZILLA)
5. chcon -t bin_t EXEC (BUGZILLA)
6. setenforce 0 (BUGZILLA)
7. selinux=0 (BUGZILLA)


--
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-26 19:11 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-03-23 17:41 Elimination of disable_trans boolean ramifications Daniel J Walsh
2007-03-23 18:52 ` 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 [this message]
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=46081AE0.5070703@redhat.com \
    --to=dwalsh@redhat.com \
    --cc=kmacmillan@mentalrootkit.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.