23 lines
853 B
Groff
23 lines
853 B
Groff
|
.TH "is_context_customizable" "3" "10 January 2005" "dwalsh@redhat.com" "SELinux API documentation"
|
||
|
.SH "NAME"
|
||
|
is_context_customizable \- check whether context type is customizable by the administrator.
|
||
|
.SH "SYNOPSIS"
|
||
|
.B #include <selinux/selinux.h>
|
||
|
.sp
|
||
|
.B int is_context_customizable(security_context_t scon);
|
||
|
|
||
|
.SH "DESCRIPTION"
|
||
|
.B is_context_customizable
|
||
|
.br
|
||
|
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.
|
||
|
|
||
|
|
||
|
.SH "RETURN VALUE"
|
||
|
returns 1 if security context is customizable or 0 if it is not.
|
||
|
returns -1 on error
|
||
|
|
||
|
.SH "FILE"
|
||
|
/etc/selinux/SELINUXTYPE/context/customizable_types
|
||
|
|