Skip to contentSkip to conversation

policycoreutils/setfiles: Mention customizable types in restorecon man page

PATCH In review Vit Mojzis 2 participants 6 messages Dec 19, 2016 – Dec 21, 2016 SELinux security module

lore
Share & tools
lore

Vit Mojzis

author
#0 lore raw

PATCH 1/1 policycoreutils/setfiles: Mention customizable types in restorecon man page

---
 policycoreutils/setfiles/restorecon.8 | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)
policycoreutils/setfiles/restorecon.8 +7 -1
index fdb468b..1803c12 100644
@@ -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
Signature · 1 line
2.7.4
#1 lore raw
Quoted 14 lines · Vit Mojzis

---
 policycoreutils/setfiles/restorecon.8 | 8 +++++++-

 1 file changed, 7 insertions(+), 1 deletion(-)
policycoreutils/setfiles/restorecon.8 +0 -0
index fdb468b..1803c12 100644
@@ -58,6 +58,12 @@ The

 .B \-F
 option will force a replacement of the entire context. .P

policycoreutils/setfiles/restorecon.8 The

Quoted 4 lines
policycoreutils/setfiles/restorecon.8 +4 -0
+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.

Quoted 18 lines

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].

policycoreutils/setfiles/restorecon.8 +0 -0
@@ -124,7 +130,7 @@ change files and directories file labels

recursively (descend directories).
 .br
 .TP
 .B \-v

policycoreutils/setfiles/restorecon.8 +1 -1
-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

author
#2 lore raw

PATCH 1/1 policycoreutils/setfiles: Mention customizable types in restorecon man page

---
 policycoreutils/setfiles/restorecon.8 | 11 +++++++++--
 1 file changed, 9 insertions(+), 2 deletions(-)
policycoreutils/setfiles/restorecon.8 +9 -2
index fdb468b..ec2b1b1 100644
@@ -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 <[email protected]>.
 .SH "SEE ALSO"
 .BR setfiles (8),
 .BR load_policy (8),
-.BR checkpolicy (8)
+.BR checkpolicy (8),
+.BR customizable_types (8)
Signature · 1 line
2.7.4
#3 lore raw
Quoted 37 lines · Vit Mojzis

---
 policycoreutils/setfiles/restorecon.8 | 11 +++++++++--

 1 file changed, 9 insertions(+), 2 deletions(-)
policycoreutils/setfiles/restorecon.8 +0 -0
index fdb468b..ec2b1b1 100644
@@ -58,6 +58,12 @@ The

 .B \-F
 option will force a replacement of the entire context. .P

policycoreutils/setfiles/restorecon.8 +4 -0
+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].

policycoreutils/setfiles/restorecon.8 +0 -0
@@ -124,7 +130,7 @@ change files and directories file labels

recursively (descend directories).
 .br
 .TP
 .B \-v

policycoreutils/setfiles/restorecon.8 +1 -1
-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

policycoreutils/setfiles/restorecon.8 +0 -0
@@ -209,4 +215,5 @@ The program was written by Dan Walsh <dwalsh@redh
Quoted 7 lines

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.

author
#4 lore raw

PATCH 1/1 policycoreutils/setfiles: Mention customizable types in restorecon man page

---
 policycoreutils/setfiles/restorecon.8 | 11 +++++++++--
 1 file changed, 9 insertions(+), 2 deletions(-)
policycoreutils/setfiles/restorecon.8 +9 -2
index fdb468b..b00bf4e 100644
@@ -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 <[email protected]>.
 .SH "SEE ALSO"
 .BR setfiles (8),
 .BR load_policy (8),
-.BR checkpolicy (8)
+.BR checkpolicy (8),
+.BR customizable_types (5)
Signature · 1 line
2.7.4
#5 lore raw
Quoted 1 line · Vit Mojzis

Thanks, applied

Quoted 43 lines

---
 policycoreutils/setfiles/restorecon.8 | 11 +++++++++--

 1 file changed, 9 insertions(+), 2 deletions(-)
policycoreutils/setfiles/restorecon.8 +0 -0
index fdb468b..b00bf4e 100644
@@ -58,6 +58,12 @@ The

 .B \-F
 option will force a replacement of the entire context. .P

policycoreutils/setfiles/restorecon.8 +4 -0
+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].

policycoreutils/setfiles/restorecon.8 +0 -0
@@ -124,7 +130,7 @@ change files and directories file labels

recursively (descend directories).
 .br
 .TP
 .B \-v

policycoreutils/setfiles/restorecon.8 +1 -1
-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

policycoreutils/setfiles/restorecon.8 +0 -0
@@ -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)