Update newrole authors and provide use examples in manpage
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
@@ -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
@@ -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]> * *************************************************************************/
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.csource file, listing them in alphabetical order by last name.Signed-off-by Michael Thompson <[email protected]>---
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.