1is_context_customizable(3) SELinux API documentationis_context_customizable(3)
2
3
4

NAME

6       is_context_customizable - check whether SELinux context type is custom‐
7       izable by the administrator.
8

SYNOPSIS

10       #include <selinux/selinux.h>
11
12       int is_context_customizable(security_context_t scon);
13
14

DESCRIPTION

16       is_context_customizable
17
18       This  function  checks  whether  the   type   of   scon   is   in   the
19       /etc/selinux/SELINUXTYPE/context/customizable_types file.  A customiza‐
20       ble type is a file context type that administrators set on files,  usu‐
21       ally to allow certain domains to share the file content. restorecon and
22       setfiles, by default, leave these context in place.
23
24
25

RETURN VALUE

27       returns 1 if security context is  customizable  or  0  if  it  is  not.
28       returns -1 on error
29
30

FILE

32       /etc/selinux/SELINUXTYPE/context/customizable_types
33
34

SEE ALSO

36       selinux(8)
37
38
39
40
41dwalsh@redhat.com               10 January 2005     is_context_customizable(3)
Impressum