[go: up one dir, main page]

Module selinux

Module selinux 

Source
Expand description

Set of functions to manage SELinux security contexts

Enums§

SeLinuxError

Functions§

contexts_differ
Compares SELinux security contexts of two filesystem paths.
get_getfattr_output
Gets the SELinux security context for a file using getfattr.
get_selinux_security_context
Gets the SELinux security context for the given filesystem path.
is_selinux_enabled
Checks if SELinux is enabled on the system.
preserve_security_context
Preserves the SELinux security context from one filesystem path to another.
selinux_error_description
Returns a string describing the error and its causes.
set_selinux_security_context
Sets the SELinux security context for the given filesystem path.