All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] libselinux: update man page of setfilecon(3) family about context parameter
@ 2022-05-05 17:43 Christian Göttsche
  2022-05-17 12:06 ` Petr Lautrbach
  0 siblings, 1 reply; 3+ messages in thread
From: Christian Göttsche @ 2022-05-05 17:43 UTC (permalink / raw)
  To: selinux

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

Signed-off-by: Christian Göttsche <cgzones@googlemail.com>
---
 libselinux/man/man3/setfilecon.3 | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/libselinux/man/man3/setfilecon.3 b/libselinux/man/man3/setfilecon.3
index 0e9a383f..6bd3e415 100644
--- a/libselinux/man/man3/setfilecon.3
+++ b/libselinux/man/man3/setfilecon.3
@@ -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 ()
-- 
2.36.0


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

end of thread, other threads:[~2022-05-18 10:32 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-05-05 17:43 [PATCH] libselinux: update man page of setfilecon(3) family about context parameter Christian Göttsche
2022-05-17 12:06 ` Petr Lautrbach
2022-05-18 10:32   ` Petr Lautrbach

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.