All of lore.kernel.org
 help / color / mirror / Atom feed
* semanage man page updated for booleans
@ 2008-04-08 13:59 Daniel J Walsh
  2008-04-18 14:35 ` Stephen Smalley
  0 siblings, 1 reply; 5+ messages in thread
From: Daniel J Walsh @ 2008-04-08 13:59 UTC (permalink / raw)
  To: SE Linux

[-- Attachment #1: Type: text/plain, Size: 0 bytes --]



[-- Attachment #2: diff.part003 --]
[-- Type: text/plain, Size: 883 bytes --]

--- nsapolicycoreutils/semanage/semanage.8	2008-04-08 09:37:21.000000000 -0400
+++ policycoreutils-2.0.46/semanage/semanage.8	2008-04-08 09:35:46.000000000 -0400
@@ -3,7 +3,9 @@
 semanage \- SELinux Policy Management tool
 
 .SH "SYNOPSIS"
-.B semanage {login|user|port|interface|fcontext|translation} \-l [\-n]
+.B semanage {boolean|login|user|port|interface|fcontext|translation} \-{l|D} [\-n] 
+.br
+.B semanage boolean \-{d|m} [\-T] boolean
 .br
 .B semanage login \-{a|d|m} [\-sr] login_name
 .br
@@ -43,6 +45,9 @@
 .I                \-d, \-\-delete     
 Delete a OBJECT record NAME
 .TP
+.I                \-D, \-\-deleteall
+Remove all OBJECTS local customizations
+.TP
 .I                \-f, \-\-ftype
 File Type.   This is used with fcontext.
 Requires a file type as shown in the mode field by ls, e.g. use -d to match only directories or -- to match only regular files.

[-- Attachment #3: diff.part003.sig --]
[-- Type: application/pgp-signature, Size: 72 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: semanage man page updated for booleans
  2008-04-08 13:59 semanage man page updated for booleans Daniel J Walsh
@ 2008-04-18 14:35 ` Stephen Smalley
  2008-04-18 14:39   ` Stephen Smalley
  2008-04-18 18:13   ` Daniel J Walsh
  0 siblings, 2 replies; 5+ messages in thread
From: Stephen Smalley @ 2008-04-18 14:35 UTC (permalink / raw)
  To: Daniel J Walsh; +Cc: SE Linux


On Tue, 2008-04-08 at 09:59 -0400, Daniel J Walsh wrote:
> plain text document attachment (diff.part003)
> --- nsapolicycoreutils/semanage/semanage.8	2008-04-08 09:37:21.000000000 -0400
> +++ policycoreutils-2.0.46/semanage/semanage.8	2008-04-08 09:35:46.000000000 -0400
> @@ -3,7 +3,9 @@
>  semanage \- SELinux Policy Management tool
>  
>  .SH "SYNOPSIS"
> -.B semanage {login|user|port|interface|fcontext|translation} \-l [\-n]
> +.B semanage {boolean|login|user|port|interface|fcontext|translation} \-{l|D} [\-n] 
> +.br
> +.B semanage boolean \-{d|m} [\-T] boolean

Merged with some fixes (no -T, added --on/--off/-1/-0).

Also added a mention of the -C/--locallist option for only listing local
settings.  And added error checking on the set_active() call.

>  .br
>  .B semanage login \-{a|d|m} [\-sr] login_name
>  .br
> @@ -43,6 +45,9 @@
>  .I                \-d, \-\-delete     
>  Delete a OBJECT record NAME
>  .TP
> +.I                \-D, \-\-deleteall
> +Remove all OBJECTS local customizations

Does this actually yield the expected result for booleans?  IOW, if I
delete all local customizations, does it also change the active boolean
settings to the base policy values?  If not, then the user won't see the
real effect until they next reboot since the kernel will keep preserving
the active boolean settings across reload.
 
> +.TP
>  .I                \-f, \-\-ftype
>  File Type.   This is used with fcontext.
>  Requires a file type as shown in the mode field by ls, e.g. use -d to match only directories or -- to match only regular files.
-- 
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] 5+ messages in thread

* Re: semanage man page updated for booleans
  2008-04-18 14:35 ` Stephen Smalley
@ 2008-04-18 14:39   ` Stephen Smalley
  2008-04-18 18:12     ` Daniel J Walsh
  2008-04-18 18:13   ` Daniel J Walsh
  1 sibling, 1 reply; 5+ messages in thread
