logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

is_context_customizable - check whether SELinux context type is customizable by the administrator

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.

File

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

Name

       is_context_customizable - check whether SELinux context type is customizable by the administrator

Return Value

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

See Also

selinux(8)

dwalsh@redhat.com                                10 January 2005                      is_context_customizable(3)

Synopsis

#include<selinux/selinux.h>intis_context_customizable(constchar*scon);

See Also