All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] policycoreutils/setfiles: Mention customizable types in restorecon man page
@ 2016-12-19 12:12 Vit Mojzis
  2016-12-19 14:51 ` Stephen Smalley
  0 siblings, 1 reply; 6+ messages in thread
From: Vit Mojzis @ 2016-12-19 12:12 UTC (permalink / raw)
  To: selinux

Signed-off-by: Vit Mojzis <vmojzis@redhat.com>
---
 policycoreutils/setfiles/restorecon.8 | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/policycoreutils/setfiles/restorecon.8 b/policycoreutils/setfiles/restorecon.8
index fdb468b..1803c12 100644
--- a/policycoreutils/setfiles/restorecon.8
+++ b/policycoreutils/setfiles/restorecon.8
@@ -58,6 +58,12 @@ The
 .B \-F
 option will force a replacement of the entire context.
 .P
+If a file is labeled with
+.BR customizable
+SELinux type (for list of customizable
+types see /etc/selinux/targeted/contexts/customizable_types), restorecon
+won't reset the label unless the \-F option is used.
+.P
 It is the same executable as
 .BR setfiles
 but operates in a slightly different manner depending on its argv[0].
@@ -124,7 +130,7 @@ change files and directories file labels recursively (descend directories).
 .br
 .TP
 .B \-v
-show changes in file labels. Note that the
+show changes in file labels. Multiple -v options increase the verbosity. Note that the
 .B \-v
 and
 .B \-p
-- 
2.7.4

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

* Re: [PATCH] policycoreutils/setfiles: Mention customizable types in restorecon man page
  2016-12-19 12:12 [PATCH] policycoreutils/setfiles: Mention customizable types in restorecon man page Vit Mojzis
@ 2016-12-19 14:51 ` Stephen Smalley
  2016-12-19 18:00   ` Vit Mojzis
  0 siblings, 1 reply; 6+ messages in thread
From: Stephen Smalley @ 2016-12-19 14:51 UTC (permalink / raw)
  To: Vit Mojzis, selinux

On Mon, 2016-12-19 at 13:12 +0100, Vit Mojzis wrote:
> Signed-off-by: Vit Mojzis <vmojzis@redhat.com>
> ---
>  policycoreutils/setfiles/restorecon.8 | 8 +++++++-
>  1 file changed, 7 insertions(+), 1 deletion(-)
> 
> diff --git a/policycoreutils/setfiles/restorecon.8
> b/policycoreutils/setfiles/restorecon.8
> index fdb468b..1803c12 100644
> --- a/policycoreutils/setfiles/restorecon.8
> +++ b/policycoreutils/setfiles/restorecon.8
> @@ -58,6 +58,12 @@ The
>  .B \-F
>  option will force a replacement of the entire context.
>  .P
> +If a file is labeled with
> +.BR customizable
> +SELinux type (for list of customizable
> +types see /etc/selinux/targeted/contexts/customizable_types), 

Should use {SELINUXTYPE} as we do in other man pages since not everyone
is running targeted, and probably add a see also for the
customizable_types man page.

> restorecon
> +won't reset the label unless the \-F option is used.
> +.P
>  It is the same executable as
>  .BR setfiles
>  but operates in a slightly different manner depending on its
> argv[0].
> @@ -124,7 +130,7 @@ change files and directories file labels
> recursively (descend directories).
>  .br
>  .TP
>  .B \-v
> -show changes in file labels. Note that the
> +show changes in file labels. Multiple -v options increase the
> verbosity. Note that the
>  .B \-v
>  and
>  .B \-p

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

* [PATCH] policycoreutils/setfiles: Mention customizable types in restorecon man page
  2016-12-19 14:51 ` Stephen Smalley
@ 2016-12-19 18:00   ` Vit Mojzis
  2016-12-19 18:49     ` Stephen Smalley
  0 siblings, 1 reply; 6+ messages in thread
From: Vit Mojzis @ 2016-12-19 18:00 UTC (permalink / raw)
  To: selinux

Signed-off-by: Vit Mojzis <vmojzis@redhat.com>
---
 policycoreutils/setfiles/restorecon.8 | 11 +++++++++--
 1 file changed, 9 insertions(+), 2 deletions(-)

