Chris PeBenito 473ea7
.TH "is_context_customizable" "3" "10 January 2005" "dwalsh@redhat.com" "SELinux API documentation"
Chris PeBenito 473ea7
.SH "NAME"
Chris PeBenito 473ea7
is_context_customizable \- check whether context type is customizable by the administrator.
Chris PeBenito 473ea7
.SH "SYNOPSIS"
Chris PeBenito 473ea7
.B #include <selinux/selinux.h>
Chris PeBenito 473ea7
.sp
Chris PeBenito 473ea7
.B int is_context_customizable(security_context_t scon);
Chris PeBenito 473ea7
Chris PeBenito 473ea7
.SH "DESCRIPTION"
Chris PeBenito 473ea7
.B is_context_customizable
Chris PeBenito 473ea7
.br
Chris PeBenito 473ea7
This function checks whether the type of scon is in the /etc/selinux/SELINUXTYPE/context/customizable_types file.  A customizable type is a file context type that
Chris PeBenito 473ea7
administrators set on files, usually to allow certain domains to share the file content. restorecon and setfiles, by default, leave these context in place.
Chris PeBenito 473ea7
Chris PeBenito 473ea7
 
Chris PeBenito 473ea7
.SH "RETURN VALUE"
Chris PeBenito 473ea7
returns 1 if security context is customizable or 0 if it is not. 
Chris PeBenito 473ea7
returns -1 on error
Chris PeBenito 473ea7
Chris PeBenito 473ea7
.SH "FILE"
Chris PeBenito 473ea7
/etc/selinux/SELINUXTYPE/context/customizable_types
Chris PeBenito 473ea7