diff mbox

policycoreutils/setfiles: Mention customizable types in restorecon man page

Message ID 1482311029-6545-1-git-send-email-vmojzis@redhat.com (mailing list archive)
State Not Applicable
Headers show

Commit Message

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

Comments

Stephen Smalley Dec. 21, 2016, 2:37 p.m. UTC | #1
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)
diff mbox

Patch

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)