Skip to contentSkip to conversation

Update newrole authors and provide use examples in manpage

PATCH In review Michael C Thompson 2 participants 2 messages Jan 19, 2007 – Jan 22, 2007 SELinux security module

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Update newrole authors and provide use examples in manpage

Due to lack of clear documentation, the below patch adds an examples section to the newrole.1 manpage. These examples include changing role, and level (sensitivty only, and both sensitivity and clearance).

This patch also updates the authors sections of the newrole.1 manpage and the newrole.c source file, listing them in alphabetical order by last name.

---

newrole/newrole.1 +34 -5
diff -Naur policycoreutils-1.33.12.orig/newrole/newrole.1 policycoreutils-1.33.12/newrole/newrole.1
@@ -57,16 +57,45 @@
 .B --version
 shows the current version of newrole
 .PP
+.SH EXAMPLE
+.br
+Changing role:
+   # id -Z
+   staff_u:staff_r:staff_t:SystemLow-SystemHigh
+   # newrole -r sysadm_r
+   # id -Z
+   staff_u:sysadm_r:sysadm_t:SystemLow-SystemHigh
+
+Changing sensitivity only:
+   # id -Z
+   staff_u:sysadm_r:sysadm_t:Unclassified-SystemHigh
+   # newrole -l Secret
+   # id -Z
+   staff_u:sysadm_r:sysadm_t:Secret-SystemHigh
+
+.PP
+Changing sensitivity and clearance:
+   # id -Z
+   staff_u:sysadm_r:sysadm_t:Unclassified-SystemHigh
+   # newrole -l Secret-Secret
+   # id -Z
+   staff_u:sysadm_r:sysadm_t:Secret
+
 .SH FILES
 /etc/passwd - user account information
 .br
 /etc/shadow - encrypted passwords and age information
+.br
+/etc/selinux/<policy>/contexts/default_type - default types for roles
+.br
 .SH SEE ALSO
-.B su
-(1),
-.B runas
+.B runcon
 (1)
 .SH AUTHORS
 .nf
-Tim Fraser ([email protected]) 
-Anthony Colatrella ([email protected])
+Anthony Colatrella
+Tim Fraser
+Steve Grubb <[email protected]>
+Darrel Goeddel <[email protected]>
+Michael Thompson <[email protected]>
+Dan Walsh <[email protected]>
newrole/newrole.c +8 -2
diff -Naur policycoreutils-1.33.12.orig/newrole/newrole.c policycoreutils-1.33.12/newrole/newrole.c
@@ -36,8 +36,14 @@
  * setuid root, so that it can read the shadow passwd file.
  * 
  *
- * Authors:  Tim Fraser , 
- *           Anthony Colatrella <[email protected]>
+ * Authors:
+ *      Anthony Colatrella <[email protected]>
+ *	Tim Fraser
+ *	Steve Grubb <[email protected]>
+ *	Darrel Goeddel <[email protected]>
+ *	Michael Thompson <[email protected]>
+ *	Dan Walsh <[email protected]>
+ *
  * Various bug fixes by Stephen Smalley <[email protected]>
  *
  *************************************************************************/
#1 lore raw
Quoted 11 lines · Michael C Thompson

Due to lack of clear documentation, the below patch adds an examples section to the newrole.1 manpage. These examples include changing role, and level (sensitivty only, and both sensitivity and clearance).

This patch also updates the authors sections of the newrole.1 manpage and the newrole.c source file, listing them in alphabetical order by last name.

---

Your patch was merged earlier upstream, in policycoreutils 1.33.14.

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.