Skip to contentSkip to conversation

libselinux: update man page of setfilecon(3) family about context parameter

PATCH In review Christian Göttsche 2 participants 3 messages May 5, 2022 – May 18, 2022 SELinux security module

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 libselinux: update man page of setfilecon(3) family about context parameter

The family of setfilecon(3) functions take the context as a read-only const char * parameter.

---
 libselinux/man/man3/setfilecon.3 | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)
libselinux/man/man3/setfilecon.3 +6 -6
index 0e9a383f..6bd3e415 100644
@@ -5,17 +5,17 @@ setfilecon, fsetfilecon, lsetfilecon \- set SELinux security context of a file
 .SH "SYNOPSIS"
 .B #include <selinux/selinux.h>
 .sp
-.BI "int setfilecon(const char *" path ", char *" con );
+.BI "int setfilecon(const char *" path ", const char *" con );
 .sp
-.BI "int setfilecon_raw(const char *" path ", char *" con );
+.BI "int setfilecon_raw(const char *" path ", const char *" con );
 .sp
-.BI "int lsetfilecon(const char *" path ", char *" con );
+.BI "int lsetfilecon(const char *" path ", const char *" con );
 .sp
-.BI "int lsetfilecon_raw(const char *" path ", char *" con );
+.BI "int lsetfilecon_raw(const char *" path ", const char *" con );
 .sp
-.BI "int fsetfilecon(int "fd ", char *" con );
+.BI "int fsetfilecon(int "fd ", const char *" con );
 .sp
-.BI "int fsetfilecon_raw(int "fd ", char *" con );
+.BI "int fsetfilecon_raw(int "fd ", const char *" con );
 .
 .SH "DESCRIPTION"
 .BR setfilecon ()
Signature · 1 line
2.36.0
Acked-by on v1 1/1
#1 lore raw
Quoted 4 lines · Christian Göttsche

The family of setfilecon(3) functions take the context as a read-only const char * parameter.

Thanks.

Quoted 34 lines
---
 libselinux/man/man3/setfilecon.3 | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)
libselinux/man/man3/setfilecon.3 +6 -6
index 0e9a383f..6bd3e415 100644
@@ -5,17 +5,17 @@ setfilecon, fsetfilecon, lsetfilecon \- set SELinux security context of a file
 .SH "SYNOPSIS"
 .B #include <selinux/selinux.h>
 .sp
-.BI "int setfilecon(const char *" path ", char *" con );
+.BI "int setfilecon(const char *" path ", const char *" con );
 .sp
-.BI "int setfilecon_raw(const char *" path ", char *" con );
+.BI "int setfilecon_raw(const char *" path ", const char *" con );
 .sp
-.BI "int lsetfilecon(const char *" path ", char *" con );
+.BI "int lsetfilecon(const char *" path ", const char *" con );
 .sp
-.BI "int lsetfilecon_raw(const char *" path ", char *" con );
+.BI "int lsetfilecon_raw(const char *" path ", const char *" con );
 .sp
-.BI "int fsetfilecon(int "fd ", char *" con );
+.BI "int fsetfilecon(int "fd ", const char *" con );
 .sp
-.BI "int fsetfilecon_raw(int "fd ", char *" con );
+.BI "int fsetfilecon_raw(int "fd ", const char *" con );
 .
 .SH "DESCRIPTION"
 .BR setfilecon ()
Signature · 1 line
2.36.0
#2 lore raw
Quoted 10 lines · Petr Lautrbach
Quoted 4 lines · Christian Göttsche

The family of setfilecon(3) functions take the context as a read-only const char * parameter.

Thanks.

Merged.

Quoted 35 lines
Quoted 35 lines
---
 libselinux/man/man3/setfilecon.3 | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)
libselinux/man/man3/setfilecon.3 +6 -6
index 0e9a383f..6bd3e415 100644
@@ -5,17 +5,17 @@ setfilecon, fsetfilecon, lsetfilecon \- set SELinux security context of a file
 .SH "SYNOPSIS"
 .B #include <selinux/selinux.h>
 .sp
-.BI "int setfilecon(const char *" path ", char *" con );
+.BI "int setfilecon(const char *" path ", const char *" con );
 .sp
-.BI "int setfilecon_raw(const char *" path ", char *" con );
+.BI "int setfilecon_raw(const char *" path ", const char *" con );
 .sp
-.BI "int lsetfilecon(const char *" path ", char *" con );
+.BI "int lsetfilecon(const char *" path ", const char *" con );
 .sp
-.BI "int lsetfilecon_raw(const char *" path ", char *" con );
+.BI "int lsetfilecon_raw(const char *" path ", const char *" con );
 .sp
-.BI "int fsetfilecon(int "fd ", char *" con );
+.BI "int fsetfilecon(int "fd ", const char *" con );
 .sp
-.BI "int fsetfilecon_raw(int "fd ", char *" con );
+.BI "int fsetfilecon_raw(int "fd ", const char *" con );
 .
 .SH "DESCRIPTION"
 .BR setfilecon ()
Signature · 1 line
2.36.0