Skip to contentSkip to conversation

patch for semanage.8

PATCH Russell Coker 2 participants 2 messages Jan 11, 2007 – Jan 12, 2007 SELinux security module

lore
Share & tools
lore
#0 lore raw

The attached patch makes the man page more closely match semanage --help. This is against the latest version in Debian, I haven't checked whether it's needed in rawhide.

Signature · 4 lines
[email protected]
http://etbe.blogspot.com/          My Blog

http://www.coker.com.au/sponsorship.html Sponsoring Free Software development
semanage.8 renamed from semanage.8.orig +6 -3
@@ -7,7 +7,7 @@
 .br
 .B semanage login \-{a|d|m} [\-sr] login_name
 .br
-.B semanage user \-{a|d|m} [\-LrR] selinux_name
+.B semanage user \-{a|d|m} [\-LrRP] selinux_name
 .br
 .B semanage port \-{a|d|m} [\-tr] [\-p protocol] port | port_range
 .br
@@ -45,7 +45,7 @@
 .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.
+Requires a file type as shown in the mode field by ls, use -d to match only directories -- for regular files, -c for character devices, -b for block devices, -s for sockets, -l for symbolic links, and -p for pipes.
 .TP
 .I                \-h, \-\-help       
 display this message
@@ -78,7 +78,10 @@
 SELinux Type for the object
 .TP
 .I                \-T, \-\-trans
-SELinux Translation
+SELinux level Translation
+.TP
+.I                \-P, \-\-prefix
+Labelling prefix for the user (sysadm, staff, or user)
 .TP
 .I                \-v, \-\-verbose    
 verbose output
#1 lore raw
Quoted 3 lines · Russell Coker

The attached patch makes the man page more closely match semanage --help. This is against the latest version in Debian, I haven't checked whether it's needed in rawhide.

Doesn't apply upstream. Looks like the first hunk is already applied, the second hunk is not but won't apply cleanly, and the last hunk contains duplicate information (-P,--prefix already documented at least in the upstream man page, but prior to -s,--seuser).

Mostly though we just need corrected and expanded examples of usage IMHO.

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.