All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Update newrole authors and provide use examples in manpage
@ 2007-01-19  8:51 Michael C Thompson
  2007-01-22 13:28 ` Stephen Smalley
  0 siblings, 1 reply; 2+ messages in thread
From: Michael C Thompson @ 2007-01-19  8:51 UTC (permalink / raw)
  To: SE Linux

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

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.

Signed-off-by: Michael Thompson <thompsmc@us.ibm.com>

---


[-- Attachment #2: newrole-man_author.patch --]
[-- Type: text/x-diff, Size: 2251 bytes --]

diff -Naur policycoreutils-1.33.12.orig/newrole/newrole.1 policycoreutils-1.33.12/newrole/newrole.1
--- policycoreutils-1.33.12.orig/newrole/newrole.1	2007-01-11 13:01:39.000000000 -0600
+++ policycoreutils-1.33.12/newrole/newrole.1	2007-01-12 10:15:14.000000000 -0600
@@ -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 (tfraser@tislabs.com) 
-Anthony Colatrella (amcolat@epoch.ncsc.mil)
+Anthony Colatrella
+Tim Fraser
+Steve Grubb <sgrubb@redhat.com>
+Darrel Goeddel <DGoeddel@trustedcs.com>
+Michael Thompson <mcthomps@us.ibm.com>
+Dan Walsh <dwalsh@redhat.com>
diff -Naur policycoreutils-1.33.12.orig/newrole/newrole.c policycoreutils-1.33.12/newrole/newrole.c
--- policycoreutils-1.33.12.orig/newrole/newrole.c	2007-01-11 13:01:39.000000000 -0600
+++ policycoreutils-1.33.12/newrole/newrole.c	2007-01-14 13:56:41.000000000 -0600
@@ -36,8 +36,14 @@
  * setuid root, so that it can read the shadow passwd file.
  * 
  *
- * Authors:  Tim Fraser , 
- *           Anthony Colatrella <amcolat@epoch.ncsc.mil>
+ * Authors:
+ *      Anthony Colatrella <amcolat@epoch.ncsc.mil>
+ *	Tim Fraser
+ *	Steve Grubb <sgrubb@redhat.com>
+ *	Darrel Goeddel <DGoeddel@trustedcs.com>
+ *	Michael Thompson <mcthomps@us.ibm.com>
+ *	Dan Walsh <dwalsh@redhat.com>
+ *
  * Various bug fixes by Stephen Smalley <sds@epoch.ncsc.mil>
  *
  *************************************************************************/

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

* Re: [PATCH] Update newrole authors and provide use examples in manpage
  2007-01-19  8:51 [PATCH] Update newrole authors and provide use examples in manpage Michael C Thompson
@ 2007-01-22 13:28 ` Stephen Smalley
  0 siblings, 0 replies; 2+ messages in thread
From: Stephen Smalley @ 2007-01-22 13:28 UTC (permalink / raw)
  To: Michael C Thompson; +Cc: SE Linux

On Fri, 2007-01-19 at 02:51 -0600, Michael C Thompson wrote:
> 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.
> 
> Signed-off-by: Michael Thompson <thompsmc@us.ibm.com>
> 
> ---

Your patch was merged earlier upstream, in policycoreutils 1.33.14.

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

end of thread, other threads:[~2007-01-22 13:28 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-01-19  8:51 [PATCH] Update newrole authors and provide use examples in manpage Michael C Thompson
2007-01-22 13:28 ` Stephen Smalley

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.