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(char * scon);
13

DESCRIPTION

15       This  function  checks  whether  the   type   of   scon   is   in   the
16       /etc/selinux/{SELINUXTYPE}/context/customizable_types  file.  A custom‐
17       izable type is a file context type that administrators  set  on  files,
18       usually  to allow certain domains to share the file content. restorecon
19       and setfiles, by default, leave these context in place.
20

RETURN VALUE

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

FILE

26       /etc/selinux/{SELINUXTYPE}/context/customizable_types
27

SEE ALSO

29       selinux(8)
30
31
32
33dwalsh@redhat.com               10 January 2005     is_context_customizable(3)
Impressum