| 1 |
.TH "is_context_customizable" "3" "10 January 2005" "[email protected]" "SELinux API documentation" |
| 2 |
.SH "NAME" |
| 3 |
is_context_customizable \- check whether SELinux context type is customizable by the administrator |
| 4 |
. |
| 5 |
.SH "SYNOPSIS" |
| 6 |
.B #include <selinux/selinux.h> |
| 7 |
.sp |
| 8 |
.BI "int is_context_customizable(char *" scon ); |
| 9 |
. |
| 10 |
.SH "DESCRIPTION" |
| 11 |
This function checks whether the type of scon is in the |
| 12 |
.I /etc/selinux/{SELINUXTYPE}/context/customizable_types |
| 13 |
file. A customizable type is a file context type that |
| 14 |
administrators set on files, usually to allow certain domains to share the file content. restorecon and setfiles, by default, leave these context in place. |
| 15 |
. |
| 16 |
.SH "RETURN VALUE" |
| 17 |
Returns 1 if security context is customizable or 0 if it is not. |
| 18 |
Returns \-1 on error. |
| 19 |
. |
| 20 |
.SH "FILE" |
| 21 |
.I /etc/selinux/{SELINUXTYPE}/context/customizable_types |
| 22 |
. |
| 23 |
.SH "SEE ALSO" |
| 24 |
.BR selinux "(8)" |