is\_context\_customizable(3) SELinux API documentation is\_context\_customizable(3)

# [NAME](#NAME)

is\_context\_customizable - check whether SELinux context type is customizable by the administrator

# [SYNOPSIS](#SYNOPSIS)

**#include &lt;selinux/selinux.h&gt;**

**int is\_context\_customizable(const char \*scon);**

# [DESCRIPTION](#DESCRIPTION)

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 administrators set on files, usually to allow certain domains to share the file content. restorecon and setfiles, by default, leave these context in place.

# [RETURN VALUE](#RETURN_VALUE)

Returns 1 if security context is customizable or 0 if it is not. Returns -1 on error.

# [FILE](#FILE)

*/etc/selinux/{SELINUXTYPE}/context/customizable\_types*

# [SEE ALSO](#SEE_ALSO)

[**selinux**(8)](/man/os/libselinux/selinux.8)

10 January 2005 dwalsh@redhat.com

---

Document: is_context_customizable(3) from libselinux 3.11-r2 (Chainguard OS)
Source: https://github.com/SELinuxProject/selinux.git