diff --git a/policycoreutils/setfiles/restorecon.8 b/policycoreutils/setfiles/restorecon.8
index fdb468b..ec2b1b1 100644
--- a/policycoreutils/setfiles/restorecon.8
+++ b/policycoreutils/setfiles/restorecon.8
@@ -58,6 +58,12 @@ The
 .B \-F
 option will force a replacement of the entire context.
 .P
+If a file is labeled with
+.BR customizable
+SELinux type (for list of customizable
+types see /etc/selinux/{SELINUXTYPE}/contexts/customizable_types), restorecon
+won't reset the label unless the \-F option is used.
+.P
 It is the same executable as
 .BR setfiles
 but operates in a slightly different manner depending on its argv[0].
@@ -124,7 +130,7 @@ change files and directories file labels recursively (descend directories).
 .br
 .TP
 .B \-v
-show changes in file labels. Note that the
+show changes in file labels. Multiple -v options increase the verbosity. Note that the
 .B \-v
 and
 .B \-p
@@ -209,4 +215,5 @@ The program was written by Dan Walsh <dwalsh@redhat.com>.
 .SH "SEE ALSO"
 .BR setfiles (8),
 .BR load_policy (8),
-.BR checkpolicy (8)
+.BR checkpolicy (8),
+.BR customizable_types (8)
-- 
2.7.4

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

* Re: [PATCH] policycoreutils/setfiles: Mention customizable types in restorecon man page
  2016-12-19 18:00   ` Vit Mojzis
@ 2016-12-19 18:49     ` Stephen Smalley
  2016-12-21  9:03       ` Vit Mojzis
  0 siblings, 1 reply; 6+ messages in thread
From: Stephen Smalley @ 2016-12-19 18:49 UTC (permalink / raw)
  To: Vit Mojzis, selinux

On Mon, 2016-12-19 at 19:00 +0100, Vit Mojzis wrote:
> Signed-off-by: Vit Mojzis <vmojzis@redhat.com>
> ---
>  policycoreutils/setfiles/restorecon.8 | 11 +++++++++--
>  1 file changed, 9 insertions(+), 2 deletions(-)
> 
> diff --git a/policycoreutils/setfiles/restorecon.8
> b/policycoreutils/setfiles/restorecon.8
> index fdb468b..ec2b1b1 100644
> --- a/policycoreutils/setfiles/restorecon.8
> +++ b/policycoreutils/setfiles/restorecon.8
> @@ -58,6 +58,12 @@ The
>  .B \-F
>  option will force a replacement of the entire context.
>  .P
> +If a file is labeled with
> +.BR customizable
> +SELinux type (for list of customizable
> +types see /etc/selinux/{SELINUXTYPE}/contexts/customizable_types),
> restorecon
> +won't reset the label unless the \-F option is used.
> +.P
>  It is the same executable as
>  .BR setfiles
>  but operates in a slightly different manner depending on its
> argv[0].
> @@ -124,7 +130,7 @@ change files and directories file labels
> recursively (descend directories).
>  .br
>  .TP
>  .B \-v
> -show changes in file labels. Note that the
> +show changes in file labels. Multiple -v options increase the
> verbosity. Note that the
>  .B \-v
>  and
>  .B \-p
> @@ -209,4 +215,5 @@ The program was written by Dan Walsh <dwalsh@redh
> at.com>.
>  .SH "SEE ALSO"
>  .BR setfiles (8),
>  .BR load_policy (8),
> -.BR checkpolicy (8)
> +.BR checkpolicy (8),
> +.BR customizable_types (8)

Wrong section - should be 5.

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

* [PATCH] policycoreutils/setfiles: Mention customizable types in restorecon man page
  2016-12-19 18:49     ` Stephen Smalley
@ 2016-12-21  9:03       ` Vit Mojzis
  2016-12-21 14:37         ` Stephen Smalley
  0 siblings, 1 reply; 6+ messages in thread
From: Vit Mojzis @ 2016-12-21  9:03 UTC (permalink / raw)
  To: selinux

