* Minor change to getsebool.
@ 2007-03-08 16:12 Daniel J Walsh
2007-03-08 16:19 ` Stephen Smalley
2007-03-08 19:47 ` Christopher J. PeBenito
0 siblings, 2 replies; 7+ messages in thread
From: Daniel J Walsh @ 2007-03-08 16:12 UTC (permalink / raw)
To: Stephen Smalley, SE Linux
Should be non fatail when executing getsebool -a. I am starting to
label the booleans and
different user roles will only be able to manipulate certain booleans.
So we need to change
getsebool -a will only show booleans that domain can manipulate.
Currenly it will report the errrors that it can not read. We can either
add a qualifier to silence these or a new option to get only the list of
the ones I can manipulate.
--
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.
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Minor change to getsebool.
2007-03-08 16:12 Minor change to getsebool Daniel J Walsh
@ 2007-03-08 16:19 ` Stephen Smalley
2007-03-08 16:28 ` Daniel J Walsh
2007-03-09 7:42 ` Russell Coker
2007-03-08 19:47 ` Christopher J. PeBenito
1 sibling, 2 replies; 7+ messages in thread
From: Stephen Smalley @ 2007-03-08 16:19 UTC (permalink / raw)
To: Daniel J Walsh; +Cc: SE Linux, Karl MacMillan, Joshua Brindle
On Thu, 2007-03-08 at 11:12 -0500, Daniel J Walsh wrote:
> Should be non fatail when executing getsebool -a. I am starting to
> label the booleans and
> different user roles will only be able to manipulate certain booleans.
>
> So we need to change
>
> getsebool -a will only show booleans that domain can manipulate.
> Currenly it will report the errrors that it can not read. We can either
> add a qualifier to silence these or a new option to get only the list of
> the ones I can manipulate.
Actually, I'd tend to think we could just silence them by default if
errno is EACCES.
One other possible change to getsebool would be to make it fully
equivalent to setsebool, i.e. add a -P option and have it query
libsemanage to get persistent boolean settings in that case.
--
Stephen Smalley
National Security Agency
--
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.
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Minor change to getsebool.
2007-03-08 16:19 ` Stephen Smalley
@ 2007-03-08 16:28 ` Daniel J Walsh
2007-03-08 16:29 ` Stephen Smalley
2007-03-09 7:42 ` Russell Coker
1 sibling, 1 reply; 7+ messages in thread
From: Daniel J Walsh @ 2007-03-08 16:28 UTC (permalink / raw)
To: Stephen Smalley; +Cc: SE Linux, Karl MacMillan, Joshua Brindle
Stephen Smalley wrote:
> On Thu, 2007-03-08 at 11:12 -0500, Daniel J Walsh wrote:
>
>> Should be non fatail when executing getsebool -a. I am starting to
>> label the booleans and
>> different user roles will only be able to manipulate certain booleans.
>>
>> So we need to change
>>
>> getsebool -a will only show booleans that domain can manipulate.
>> Currenly it will report the errrors that it can not read. We can either
>> add a qualifier to silence these or a new option to get only the list of
>> the ones I can manipulate.
>>
>
> Actually, I'd tend to think we could just silence them by default if
> errno is EACCES.
>
> One other possible change to getsebool would be to make it fully
> equivalent to setsebool, i.e. add a -P option and have it query
> libsemanage to get persistent boolean settings in that case.
>
>
Then it needs to move from libselinux to policycoreutils.
--
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.
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Minor change to getsebool.
2007-03-08 16:28 ` Daniel J Walsh
@ 2007-03-08 16:29 ` Stephen Smalley
0 siblings, 0 replies; 7+ messages in thread
From: Stephen Smalley @ 2007-03-08 16:29 UTC (permalink / raw)
To: Daniel J Walsh; +Cc: SE Linux, Karl MacMillan, Joshua Brindle
On Thu, 2007-03-08 at 11:28 -0500, Daniel J Walsh wrote:
> Stephen Smalley wrote:
> > On Thu, 2007-03-08 at 11:12 -0500, Daniel J Walsh wrote:
> >
> >> Should be non fatail when executing getsebool -a. I am starting to
> >> label the booleans and
> >> different user roles will only be able to manipulate certain booleans.
> >>
> >> So we need to change
> >>
> >> getsebool -a will only show booleans that domain can manipulate.
> >> Currenly it will report the errrors that it can not read. We can either
> >> add a qualifier to silence these or a new option to get only the list of
> >> the ones I can manipulate.
> >>
> >
> > Actually, I'd tend to think we could just silence them by default if
> > errno is EACCES.
> >
> > One other possible change to getsebool would be to make it fully
> > equivalent to setsebool, i.e. add a -P option and have it query
> > libsemanage to get persistent boolean settings in that case.
> >
> >
> Then it needs to move from libselinux to policycoreutils.
Yes, that would be fine. Yet another possible change that has come up
before is a way to export this kind of data in a form that can be easily
imported elsewhere, e.g.
getsebool -P -a --export bools
setsebool -P --import bools
--
Stephen Smalley
National Security Agency
--
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.
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Minor change to getsebool.
2007-03-08 16:12 Minor change to getsebool Daniel J Walsh
2007-03-08 16:19 ` Stephen Smalley
@ 2007-03-08 19:47 ` Christopher J. PeBenito
2007-03-08 20:12 ` Daniel J Walsh
1 sibling, 1 reply; 7+ messages in thread
From: Christopher J. PeBenito @ 2007-03-08 19:47 UTC (permalink / raw)
To: Daniel J Walsh; +Cc: Stephen Smalley, SE Linux
On Thu, 2007-03-08 at 11:12 -0500, Daniel J Walsh wrote:
> I am starting to label the booleans and different user roles will only
> be able to manipulate certain booleans.
This brings up a problem. I'm trying to move booleans/tunables that
only are used in a single module back into that module (see the
booleans-modules branch of refpolicy). The problem is that genfscon
doesn't currently work in modules.
--
Chris PeBenito
Tresys Technology, LLC
(410) 290-1411 x150
--
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.
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Minor change to getsebool.
2007-03-08 19:47 ` Christopher J. PeBenito
@ 2007-03-08 20:12 ` Daniel J Walsh
0 siblings, 0 replies; 7+ messages in thread
From: Daniel J Walsh @ 2007-03-08 20:12 UTC (permalink / raw)
To: Christopher J. PeBenito; +Cc: Stephen Smalley, SE Linux
Christopher J. PeBenito wrote:
> On Thu, 2007-03-08 at 11:12 -0500, Daniel J Walsh wrote:
>
>> I am starting to label the booleans and different user roles will only
>> be able to manipulate certain booleans.
>>
>
> This brings up a problem. I'm trying to move booleans/tunables that
> only are used in a single module back into that module (see the
> booleans-modules branch of refpolicy). The problem is that genfscon
> doesn't currently work in modules.
>
>
Yes this is a huge problem, since I would like to be able to label each
boolean separately and then use attributes to control access.
--
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.
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Minor change to getsebool.
2007-03-08 16:19 ` Stephen Smalley
2007-03-08 16:28 ` Daniel J Walsh
@ 2007-03-09 7:42 ` Russell Coker
1 sibling, 0 replies; 7+ messages in thread
From: Russell Coker @ 2007-03-09 7:42 UTC (permalink / raw)
To: Stephen Smalley; +Cc: Daniel J Walsh, SE Linux, Karl MacMillan, Joshua Brindle
On Friday 09 March 2007 03:19, Stephen Smalley <sds@tycho.nsa.gov> wrote:
> > getsebool -a will only show booleans that domain can manipulate.
> > Currenly it will report the errrors that it can not read. We can either
> > add a qualifier to silence these or a new option to get only the list of
> > the ones I can manipulate.
>
> Actually, I'd tend to think we could just silence them by default if
> errno is EACCES.
I think it's good for "getsebool -a" to silently ignore such things.
But "getsebool foo" should display an error if it can't read foo.
> One other possible change to getsebool would be to make it fully
> equivalent to setsebool, i.e. add a -P option and have it query
> libsemanage to get persistent boolean settings in that case.
Makes sense.
--
russell@coker.com.au
http://etbe.blogspot.com/ My Blog
http://www.coker.com.au/sponsorship.html Sponsoring Free Software development
--
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.
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2007-03-09 7:42 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-03-08 16:12 Minor change to getsebool Daniel J Walsh
2007-03-08 16:19 ` Stephen Smalley
2007-03-08 16:28 ` Daniel J Walsh
2007-03-08 16:29 ` Stephen Smalley
2007-03-09 7:42 ` Russell Coker
2007-03-08 19:47 ` Christopher J. PeBenito
2007-03-08 20:12 ` Daniel J Walsh
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.