All of lore.kernel.org
 help / color / mirror / Atom feed
From: Joshua Brindle <jbrindle@tresys.com>
To: Daniel J Walsh <dwalsh@redhat.com>
Cc: Ivan Gyurdiev <ivg2@cornell.edu>, SE Linux <selinux@tycho.nsa.gov>
Subject: Re: Why are we managing seusers file via libsemanage?
Date: Tue, 17 Jan 2006 00:33:54 -0500	[thread overview]
Message-ID: <43CC81C2.5010104@tresys.com> (raw)
In-Reply-To: <43CC8040.1060704@tresys.com>

Joshua Brindle wrote:
> Daniel J Walsh wrote:
> 
>> I don't recall why we did this?
>>
>> I am now thinking this is not a good idea.  People were told to edit 
>> the /etc/selinux/POLICYTYPE/seusers file to change the default level 
>> at login, now we do this via libsemanage.  But doing this via 
>> libsemanage eliminates us from being able to distribute this 
>> information via say LDAP.
>>
> so that there could be a system + local (combined at commit time) iirc.
> 
> the database design of libsemanage should be conducive to distributing 
> this info with LDAP and still adding it to the policy at commit time. 
> Ivan made the database implementation fairly flexible about changing the 
> storage backend while still pulling the data in and using it to rebuild 
> policies.
> 
>> I think that seusers and setrans.conf should be left as flat files and 
>> allowed to be distributed via ldap.  We can allow the semanage tool 
>> and others to modify them and verify the data entry, but not manage 
>> them via the library.
>>
> 
> I'd rather a central point for SELinux management. Also, if not through 
> libsemanage the seuser file couldn't be managed through the policy 
> server. Further, libsemanage gives the ability to sanity check the input 
>  against the policy for error checking at modify time. This should 
> potentially cut down on bugs caused by modifying this by hand.
> 

To clarify: The library needs to do the validation no matter what. The 
policy isn't exposed to any userland tools so semanage can't do checking 
itself. So whether the semanage tool writes the file or libsemanage 
writes the file the library does validation, I don't see a compelling 
reason to push this parsing/writing code to the client.

I'd like the policy server to be capable of enforcing access on this 
file or else all the policy access controls are for naught, since the 
seuser file becomes an all-or-nothing point to give permissions to users.

--
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:[~2006-01-17  5:34 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-01-17  3:49 Why are we managing seusers file via libsemanage? Daniel J Walsh
2006-01-17  5:27 ` Joshua Brindle
2006-01-17  5:33   ` Joshua Brindle [this message]
2006-01-17  7:36     ` Ivan Gyurdiev
2006-01-17  8:10       ` Ivan Gyurdiev
2006-01-17  7:16   ` Ivan Gyurdiev
2006-01-17  7:57 ` Ivan Gyurdiev
2006-01-17 18:02   ` Daniel J Walsh
2006-01-17 18:39     ` Ivan Gyurdiev
  -- strict thread matches above, loose matches on Subject: below --
2006-01-17 16:56 schaufler-ca.com - Casey Schaufler
2006-01-17 19:02 ` Ivan Gyurdiev

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=43CC81C2.5010104@tresys.com \
    --to=jbrindle@tresys.com \
    --cc=dwalsh@redhat.com \
    --cc=ivg2@cornell.edu \
    --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.