---
name: "is_context_customizable"
section: "3"
platform: "linux"
package: "libselinux1-dev"
version: "3.8.1-1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/is_context_customizable"
---

# is\_context\_customizable(3)

check whether SELinux context type is customizable by the administrator

## NAME

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

## SYNOPSIS

**#include \<selinux/selinux.h\>**

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

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

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

## FILE

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

## SEE ALSO

[**selinux**(8)](/selinux/8.md)