From: Stephen Smalley @ 2008-04-18 14:39 UTC (permalink / raw)
  To: Daniel J Walsh; +Cc: SE Linux


On Fri, 2008-04-18 at 10:35 -0400, Stephen Smalley wrote:
> On Tue, 2008-04-08 at 09:59 -0400, Daniel J Walsh wrote:
> > plain text document attachment (diff.part003)
> > --- nsapolicycoreutils/semanage/semanage.8	2008-04-08 09:37:21.000000000 -0400
> > +++ policycoreutils-2.0.46/semanage/semanage.8	2008-04-08 09:35:46.000000000 -0400
> > @@ -3,7 +3,9 @@
> >  semanage \- SELinux Policy Management tool
> >  
> >  .SH "SYNOPSIS"
> > -.B semanage {login|user|port|interface|fcontext|translation} \-l [\-n]
> > +.B semanage {boolean|login|user|port|interface|fcontext|translation} \-{l|D} [\-n] 
> > +.br
> > +.B semanage boolean \-{d|m} [\-T] boolean
> 
> Merged with some fixes (no -T, added --on/--off/-1/-0).
> 
> Also added a mention of the -C/--locallist option for only listing local
> settings.  And added error checking on the set_active() call.

Also, last I tried, policy didn't allow semanage_t to set boolean
values, so attempting to modify booleans using semanage rather than
setsebool fails.  So policy needs to be updated.

And what domain is system-config-selinux running in at present?

> 
> >  .br
> >  .B semanage login \-{a|d|m} [\-sr] login_name
> >  .br
> > @@ -43,6 +45,9 @@
> >  .I                \-d, \-\-delete     
> >  Delete a OBJECT record NAME
> >  .TP
> > +.I                \-D, \-\-deleteall
> > +Remove all OBJECTS local customizations
> 
> Does this actually yield the expected result for booleans?  IOW, if I
> delete all local customizations, does it also change the active boolean
> settings to the base policy values?  If not, then the user won't see the
> real effect until they next reboot since the kernel will keep preserving
> the active boolean settings across reload.
>  
> > +.TP
> >  .I                \-f, \-\-ftype
> >  File Type.   This is used with fcontext.
> >  Requires a file type as shown in the mode field by ls, e.g. use -d to match only directories or -- to match only regular files.
-- 
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] 5+ messages in thread

* Re: semanage man page updated for booleans
  2008-04-18 14:39   ` Stephen Smalley
@ 2008-04-18 18:12     ` Daniel J Walsh
  0 siblings, 0 replies; 5+ messages in thread
From: Daniel J Walsh @ 2008-04-18 18:12 UTC (permalink / raw)
  To: Stephen Smalley; +Cc: SE Linux

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Stephen Smalley wrote:
> On Fri, 2008-04-18 at 10:35 -0400, Stephen Smalley wrote:
>> On Tue, 2008-04-08 at 09:59 -0400, Daniel J Walsh wrote:
>>> plain text document attachment (diff.part003)
>>> --- nsapolicycoreutils/semanage/semanage.8	2008-04-08 09:37:21.000000000 -0400
>>> +++ policycoreutils-2.0.46/semanage/semanage.8	2008-04-08 09:35:46.000000000 -0400
>>> @@ -3,7 +3,9 @@
>>>  semanage \- SELinux Policy Management tool
>>>  
>>>  .SH "SYNOPSIS"
>>> -.B semanage {login|user|port|interface|fcontext|translation} \-l [\-n]
>>> +.B semanage {boolean|login|user|port|interface|fcontext|translation} \-{l|D} [\-n] 
>>> +.br
>>> +.B semanage boolean \-{d|m} [\-T] boolean
>> Merged with some fixes (no -T, added --on/--off/-1/-0).
>>
>> Also added a mention of the -C/--locallist option for only listing local
>> settings.  And added error checking on the set_active() call.
> 
> Also, last I tried, policy didn't allow semanage_t to set boolean
> values, so attempting to modify booleans using semanage rather than
> setsebool fails.  So policy needs to be updated.
> 
Rawhide has this.
> And what domain is system-config-selinux running in at present?
> 
system-config-selinux runs in the users context (bin_t).  But it execs
the semanage command.
>>>  .br
>>>  .B semanage login \-{a|d|m} [\-sr] login_name
>>>  .br
>>> @@ -43,6 +45,9 @@
>>>  .I                \-d, \-\-delete     
>>>  Delete a OBJECT record NAME
>>>  .TP
>>> +.I                \-D, \-\-deleteall
>>> +Remove all OBJECTS local customizations
>> Does this actually yield the expected result for booleans?  IOW, if I
>> delete all local customizations, does it also change the active boolean
>> settings to the base policy values?  If not, then the user won't see the
>> real effect until they next reboot since the kernel will keep preserving
>> the active boolean settings across reload.
>>  
>>> +.TP
>>>  .I                \-f, \-\-ftype
>>>  File Type.   This is used with fcontext.
>>>  Requires a file type as shown in the mode field by ls, e.g. use -d to match only directories or -- to match only regular files.

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org

