libselinux: update man page of setfilecon(3) family about context parameter
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.
Signed-off-by Christian Göttsche <[email protected]>
--- libselinux/man/man3/setfilecon.3 | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-)
libselinux/man/man3/setfilecon.3 +6 -6
@@ -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
Quoted 4 lines · Christian Göttsche
The family of setfilecon(3) functions take the context as a read-only
const char *parameter.Signed-off-by Christian Göttsche <[email protected]>
Acked-by Petr Lautrbach <[email protected]>
Thanks.
Quoted 34 lines
--- libselinux/man/man3/setfilecon.3 | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-)libselinux/man/man3/setfilecon.3 +6
-6@@ -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
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.Signed-off-by Christian Göttsche <[email protected]>Acked-by Petr Lautrbach <[email protected]>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@@ -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