Signed-off-by: Vit Mojzis <vmojzis@redhat.com>
---
 policycoreutils/setfiles/restorecon.8 | 11 +++++++++--
 1 file changed, 9 insertions(+), 2 deletions(-)

diff --git a/policycoreutils/setfiles/restorecon.8 b/policycoreutils/setfiles/restorecon.8
index fdb468b..b00bf4e 100644
--- a/policycoreutils/setfiles/restorecon.8
+++ b/policycoreutils/setfiles/restorecon.8
@@ -58,6 +58,12 @@ The
 .B \-F
 option will force a replacement of the entire context.
 .P
+If a file is labeled with
+.BR customizable
+SELinux type (for list of customizable
+types see /etc/selinux/{SELINUXTYPE}/contexts/customizable_types), restorecon
+won't reset the label unless the \-F option is used.
+.P
 It is the same executable as
 .BR setfiles
 but operates in a slightly different manner depending on its argv[0].
@@ -124,7 +130,7 @@ change files and directories file labels recursively (descend directories).
 .br
 .TP
 .B \-v
-show changes in file labels. Note that the
+show changes in file labels. Multiple -v options increase the verbosity. Note that the
 .B \-v
 and
 .B \-p
@@ -209,4 +215,5 @@ The program was written by Dan Walsh <dwalsh@redhat.com>.
 .SH "SEE ALSO"
 .BR setfiles (8),
 .BR load_policy (8),
-.BR checkpolicy (8)
+.BR checkpolicy (8),
+.BR customizable_types (5)
-- 
2.7.4

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

* Re: [PATCH] policycoreutils/setfiles: Mention customizable types in restorecon man page
  2016-12-21  9:03       ` Vit Mojzis
@ 2016-12-21 14:37         ` Stephen Smalley
  0 siblings, 0 replies; 6+ messages in thread
From: Stephen Smalley @ 2016-12-21 14:37 UTC (permalink / raw)
  To: Vit Mojzis, selinux

On Wed, 2016-12-21 at 10:03 +0100, Vit Mojzis wrote:
> Signed-off-by: Vit Mojzis <vmojzis@redhat.com>

Thanks, applied

> ---
>  policycoreutils/setfiles/restorecon.8 | 11 +++++++++--
>  1 file changed, 9 insertions(+), 2 deletions(-)
> 
> diff --git a/policycoreutils/setfiles/restorecon.8
> b/policycoreutils/setfiles/restorecon.8
> index fdb468b..b00bf4e 100644
> --- a/policycoreutils/setfiles/restorecon.8
> +++ b/policycoreutils/setfiles/restorecon.8
> @@ -58,6 +58,12 @@ The
>  .B \-F
>  option will force a replacement of the entire context.
>  .P
> +If a file is labeled with
> +.BR customizable
> +SELinux type (for list of customizable
> +types see /etc/selinux/{SELINUXTYPE}/contexts/customizable_types),
> restorecon
> +won't reset the label unless the \-F option is used.
> +.P
>  It is the same executable as
>  .BR setfiles
>  but operates in a slightly different manner depending on its
> argv[0].
> @@ -124,7 +130,7 @@ change files and directories file labels
> recursively (descend directories).
>  .br
>  .TP
>  .B \-v
> -show changes in file labels. Note that the
> +show changes in file labels. Multiple -v options increase the
> verbosity. Note that the
>  .B \-v
>  and
>  .B \-p
> @@ -209,4 +215,5 @@ The program was written by Dan Walsh <dwalsh@redh
> at.com>.
>  .SH "SEE ALSO"
>  .BR setfiles (8),
>  .BR load_policy (8),
> -.BR checkpolicy (8)
> +.BR checkpolicy (8),
> +.BR customizable_types (5)

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

end of thread, other threads:[~2016-12-21 14:37 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-12-19 12:12 [PATCH] policycoreutils/setfiles: Mention customizable types in restorecon man page Vit Mojzis
2016-12-19 14:51 ` Stephen Smalley
2016-12-19 18:00   ` Vit Mojzis
2016-12-19 18:49     ` Stephen Smalley
2016-12-21  9:03       ` Vit Mojzis
2016-12-21 14:37         ` 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.