2008-08-19 19:30:36 +00:00
.TH "is_context_customizable" "3" "10 January 2005" "dwalsh@redhat.com" "SELinux API documentation"
.SH "NAME"
2012-11-13 20:15:34 +00:00
is_context_customizable \- check whether SELinux context type is customizable by the administrator
.
2008-08-19 19:30:36 +00:00
.SH "SYNOPSIS"
.B #include <selinux/selinux.h>
.sp
2016-12-09 23:33:11 +00:00
.BI "int is_context_customizable(char *" scon );
2012-11-13 20:15:34 +00:00
.
2008-08-19 19:30:36 +00:00
.SH "DESCRIPTION"
2012-11-13 20:15:34 +00:00
This function checks whether the type of scon is in the
.I /etc/selinux/{SELINUXTYPE}/context/customizable_types
file. A customizable type is a file context type that
2008-08-19 19:30:36 +00:00
administrators set on files, usually to allow certain domains to share the file content. restorecon and setfiles, by default, leave these context in place.
2012-11-13 20:15:34 +00:00
.
2008-08-19 19:30:36 +00:00
.SH "RETURN VALUE"
2012-11-13 20:15:34 +00:00
Returns 1 if security context is customizable or 0 if it is not.
Returns \- 1 on error.
.
2008-08-19 19:30:36 +00:00
.SH "FILE"
2012-11-13 20:15:34 +00:00
.I /etc/selinux/{SELINUXTYPE}/context/customizable_types
.
2008-08-19 19:30:36 +00:00
.SH "SEE ALSO"
.BR selinux "(8)"