semanage man page updated for booleans
semanage/semanage.8 +6 -1
@@ -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.
semanage/semanage.8 line 8
Quoted 11 lines · Daniel J Walsh
plain text document attachment (diff.part003)
semanage/semanage.8 +3
-1@@ -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.
semanage/semanage.8 line 49
Quoted 9 lines
semanage/semanage.8 +2
-0.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.
Quoted 4 lines
semanage/semanage.8 +1
-0+.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.
Signature · 8 lines
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 [email protected] with the words "unsubscribe selinux" without quotes as the message.
Quoted 15 lines · Stephen Smalley
semanage/semanage.8 line 8
Quoted 11 lines · Daniel J Walsh
plain text document attachment (diff.part003)
semanage/semanage.8 +3
-1@@ -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] booleanMerged with some fixes (no -T, added --on/--off/-1/-0).
Quoted 2 lines
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?
Quoted 21 lines
semanage/semanage.8 line 49
Quoted 10 lines
semanage/semanage.8 +2
-0.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 customizationsDoes 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.
Quoted 4 lines
semanage/semanage.8 +1
-0+.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.
Signature · 8 lines
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 [email protected] with the words "unsubscribe selinux" without quotes as the message.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Quoted 15 lines · Stephen Smalley
Quoted 14 lines · Stephen Smalley
semanage/semanage.8 line 8
Quoted 11 lines · Daniel J Walsh
plain text document attachment (diff.part003)
semanage/semanage.8 +3
-1@@ -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] booleanMerged with some fixes (no -T, added --on/--off/-1/-0).
Quoted 7 lines
Quoted 2 lines
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_tto set boolean values, so attempting to modify booleans using semanage rather than setsebool fails. So policy needs to be updated.
Rawhide has this.
Quoted 2 lines
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.
Quoted 15 lines
Quoted 15 lines
semanage/semanage.8 line 49
Quoted 9 lines
semanage/semanage.8 +2
-0.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 customizationsDoes 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.
Quoted 4 lines
Quoted 4 lines
semanage/semanage.8 line 53
Quoted 4 lines
semanage/semanage.8 +1
-0+.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 [email protected] with the words "unsubscribe selinux" without quotes as the message.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Quoted 18 lines · Stephen Smalley
semanage/semanage.8 line 8
Quoted 11 lines · Daniel J Walsh
plain text document attachment (diff.part003)
semanage/semanage.8 +3
-1@@ -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] booleanMerged 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.
Quoted 9 lines
semanage/semanage.8 line 49
Quoted 9 lines
semanage/semanage.8 +2
-0.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.
Quoted 11 lines
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.
Quoted 4 lines
semanage/semanage.8 +1
-0+.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 [email protected] with the words "unsubscribe selinux" without quotes as the message.