iEYEARECAAYFAkgI5KoACgkQrlYvE4MpobPTOwCcDL9zVaUPnfAEcCb6aJA0Hcwt
NWAAoObepDwXUlYyZGAnirTYjAKRChS5
=QtwN
-----END PGP SIGNATURE-----

--
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] 5+ messages in thread

* Re: semanage man page updated for booleans
  2008-04-18 14:35 ` Stephen Smalley
  2008-04-18 14:39   ` Stephen Smalley
@ 2008-04-18 18:13   ` Daniel J Walsh
  1 sibling, 0 replies; 5+ messages in thread
From: Daniel J Walsh @ 2008-04-18 18:13 UTC (permalink / raw)
  To: Stephen Smalley; +Cc: SE Linux

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Stephen Smalley wrote:
> On Tue, 2008-04-08 at 09:59 -0400, Daniel J Walsh wrote:
>> plain text document attachment (diff.part003)
>> --- nsapolicycoreutils/semanage/semanage.8	2008-04-08 09:37:21.000000000 -0400
>> +++ policycoreutils-2.0.46/semanage/semanage.8	2008-04-08 09:35:46.000000000 -0400
>> @@ -3,7 +3,9 @@
>>  semanage \- SELinux Policy Management tool
>>  
>>  .SH "SYNOPSIS"
>> -.B semanage {login|user|port|interface|fcontext|translation} \-l [\-n]
>> +.B semanage {boolean|login|user|port|interface|fcontext|translation} \-{l|D} [\-n] 
>> +.br
>> +.B semanage boolean \-{d|m} [\-T] boolean
> 
> Merged with some fixes (no -T, added --on/--off/-1/-0).
> 
> Also added a mention of the -C/--locallist option for only listing local
> settings.  And added error checking on the set_active() call.
> 
>>  .br
>>  .B semanage login \-{a|d|m} [\-sr] login_name
>>  .br
>> @@ -43,6 +45,9 @@
>>  .I                \-d, \-\-delete     
>>  Delete a OBJECT record NAME
>>  .TP
>> +.I                \-D, \-\-deleteall
>> +Remove all OBJECTS local customizations
I have an open bugreport where this actually crashes libsemanage, so I
will check when I work on the bug.
> 
> Does this actually yield the expected result for booleans?  IOW, if I
> delete all local customizations, does it also change the active boolean
> settings to the base policy values?  If not, then the user won't see the
> real effect until they next reboot since the kernel will keep preserving
> the active boolean settings across reload.
>  
>> +.TP
>>  .I                \-f, \-\-ftype
>>  File Type.   This is used with fcontext.
>>  Requires a file type as shown in the mode field by ls, e.g. use -d to match only directories or -- to match only regular files.

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org

iEYEARECAAYFAkgI5NYACgkQrlYvE4MpobOaxQCgprN/ncwNL+BzPbPOcyAmbozq
S+8AnRJWyOKRwjj1WKXr2WJ//yScZffJ
=N0ur
-----END PGP SIGNATURE-----

--
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] 5+ messages in thread

end of thread, other threads:[~2008-04-18 18:13 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-04-08 13:59 semanage man page updated for booleans Daniel J Walsh
2008-04-18 14:35 ` Stephen Smalley
2008-04-18 14:39   ` Stephen Smalley
2008-04-18 18:12     ` Daniel J Walsh
2008-04-18 18:13   ` 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.