diff mbox series

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

Message ID 20220505174338.24370-1-cgzones@googlemail.com (mailing list archive)
State Accepted
Commit 822ad96c3fc9
Headers show
Series libselinux: update man page of setfilecon(3) family about context parameter | expand

Commit Message

Christian Göttsche May 5, 2022, 5:43 p.m. UTC
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(-)

Comments

Petr Lautrbach May 17, 2022, 12:06 p.m. UTC | #1
Christian Göttsche <cgzones@googlemail.com> writes:

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

Acked-by: Petr Lautrbach <plautrba@redhat.com>

Thanks.

> ---
>  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
Petr Lautrbach May 18, 2022, 10:32 a.m. UTC | #2
Petr Lautrbach <plautrba@redhat.com> writes:

> Christian Göttsche <cgzones@googlemail.com> writes:
>
>> 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>
>
> Acked-by: Petr Lautrbach <plautrba@redhat.com>
>
> Thanks.

Merged.

>
>> ---
>>  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
diff mbox series

Patch

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 ()