|
Chris PeBenito |
e32d52 |
## <module name="kernel" layer="kernel">
|
|
Chris PeBenito |
e32d52 |
## <summary>
|
|
Chris PeBenito |
e32d52 |
## Policy for kernel threads, security interface (selinuxfs),
|
|
Chris PeBenito |
e32d52 |
## proc filesystem, sysfs filesystem, and usb device filesystem.
|
|
Chris PeBenito |
e32d52 |
## </summary>
|
|
Chris PeBenito |
e181fe |
|
|
Chris PeBenito |
b4cd15 |
########################################
|
|
Chris PeBenito |
588ffa |
## <interface name="kernel_userland_entry">
|
|
Chris PeBenito |
3865d6 |
## <description>
|
|
Chris PeBenito |
588ffa |
## Allows to start userland processes
|
|
Chris PeBenito |
588ffa |
## by transitioning to the specified domain.
|
|
Chris PeBenito |
3865d6 |
## </description>
|
|
Chris PeBenito |
3865d6 |
## <parameter name="domain">
|
|
Chris PeBenito |
3865d6 |
## The process type entered by kernel.
|
|
Chris PeBenito |
3865d6 |
## </parameter>
|
|
Chris PeBenito |
3865d6 |
## <parameter name="entrypoint">
|
|
Chris PeBenito |
3865d6 |
## The executable type for the entrypoint.
|
|
Chris PeBenito |
3865d6 |
## </parameter>
|
|
Chris PeBenito |
3865d6 |
## </interface>
|
|
Chris PeBenito |
ff3138 |
#
|
|
Chris PeBenito |
588ffa |
define(`kernel_userland_entry',`
|
|
Chris PeBenito |
0c73cd |
requires_block_template(`$0'_depend)
|
|
Chris PeBenito |
0c73cd |
|
|
Chris PeBenito |
c2c00b |
domain_auto_trans(kernel_t, $2, $1)
|
|
Chris PeBenito |
0c73cd |
|
|
Chris PeBenito |
0c73cd |
allow $1 kernel_t:fd use;
|
|
Chris PeBenito |
0c73cd |
allow kernel_t $1:fd use;
|
|
Chris PeBenito |
0c73cd |
allow kernel_t $1:fifo_file rw_file_perms;
|
|
Chris PeBenito |
0c73cd |
allow $1 kernel_t:process sigchld;
|
|
Chris PeBenito |
ff3138 |
')
|
|
Chris PeBenito |
ff3138 |
|
|
Chris PeBenito |
ff3138 |
define(`kernel_make_userland_entrypoint_depend',`
|
|
Chris PeBenito |
0c73cd |
type kernel_t;
|
|
Chris PeBenito |
0c73cd |
|
|
Chris PeBenito |
0c73cd |
class process { transition noatsecure siginh rlimitinh sigchld };
|
|
Chris PeBenito |
0c73cd |
class file { getattr read execute };
|
|
Chris PeBenito |
0c73cd |
class fifo_file rw_file_perms;
|
|
Chris PeBenito |
0c73cd |
class fd use;
|
|
Chris PeBenito |
ff3138 |
')
|
|
Chris PeBenito |
ff3138 |
|
|
Chris PeBenito |
ff3138 |
########################################
|
|
Chris PeBenito |
588ffa |
## <interface name="kernel_rootfs_mountpoint">
|
|
Chris PeBenito |
588ffa |
## <description>
|
|
Chris PeBenito |
588ffa |
## Allows the kernel to mount filesystems on
|
|
Chris PeBenito |
588ffa |
## the specified directory type.
|
|
Chris PeBenito |
588ffa |
## </description>
|
|
Chris PeBenito |
588ffa |
## <parameter name="directory_type">
|
|
Chris PeBenito |
588ffa |
## The type of the directory to use as a mountpoint.
|
|
Chris PeBenito |
588ffa |
## </parameter>
|
|
Chris PeBenito |
588ffa |
## </interface>
|
|
Chris PeBenito |
588ffa |
#
|
|
Chris PeBenito |
588ffa |
define(`kernel_rootfs_mountpoint',`
|
|
Chris PeBenito |
588ffa |
requires_block_template(`$0'_depend)
|
|
Chris PeBenito |
588ffa |
|
|
Chris PeBenito |
588ffa |
allow kernel_t $1:dir mounton;
|
|
Chris PeBenito |
588ffa |
')
|
|
Chris PeBenito |
588ffa |
|
|
Chris PeBenito |
588ffa |
define(`kernel_rootfs_mountpoint_depend',`
|
|
Chris PeBenito |
588ffa |
type kernel_t;
|
|
Chris PeBenito |
588ffa |
|
|
Chris PeBenito |
588ffa |
class dir mounton;
|
|
Chris PeBenito |
588ffa |
')
|
|
Chris PeBenito |
588ffa |
|
|
Chris PeBenito |
588ffa |
########################################
|
|
Chris PeBenito |
3865d6 |
## <interface name="kernel_share_state">
|
|
Chris PeBenito |
3865d6 |
## <description>
|
|
Chris PeBenito |
3865d6 |
## Allows the kernel to share state information with
|
|
Chris PeBenito |
3865d6 |
## the caller.
|
|
Chris PeBenito |
3865d6 |
## </description>
|
|
Chris PeBenito |
3865d6 |
## <parameter name="domain">
|
|
Chris PeBenito |
3865d6 |
## The type of the process with which to share state information.
|
|
Chris PeBenito |
3865d6 |
## </parameter>
|
|
Chris PeBenito |
3865d6 |
## </interface>
|
|
Chris PeBenito |
b4cd15 |
#
|
|
Chris PeBenito |
b4cd15 |
define(`kernel_share_state',`
|
|
Chris PeBenito |
0c73cd |
requires_block_template(`$0'_depend)
|
|
Chris PeBenito |
0c73cd |
|
|
Chris PeBenito |
0c73cd |
allow kernel_t $1:process share;
|
|
Chris PeBenito |
b4cd15 |
')
|
|
Chris PeBenito |
b4cd15 |
|
|
Chris PeBenito |
b4cd15 |
define(`kernel_share_state_depend',`
|
|
Chris PeBenito |
0c73cd |
type kernel_t;
|
|
Chris PeBenito |
0c73cd |
|
|
Chris PeBenito |
0c73cd |
class process share;
|
|
Chris PeBenito |
b4cd15 |
')
|
|
Chris PeBenito |
b4cd15 |
|
|
Chris PeBenito |
b4cd15 |
########################################
|
|
Chris PeBenito |
588ffa |
## <interface name="kernel_use_fd">
|
|
Chris PeBenito |
3865d6 |
## <description>
|
|
Chris PeBenito |
3865d6 |
## Permits caller to use kernel file descriptors.
|
|
Chris PeBenito |
3865d6 |
## </description>
|
|
Chris PeBenito |
3865d6 |
## <parameter name="domain">
|
|
Chris PeBenito |
3865d6 |
## The type of the process using the descriptors.
|
|
Chris PeBenito |
3865d6 |
## </parameter>
|
|
Chris PeBenito |
3865d6 |
## </interface>
|
|
Chris PeBenito |
b4cd15 |
#
|
|
Chris PeBenito |
588ffa |
define(`kernel_use_fd',`
|
|
Chris PeBenito |
0c73cd |
requires_block_template(`$0'_depend)
|
|
Chris PeBenito |
0c73cd |
|
|
Chris PeBenito |
0c73cd |
allow $1 kernel_t:fd use;
|
|
Chris PeBenito |
b4cd15 |
')
|
|
Chris PeBenito |
b4cd15 |
|
|
Chris PeBenito |
588ffa |
define(`kernel_use_fd_depend',`
|
|
Chris PeBenito |
0c73cd |
type kernel_t;
|
|
Chris PeBenito |
0c73cd |
|
|
Chris PeBenito |
0c73cd |
class fd use;
|
|
Chris PeBenito |
a2d824 |
')
|
|
Chris PeBenito |
a2d824 |
|
|
Chris PeBenito |
a2d824 |
########################################
|
|
Chris PeBenito |
588ffa |
## <interface name="kernel_dontaudit_use_fd">
|
|
Chris PeBenito |
3865d6 |
## <description>
|
|
Chris PeBenito |
588ffa |
## Do not audit attempts to use
|
|
Chris PeBenito |
3865d6 |
## kernel file descriptors.
|
|
Chris PeBenito |
3865d6 |
## </description>
|
|
Chris PeBenito |
3865d6 |
## <parameter name="domain">
|
|
Chris PeBenito |
3865d6 |
## The type of process not to audit.
|
|
Chris PeBenito |
3865d6 |
## </parameter>
|
|
Chris PeBenito |
3865d6 |
## </interface>
|
|
Chris PeBenito |
a2d824 |
#
|
|
Chris PeBenito |
588ffa |
define(`kernel_dontaudit_use_fd',`
|
|
Chris PeBenito |
0c73cd |
requires_block_template(`$0'_depend)
|
|
Chris PeBenito |
0c73cd |
|
|
Chris PeBenito |
0c73cd |
dontaudit $1 kernel_t:fd use;
|
|
Chris PeBenito |
a2d824 |
')
|
|
Chris PeBenito |
a2d824 |
|
|
Chris PeBenito |
588ffa |
define(`kernel_dontaudit_use_fd_depend',`
|
|
Chris PeBenito |
0c73cd |
type kernel_t;
|
|
Chris PeBenito |
0c73cd |
|
|
Chris PeBenito |
0c73cd |
class fd use;
|
|
Chris PeBenito |
b4cd15 |
')
|
|
Chris PeBenito |
b4cd15 |
|
|
Chris PeBenito |
b4cd15 |
########################################
|
|
Chris PeBenito |
3865d6 |
## <interface name="kernel_make_process_identity_change_constraint_exception">
|
|
Chris PeBenito |
3865d6 |
## <description>
|
|
Chris PeBenito |
3865d6 |
## Makes caller an exception to the constraint preventing
|
|
Chris PeBenito |
3865d6 |
## changing of user identity.
|
|
Chris PeBenito |
3865d6 |
## </description>
|
|
Chris PeBenito |
3865d6 |
## <parameter name="domain">
|
|
Chris PeBenito |
3865d6 |
## The process type to make an exception to the constraint.
|
|
Chris PeBenito |
3865d6 |
## </parameter>
|
|
Chris PeBenito |
3865d6 |
## </interface>
|
|
Chris PeBenito |
18f25a |
#
|
|
Chris PeBenito |
18f25a |
define(`kernel_make_process_identity_change_constraint_exception',`
|
|
Chris PeBenito |
0c73cd |
requires_block_template(`$0'_depend)
|
|
Chris PeBenito |
0c73cd |
|
|
Chris PeBenito |
0c73cd |
typeattribute $1 can_change_process_identity;
|
|
Chris PeBenito |
18f25a |
')
|
|
Chris PeBenito |
18f25a |
|
|
Chris PeBenito |
18f25a |
define(`kernel_make_process_identity_change_constraint_exception_depend',`
|
|
Chris PeBenito |
0c73cd |
attribute can_change_process_identity;
|
|
Chris PeBenito |
18f25a |
')
|
|
Chris PeBenito |
18f25a |
|
|
Chris PeBenito |
18f25a |
########################################
|
|
Chris PeBenito |
3865d6 |
## <interface name="kernel_make_role_change_constraint_exception">
|
|
Chris PeBenito |
3865d6 |
## <description>
|
|
Chris PeBenito |
3865d6 |
## Makes caller an exception to the constraint preventing
|
|
Chris PeBenito |
3865d6 |
## changing of role.
|
|
Chris PeBenito |
3865d6 |
## </description>
|
|
Chris PeBenito |
3865d6 |
## <parameter name="domain">
|
|
Chris PeBenito |
3865d6 |
## The process type to make an exception to the constraint.
|
|
Chris PeBenito |
3865d6 |
## </parameter>
|
|
Chris PeBenito |
3865d6 |
## </interface>
|
|
Chris PeBenito |
18f25a |
#
|
|
Chris PeBenito |
18f25a |
define(`kernel_make_role_change_constraint_exception',`
|
|
Chris PeBenito |
0c73cd |
requires_block_template(`$0'_depend)
|
|
Chris PeBenito |
0c73cd |
|
|
Chris PeBenito |
0c73cd |
typeattribute $1 can_change_process_role;
|
|
Chris PeBenito |
18f25a |
')
|
|
Chris PeBenito |
18f25a |
|
|
Chris PeBenito |
18f25a |
define(`kernel_make_role_change_constraint_exception_depend',`
|
|
Chris PeBenito |
0c73cd |
attribute can_change_process_role;
|
|
Chris PeBenito |
18f25a |
')
|
|
Chris PeBenito |
18f25a |
|
|
Chris PeBenito |
18f25a |
########################################
|
|
Chris PeBenito |
3865d6 |
## <interface name="kernel_make_object_identity_change_constraint_exception">
|
|
Chris PeBenito |
3865d6 |
## <description>
|
|
Chris PeBenito |
3865d6 |
## Makes caller an exception to the constraint preventing
|
|
Chris PeBenito |
3865d6 |
## changing the user identity in object contexts.
|
|
Chris PeBenito |
3865d6 |
## </description>
|
|
Chris PeBenito |
3865d6 |
## <parameter name="domain">
|
|
Chris PeBenito |
3865d6 |
## The process type to make an exception to the constraint.
|
|
Chris PeBenito |
3865d6 |
## </parameter>
|
|
Chris PeBenito |
3865d6 |
## </interface>
|
|
Chris PeBenito |
18f25a |
#
|
|
Chris PeBenito |
18f25a |
define(`kernel_make_object_identity_change_constraint_exception',`
|
|
Chris PeBenito |
0c73cd |
requires_block_template(`$0'_depend)
|
|
Chris PeBenito |
0c73cd |
|
|
Chris PeBenito |
0c73cd |
typeattribute $1 can_change_object_identity;
|
|
Chris PeBenito |
18f25a |
')
|
|
Chris PeBenito |
18f25a |
|
|
Chris PeBenito |
18f25a |
define(`kernel_make_object_identity_change_constraint_exception_depend',`
|
|
Chris PeBenito |
0c73cd |
attribute can_change_object_identity;
|
|
Chris PeBenito |
18f25a |
')
|
|
Chris PeBenito |
18f25a |
|
|
Chris PeBenito |
18f25a |
########################################
|
|
Chris PeBenito |
3865d6 |
## <interface name="kernel_load_module">
|
|
Chris PeBenito |
3865d6 |
## <description>
|
|
Chris PeBenito |
3865d6 |
## Allows caller to load kernel modules
|
|
Chris PeBenito |
3865d6 |
## </description>
|
|
Chris PeBenito |
3865d6 |
## <parameter name="domain">
|
|
Chris PeBenito |
3865d6 |
## The process type to allow to load kernel modules.
|
|
Chris PeBenito |
3865d6 |
## </parameter>
|
|
Chris PeBenito |
3865d6 |
## </interface>
|
|
Chris PeBenito |
b4cd15 |
#
|
|
Chris PeBenito |
b4cd15 |
define(`kernel_load_module',`
|
|
Chris PeBenito |
0c73cd |
requires_block_template(`$0'_depend)
|
|
Chris PeBenito |
0c73cd |
|
|
Chris PeBenito |
0c73cd |
allow $1 self:capability sys_module;
|
|
Chris PeBenito |
0c73cd |
typeattribute $1 can_load_kernmodule;
|
|
Chris PeBenito |
b4cd15 |
')
|
|
Chris PeBenito |
b4cd15 |
|
|
Chris PeBenito |
b4cd15 |
define(`kernel_load_module_depend',`
|
|
Chris PeBenito |
0c73cd |
attribute can_load_kernmodule;
|
|
Chris PeBenito |
0c73cd |
|
|
Chris PeBenito |
0c73cd |
class capability sys_module;
|
|
Chris PeBenito |
b4cd15 |
')
|
|
Chris PeBenito |
b4cd15 |
|
|
Chris PeBenito |
b4cd15 |
########################################
|
|
Chris PeBenito |
3865d6 |
## <interface name="kernel_get_selinux_enforcement_mode">
|
|
Chris PeBenito |
3865d6 |
## <description>
|
|
Chris PeBenito |
3865d6 |
## Allows the caller to get the mode of policy enforcement
|
|
Chris PeBenito |
3865d6 |
## (enforcing or permissive mode).
|
|
Chris PeBenito |
3865d6 |
## </description>
|
|
Chris PeBenito |
3865d6 |
## <parameter name="domain">
|
|
Chris PeBenito |
3865d6 |
## The process type to allow to get the enforcing mode.
|
|
Chris PeBenito |
3865d6 |
## </parameter>
|
|
Chris PeBenito |
3865d6 |
## </interface>
|
|
Chris PeBenito |
b4cd15 |
#
|
|
Chris PeBenito |
b4cd15 |
define(`kernel_get_selinux_enforcement_mode',`
|
|
Chris PeBenito |
0c73cd |
requires_block_template(`$0'_depend)
|
|
Chris PeBenito |
0c73cd |
|
|
Chris PeBenito |
0c73cd |
allow $1 security_t:dir { read search getattr };
|
|
Chris PeBenito |
0c73cd |
allow $1 security_t:file { getattr read };
|
|
Chris PeBenito |
b4cd15 |
')
|
|
Chris PeBenito |
b4cd15 |
|
|
Chris PeBenito |
b4cd15 |
define(`kernel_get_selinux_enforcement_mode_depend',`
|
|
Chris PeBenito |
0c73cd |
type security_t;
|
|
Chris PeBenito |
0c73cd |
|
|
Chris PeBenito |
0c73cd |
class dir { read search getattr };
|
|
Chris PeBenito |
0c73cd |
class file { getattr read };
|
|
Chris PeBenito |
b4cd15 |
')
|
|
Chris PeBenito |
b4cd15 |
|
|
Chris PeBenito |
b4cd15 |
########################################
|
|
Chris PeBenito |
588ffa |
## <interface name="kernel_set_enforcement_mode">
|
|
Chris PeBenito |
3865d6 |
## <description>
|
|
Chris PeBenito |
3865d6 |
## Allow caller to set the mode of policy enforcement
|
|
Chris PeBenito |
3865d6 |
## (enforcing or permissive mode).
|
|
Chris PeBenito |
3865d6 |
## </description>
|
|
Chris PeBenito |
3865d6 |
## <parameter name="domain">
|
|
Chris PeBenito |
3865d6 |
## The process type to allow to set the enforcement mode.
|
|
Chris PeBenito |
3865d6 |
## </parameter>
|
|
Chris PeBenito |
3865d6 |
## </interface>
|
|
Chris PeBenito |
b4cd15 |
#
|
|
Chris PeBenito |
588ffa |
define(`kernel_set_enforcement_mode',`
|
|
Chris PeBenito |
0c73cd |
requires_block_template(`$0'_depend)
|
|
Chris PeBenito |
0c73cd |
|
|
Chris PeBenito |
0c73cd |
allow $1 security_t:dir { read search getattr };
|
|
Chris PeBenito |
0c73cd |
allow $1 security_t:file { getattr read write };
|
|
Chris PeBenito |
0c73cd |
allow $1 security_t:security setenforce;
|
|
Chris PeBenito |
0c73cd |
auditallow $1 security_t:security setenforce;
|
|
Chris PeBenito |
0c73cd |
typeattribute $1 can_setenforce;
|
|
Chris PeBenito |
b4cd15 |
')
|
|
Chris PeBenito |
b4cd15 |
|
|
Chris PeBenito |
588ffa |
define(`kernel_set_enforcement_mode_depend',`
|
|
Chris PeBenito |
0c73cd |
type security_t;
|
|
Chris PeBenito |
0c73cd |
|
|
Chris PeBenito |
0c73cd |
attribute can_setenforce;
|
|
Chris PeBenito |
0c73cd |
|
|
Chris PeBenito |
0c73cd |
class dir { read search getattr };
|
|
Chris PeBenito |
0c73cd |
class file { getattr read write };
|
|
Chris PeBenito |
0c73cd |
class security setenforce;
|
|
Chris PeBenito |
b4cd15 |
')
|
|
Chris PeBenito |
b4cd15 |
|
|
Chris PeBenito |
b4cd15 |
########################################
|
|
Chris PeBenito |
588ffa |
## <interface name="kernel_load_policy">
|
|
Chris PeBenito |
3865d6 |
## <description>
|
|
Chris PeBenito |
3865d6 |
## Allow caller to load the policy into the kernel.
|
|
Chris PeBenito |
3865d6 |
## </description>
|
|
Chris PeBenito |
3865d6 |
## <parameter name="domain">
|
|
Chris PeBenito |
3865d6 |
## The process type that will load the policy.
|
|
Chris PeBenito |
3865d6 |
## </parameter>
|
|
Chris PeBenito |
3865d6 |
## </interface>
|
|
Chris PeBenito |
b4cd15 |
#
|
|
Chris PeBenito |
588ffa |
define(`kernel_load_policy',`
|
|
Chris PeBenito |
0c73cd |
requires_block_template(`$0'_depend)
|
|
Chris PeBenito |
0c73cd |
|
|
Chris PeBenito |
0c73cd |
allow $1 security_t:dir { read search getattr };
|
|
Chris PeBenito |
0c73cd |
allow $1 security_t:file { getattr read write };
|
|
Chris PeBenito |
0c73cd |
allow $1 security_t:security load_policy;
|
|
Chris PeBenito |
0c73cd |
auditallow $1 security_t:security load_policy;
|
|
Chris PeBenito |
0c73cd |
typeattribute $1 can_load_policy;
|
|
Chris PeBenito |
b4cd15 |
')
|
|
Chris PeBenito |
b4cd15 |
|
|
Chris PeBenito |
588ffa |
define(`kernel_load_policy_depend',`
|
|
Chris PeBenito |
0c73cd |
type security_t;
|
|
Chris PeBenito |
0c73cd |
|
|
Chris PeBenito |
0c73cd |
attribute can_load_policy;
|
|
Chris PeBenito |
0c73cd |
|
|
Chris PeBenito |
0c73cd |
class dir { read search getattr };
|
|
Chris PeBenito |
0c73cd |
class file { getattr read write };
|
|
Chris PeBenito |
0c73cd |
class security load_policy;
|
|
Chris PeBenito |
b4cd15 |
')
|
|
Chris PeBenito |
b4cd15 |
|
|
Chris PeBenito |
b4cd15 |
########################################
|
|
Chris PeBenito |
588ffa |
## <interface name="kernel_set_boolean">
|
|
Chris PeBenito |
3865d6 |
## <description>
|
|
Chris PeBenito |
3865d6 |
## Allow caller to set the state of Booleans to
|
|
Chris PeBenito |
3865d6 |
## enable or disable conditional portions of the policy.
|
|
Chris PeBenito |
3865d6 |
## </description>
|
|
Chris PeBenito |
3865d6 |
## <parameter name="domain">
|
|
Chris PeBenito |
3865d6 |
## The process type allowed to set the Boolean.
|
|
Chris PeBenito |
3865d6 |
## </parameter>
|
|
Chris PeBenito |
3865d6 |
## <parameter name="booltype" optional="true">
|
|
Chris PeBenito |
3865d6 |
## The type of Booleans the caller is allowed to set.
|
|
Chris PeBenito |
3865d6 |
## </parameter>
|
|
Chris PeBenito |
3865d6 |
## </interface>
|
|
Chris PeBenito |
b4cd15 |
#
|
|
Chris PeBenito |
588ffa |
define(`kernel_set_boolean',`
|
|
Chris PeBenito |
0c73cd |
requires_block_template(`$0'_depend)
|
|
Chris PeBenito |
0c73cd |
|
|
Chris PeBenito |
0c73cd |
ifelse(`$2',`',`
|
|
Chris PeBenito |
0c73cd |
allow $1 security_t:dir { getattr search read };
|
|
Chris PeBenito |
0c73cd |
allow $1 security_t:file { getattr read write };
|
|
Chris PeBenito |
0c73cd |
',`
|
|
Chris PeBenito |
0c73cd |
allow $1 $2:dir { getattr search read };
|
|
Chris PeBenito |
0c73cd |
allow $1 $2:file { getattr read write };
|
|
Chris PeBenito |
0c73cd |
')
|
|
Chris PeBenito |
0c73cd |
|
|
Chris PeBenito |
0c73cd |
allow $1 security_t:dir search;
|
|
Chris PeBenito |
0c73cd |
allow $1 security_t:security setbool;
|
|
Chris PeBenito |
0c73cd |
auditallow $1 security_t:security setbool;
|
|
Chris PeBenito |
b4cd15 |
')
|
|
Chris PeBenito |
b4cd15 |
|
|
Chris PeBenito |
588ffa |
define(`kernel_set_boolean_depend',`
|
|
Chris PeBenito |
0c73cd |
type security_t;
|
|
Chris PeBenito |
0c73cd |
|
|
Chris PeBenito |
0c73cd |
class dir { read search getattr };
|
|
Chris PeBenito |
0c73cd |
class file { getattr read write };
|
|
Chris PeBenito |
0c73cd |
class security setbool;
|
|
Chris PeBenito |
b4cd15 |
')
|
|
Chris PeBenito |
b4cd15 |
|
|
Chris PeBenito |
b4cd15 |
########################################
|
|
Chris PeBenito |
588ffa |
## <interface name="kernel_set_security_parameters">
|
|
Chris PeBenito |
3865d6 |
## <description>
|
|
Chris PeBenito |
3865d6 |
## Allow caller to set selinux security parameters.
|
|
Chris PeBenito |
3865d6 |
## </description>
|
|
Chris PeBenito |
3865d6 |
## <parameter name="domain">
|
|
Chris PeBenito |
3865d6 |
## The process type to allow to set security parameters.
|
|
Chris PeBenito |
3865d6 |
## </parameter>
|
|
Chris PeBenito |
3865d6 |
## </interface>
|
|
Chris PeBenito |
b4cd15 |
#
|
|
Chris PeBenito |
588ffa |
define(`kernel_set_security_parameters',`
|
|
Chris PeBenito |
0c73cd |
requires_block_template(`$0'_depend)
|
|
Chris PeBenito |
0c73cd |
|
|
Chris PeBenito |
0c73cd |
allow $1 security_t:dir { read search getattr };
|
|
Chris PeBenito |
0c73cd |
allow $1 security_t:file { getattr read write };
|
|
Chris PeBenito |
0c73cd |
allow $1 security_t:security setsecparam;
|
|
Chris PeBenito |
0c73cd |
auditallow $1 security_t:security setsecparam;
|
|
Chris PeBenito |
0c73cd |
typeattribute $1 can_setsecparam;
|
|
Chris PeBenito |
b4cd15 |
')
|
|
Chris PeBenito |
b4cd15 |
|
|
Chris PeBenito |
588ffa |
define(`kernel_set_security_parameters_depend',`
|
|
Chris PeBenito |
0c73cd |
type security_t;
|
|
Chris PeBenito |
0c73cd |
|
|
Chris PeBenito |
0c73cd |
attribute can_setsecparam;
|
|
Chris PeBenito |
0c73cd |
|
|
Chris PeBenito |
0c73cd |
class dir { read search getattr };
|
|
Chris PeBenito |
0c73cd |
class file { getattr read write };
|
|
Chris PeBenito |
0c73cd |
class security setsecparam;
|
|
Chris PeBenito |
b4cd15 |
')
|
|
Chris PeBenito |
b4cd15 |
|
|
Chris PeBenito |
b4cd15 |
########################################
|
|
Chris PeBenito |
588ffa |
## <interface name="kernel_validate_context">
|
|
Chris PeBenito |
3865d6 |
## <description>
|
|
Chris PeBenito |
3865d6 |
## Allows caller to validate security contexts.
|
|
Chris PeBenito |
3865d6 |
## </description>
|
|
Chris PeBenito |
3865d6 |
## <parameter name="domain">
|
|
Chris PeBenito |
3865d6 |
## The process type permitted to validate contexts.
|
|
Chris PeBenito |
3865d6 |
## </parameter>
|
|
Chris PeBenito |
3865d6 |
## </interface>
|
|
Chris PeBenito |
b4cd15 |
#
|
|
Chris PeBenito |
588ffa |
define(`kernel_validate_context',`
|
|
Chris PeBenito |
0c73cd |
requires_block_template(`$0'_depend)
|
|
Chris PeBenito |
0c73cd |
|
|
Chris PeBenito |
0c73cd |
allow $1 security_t:dir { read search getattr };
|
|
Chris PeBenito |
0c73cd |
allow $1 security_t:file { getattr read write };
|
|
Chris PeBenito |
0c73cd |
allow $1 security_t:security check_context;
|
|
Chris PeBenito |
b4cd15 |
')
|
|
Chris PeBenito |
b4cd15 |
|
|
Chris PeBenito |
588ffa |
define(`kernel_validate_context_depend',`
|
|
Chris PeBenito |
0c73cd |
type security_t;
|
|
Chris PeBenito |
0c73cd |
|
|
Chris PeBenito |
0c73cd |
class dir { read search getattr };
|
|
Chris PeBenito |
0c73cd |
class file { getattr read write };
|
|
Chris PeBenito |
0c73cd |
class security check_context;
|
|
Chris PeBenito |
b4cd15 |
')
|
|
Chris PeBenito |
b4cd15 |
|
|
Chris PeBenito |
b4cd15 |
########################################
|
|
Chris PeBenito |
588ffa |
## <interface name="kernel_compute_access_vector">
|
|
Chris PeBenito |
3865d6 |
## <description>
|
|
Chris PeBenito |
3865d6 |
## Allows caller to compute an access vector.
|
|
Chris PeBenito |
3865d6 |
## </description>
|
|
Chris PeBenito |
3865d6 |
## <parameter name="domain">
|
|
Chris PeBenito |
3865d6 |
## The process type allowed to compute an access vector.
|
|
Chris PeBenito |
3865d6 |
## </parameter>
|
|
Chris PeBenito |
3865d6 |
## </interface>
|
|
Chris PeBenito |
b4cd15 |
#
|
|
Chris PeBenito |
588ffa |
define(`kernel_compute_access_vector',`
|
|
Chris PeBenito |
0c73cd |
requires_block_template(`$0'_depend)
|
|
Chris PeBenito |
0c73cd |
|
|
Chris PeBenito |
0c73cd |
allow $1 security_t:dir { read search getattr };
|
|
Chris PeBenito |
0c73cd |
allow $1 security_t:file { getattr read write };
|
|
Chris PeBenito |
0c73cd |
allow $1 security_t:security compute_av;
|
|
Chris PeBenito |
b4cd15 |
')
|
|
Chris PeBenito |
b4cd15 |
|
|
Chris PeBenito |
588ffa |
define(`kernel_compute_access_vector_depend',`
|
|
Chris PeBenito |
0c73cd |
type security_t;
|
|
Chris PeBenito |
0c73cd |
|
|
Chris PeBenito |
0c73cd |
class dir { read search getattr };
|
|
Chris PeBenito |
0c73cd |
class file { getattr read write };
|
|
Chris PeBenito |
0c73cd |
class security compute_av;
|
|
Chris PeBenito |
b4cd15 |
')
|
|
Chris PeBenito |
b4cd15 |
|
|
Chris PeBenito |
b4cd15 |
########################################
|
|
Chris PeBenito |
588ffa |
## <interface name="kernel_compute_create_context">
|
|
Chris PeBenito |
3865d6 |
## <description>
|
|
Chris PeBenito |
3865d6 |
##
|
|
Chris PeBenito |
3865d6 |
## </description>
|
|
Chris PeBenito |
3865d6 |
## <parameter name="domain">
|
|
Chris PeBenito |
3865d6 |
##
|
|
Chris PeBenito |
3865d6 |
## </parameter>
|
|
Chris PeBenito |
3865d6 |
## </interface>
|
|
Chris PeBenito |
b4cd15 |
#
|
|
Chris PeBenito |
588ffa |
define(`kernel_compute_create_context',`
|
|
Chris PeBenito |
0c73cd |
requires_block_template(`$0'_depend)
|
|
Chris PeBenito |
0c73cd |
|
|
Chris PeBenito |
0c73cd |
allow $1 security_t:dir { read search getattr };
|
|
Chris PeBenito |
0c73cd |
allow $1 security_t:file { getattr read write };
|
|
Chris PeBenito |
0c73cd |
allow $1 security_t:security compute_create;
|
|
Chris PeBenito |
b4cd15 |
')
|
|
Chris PeBenito |
b4cd15 |
|
|
Chris PeBenito |
588ffa |
define(`kernel_compute_create_context_depend',`
|
|
Chris PeBenito |
0c73cd |
type security_t;
|
|
Chris PeBenito |
0c73cd |
|
|
Chris PeBenito |
0c73cd |
class dir { read search getattr };
|
|
Chris PeBenito |
0c73cd |
class file { getattr read write };
|
|
Chris PeBenito |
0c73cd |
class security compute_create;
|
|
Chris PeBenito |
b4cd15 |
')
|
|
Chris PeBenito |
b4cd15 |
|
|
Chris PeBenito |
b4cd15 |
########################################
|
|
Chris PeBenito |
588ffa |
## <interface name="kernel_compute_relabel_context">
|
|
Chris PeBenito |
3865d6 |
## <description>
|
|
Chris PeBenito |
3865d6 |
##
|
|
Chris PeBenito |
3865d6 |
## </description>
|
|
Chris PeBenito |
3865d6 |
## <parameter name="domain">
|
|
Chris PeBenito |
3865d6 |
## The process type to
|
|
Chris PeBenito |
3865d6 |
## </parameter>
|
|
Chris PeBenito |
3865d6 |
## </interface>
|
|
Chris PeBenito |
b4cd15 |
#
|
|
Chris PeBenito |
588ffa |
define(`kernel_compute_relabel_context',`
|
|
Chris PeBenito |
0c73cd |
requires_block_template(`$0'_depend)
|
|
Chris PeBenito |
0c73cd |
|
|
Chris PeBenito |
0c73cd |
allow $1 security_t:dir { read search getattr };
|
|
Chris PeBenito |
0c73cd |
allow $1 security_t:file { getattr read write };
|
|
Chris PeBenito |
0c73cd |
allow $1 security_t:security compute_relabel;
|
|
Chris PeBenito |
b4cd15 |
')
|
|
Chris PeBenito |
b4cd15 |
|
|
Chris PeBenito |
588ffa |
define(`kernel_compute_relabel_context_depend',`
|
|
Chris PeBenito |
0c73cd |
type security_t;
|
|
Chris PeBenito |
0c73cd |
|
|
Chris PeBenito |
0c73cd |
class dir { read search getattr };
|
|
Chris PeBenito |
0c73cd |
class file { getattr read write };
|
|
Chris PeBenito |
0c73cd |
class security compute_relabel;
|
|
Chris PeBenito |
b4cd15 |
')
|
|
Chris PeBenito |
b4cd15 |
|
|
Chris PeBenito |
b4cd15 |
########################################
|
|
Chris PeBenito |
588ffa |
## <interface name="kernel_compute_reachable_user_contexts">
|
|
Chris PeBenito |
3865d6 |
## <description>
|
|
Chris PeBenito |
3865d6 |
## Allows caller to compute possible contexts for a user.
|
|
Chris PeBenito |
3865d6 |
## </description>
|
|
Chris PeBenito |
3865d6 |
## <parameter name="domain">
|
|
Chris PeBenito |
3865d6 |
## The process type allowed to compute user contexts.
|
|
Chris PeBenito |
3865d6 |
## </parameter>
|
|
Chris PeBenito |
3865d6 |
## </interface>
|
|
Chris PeBenito |
b4cd15 |
#
|
|
Chris PeBenito |
588ffa |
define(`kernel_compute_reachable_user_contexts',`
|
|
Chris PeBenito |
0c73cd |
requires_block_template(`$0'_depend)
|
|
Chris PeBenito |
0c73cd |
|
|
Chris PeBenito |
0c73cd |
allow $1 security_t:dir { read search getattr };
|
|
Chris PeBenito |
0c73cd |
allow $1 security_t:file { getattr read write };
|
|
Chris PeBenito |
0c73cd |
allow $1 security_t:security compute_user;
|
|
Chris PeBenito |
b4cd15 |
')
|
|
Chris PeBenito |
b4cd15 |
|
|
Chris PeBenito |
178607 |
define(`kernel_compute_selinux_reachable_user_contexts_depend',`
|
|
Chris PeBenito |
0c73cd |
type security_t;
|
|
Chris PeBenito |
0c73cd |
|
|
Chris PeBenito |
0c73cd |
class dir { read search getattr };
|
|
Chris PeBenito |
0c73cd |
class file { getattr read write };
|
|
Chris PeBenito |
0c73cd |
class security compute_user;
|
|
Chris PeBenito |
b4cd15 |
')
|
|
Chris PeBenito |
b4cd15 |
|
|
Chris PeBenito |
b4cd15 |
########################################
|
|
Chris PeBenito |
3865d6 |
## <interface name="kernel_read_ring_buffer">
|
|
Chris PeBenito |
3865d6 |
## <description>
|
|
Chris PeBenito |
3865d6 |
## Allows caller to read the ring buffer.
|
|
Chris PeBenito |
3865d6 |
## </description>
|
|
Chris PeBenito |
3865d6 |
## <parameter name="domain">
|
|
Chris PeBenito |
3865d6 |
## The process type allowed to read the ring buffer.
|
|
Chris PeBenito |
3865d6 |
## </parameter>
|
|
Chris PeBenito |
3865d6 |
## </interface>
|
|
Chris PeBenito |
b4cd15 |
#
|
|
Chris PeBenito |
b4cd15 |
define(`kernel_read_ring_buffer',`
|
|
Chris PeBenito |
0c73cd |
requires_block_template(`$0'_depend)
|
|
Chris PeBenito |
0c73cd |
|
|
Chris PeBenito |
0c73cd |
allow $1 kernel_t:system syslog_read;
|
|
Chris PeBenito |
b4cd15 |
')
|
|
Chris PeBenito |
b4cd15 |
|
|
Chris PeBenito |
b4cd15 |
define(`kernel_read_ring_buffer_depend',`
|
|
Chris PeBenito |
0c73cd |
type kernel_t;
|
|
Chris PeBenito |
0c73cd |
|
|
Chris PeBenito |
0c73cd |
class system syslog_read;
|
|
Chris PeBenito |
b4cd15 |
')
|
|
Chris PeBenito |
b4cd15 |
|
|
Chris PeBenito |
b4cd15 |
########################################
|
|
Chris PeBenito |
588ffa |
## <interface name="kernel_dontaudit_read_ring_buffer">
|
|
Chris PeBenito |
3865d6 |
## <description>
|
|
Chris PeBenito |
588ffa |
## Do not audit attempts to read the ring buffer.
|
|
Chris PeBenito |
3865d6 |
## </description>
|
|
Chris PeBenito |
3865d6 |
## <parameter name="domain">
|
|
Chris PeBenito |
3865d6 |
## The domain to not audit.
|
|
Chris PeBenito |
3865d6 |
## </parameter>
|
|
Chris PeBenito |
3865d6 |
## </interface>
|
|
Chris PeBenito |
b16c6b |
#
|
|
Chris PeBenito |
588ffa |
define(`kernel_dontaudit_read_ring_buffer',`
|
|
Chris PeBenito |
0c73cd |
requires_block_template(`$0'_depend)
|
|
Chris PeBenito |
0c73cd |
|
|
Chris PeBenito |
0c73cd |
dontaudit $1 kernel_t:system syslog_read;
|
|
Chris PeBenito |
b16c6b |
')
|
|
Chris PeBenito |
b16c6b |
|
|
Chris PeBenito |
588ffa |
define(`kernel_dontaudit_read_ring_buffer_depend',`
|
|
Chris PeBenito |
0c73cd |
type kernel_t;
|
|
Chris PeBenito |
0c73cd |
|
|
Chris PeBenito |
0c73cd |
class system syslog_read;
|
|
Chris PeBenito |
b16c6b |
')
|
|
Chris PeBenito |
b16c6b |
|
|
Chris PeBenito |
b16c6b |
########################################
|
|
Chris PeBenito |
3865d6 |
## <interface name="kernel_change_ring_buffer_level">
|
|
Chris PeBenito |
3865d6 |
## <description>
|
|
Chris PeBenito |
3865d6 |
##
|
|
Chris PeBenito |
3865d6 |
## </description>
|
|
Chris PeBenito |
3865d6 |
## <parameter name="domain">
|
|
Chris PeBenito |
3865d6 |
##
|
|
Chris PeBenito |
3865d6 |
## </parameter>
|
|
Chris PeBenito |
3865d6 |
## </interface>
|
|
Chris PeBenito |
b4cd15 |
#
|
|
Chris PeBenito |
b4cd15 |
define(`kernel_change_ring_buffer_level',`
|
|
Chris PeBenito |
0c73cd |
requires_block_template(`$0'_depend)
|
|
Chris PeBenito |
0c73cd |
|
|
Chris PeBenito |
0c73cd |
allow $1 kernel_t:system syslog_console;
|
|
Chris PeBenito |
b4cd15 |
')
|
|
Chris PeBenito |
b4cd15 |
|
|
Chris PeBenito |
b4cd15 |
define(`kernel_change_ring_buffer_level_depend',`
|
|
Chris PeBenito |
0c73cd |
type kernel_t;
|
|
Chris PeBenito |
0c73cd |
|
|
Chris PeBenito |
0c73cd |
class system syslog_console;
|
|
Chris PeBenito |
b4cd15 |
')
|
|
Chris PeBenito |
b4cd15 |
|
|
Chris PeBenito |
b4cd15 |
########################################
|
|
Chris PeBenito |
3865d6 |
## <interface name="kernel_clear_ring_buffer">
|
|
Chris PeBenito |
3865d6 |
## <description>
|
|
Chris PeBenito |
3865d6 |
## Allows the caller to clear the ring buffer.
|
|
Chris PeBenito |
3865d6 |
## </description>
|
|
Chris PeBenito |
3865d6 |
## <parameter name="domain">
|
|
Chris PeBenito |
3865d6 |
## The process type clearing the buffer.
|
|
Chris PeBenito |
3865d6 |
## </parameter>
|
|
Chris PeBenito |
3865d6 |
## </interface>
|
|
Chris PeBenito |
b4cd15 |
#
|
|
Chris PeBenito |
b4cd15 |
define(`kernel_clear_ring_buffer',`
|
|
Chris PeBenito |
0c73cd |
requires_block_template(`$0'_depend)
|
|
Chris PeBenito |
0c73cd |
|
|
Chris PeBenito |
0c73cd |
allow $1 kernel_t:system syslog_mod;
|
|
Chris PeBenito |
b4cd15 |
')
|
|
Chris PeBenito |
b4cd15 |
|
|
Chris PeBenito |
b4cd15 |
define(`kernel_clear_ring_buffer_depend',`
|
|
Chris PeBenito |
0c73cd |
type kernel_t;
|
|
Chris PeBenito |
0c73cd |
|
|
Chris PeBenito |
0c73cd |
class system syslog_mod;
|
|
Chris PeBenito |
b4cd15 |
')
|
|
Chris PeBenito |
b4cd15 |
|
|
Chris PeBenito |
b4cd15 |
########################################
|
|
Chris PeBenito |
3865d6 |
## <interface name="kernel_get_sysvipc_info">
|
|
Chris PeBenito |
3865d6 |
## <description>
|
|
Chris PeBenito |
588ffa |
## Get information on all System V IPC objects.
|
|
Chris PeBenito |
3865d6 |
## </description>
|
|
Chris PeBenito |
3865d6 |
## <parameter name="domain">
|
|
Chris PeBenito |
3865d6 |
##
|
|
Chris PeBenito |
3865d6 |
## </parameter>
|
|
Chris PeBenito |
3865d6 |
## </interface>
|
|
Chris PeBenito |
b4cd15 |
#
|
|
Chris PeBenito |
b4cd15 |
define(`kernel_get_sysvipc_info',`
|
|
Chris PeBenito |
0c73cd |
requires_block_template(`$0'_depend)
|
|
Chris PeBenito |
0c73cd |
|
|
Chris PeBenito |
0c73cd |
allow $1 kernel_t:system ipc_info;
|
|
Chris PeBenito |
b4cd15 |
')
|
|
Chris PeBenito |
b4cd15 |
|
|
Chris PeBenito |
b4cd15 |
define(`kernel_get_sysvipc_info_depend',`
|
|
Chris PeBenito |
0c73cd |
type kernel_t;
|
|
Chris PeBenito |
0c73cd |
|
|
Chris PeBenito |
0c73cd |
class system ipc_info;
|
|
Chris PeBenito |
b4cd15 |
')
|
|
Chris PeBenito |
b4cd15 |
|
|
Chris PeBenito |
b4cd15 |
########################################
|
|
Chris PeBenito |
3865d6 |
## <interface name="kernel_get_selinuxfs_mount_point">
|
|
Chris PeBenito |
3865d6 |
## <description>
|
|
Chris PeBenito |
3865d6 |
## Gets the caller the mountpoint of the selinuxfs filesystem.
|
|
Chris PeBenito |
3865d6 |
## </description>
|
|
Chris PeBenito |
3865d6 |
## <parameter name="domain">
|
|
Chris PeBenito |
3865d6 |
## The process type requesting the selinuxfs mountpoint.
|
|
Chris PeBenito |
3865d6 |
## </parameter>
|
|
Chris PeBenito |
3865d6 |
## </interface>
|
|
Chris PeBenito |
b4cd15 |
#
|
|
Chris PeBenito |
b4cd15 |
define(`kernel_get_selinuxfs_mount_point',`
|
|
Chris PeBenito |
0c73cd |
requires_block_template(`$0'_depend)
|
|
Chris PeBenito |
0c73cd |
|
|
Chris PeBenito |
0c73cd |
allow $1 proc_t:dir search;
|
|
Chris PeBenito |
0c73cd |
allow $1 proc_t:{ file lnk_file } read;
|
|
Chris PeBenito |
0c73cd |
allow $1 self:dir search;
|
|
Chris PeBenito |
0c73cd |
allow $1 self:file { getattr read };
|
|
Chris PeBenito |
b4cd15 |
')
|
|
Chris PeBenito |
b4cd15 |
|
|
Chris PeBenito |
f360f8 |
define(`kernel_get_selinuxfs_mount_point_depend',`
|
|
Chris PeBenito |
0c73cd |
type proc_t;
|
|
Chris PeBenito |
0c73cd |
|
|
Chris PeBenito |
0c73cd |
class dir search;
|
|
Chris PeBenito |
0c73cd |
class lnk_file read;
|
|
Chris PeBenito |
0c73cd |
class file { getattr read };
|
|
Chris PeBenito |
b4cd15 |
')
|
|
Chris PeBenito |
b4cd15 |
|
|
Chris PeBenito |
b4cd15 |
########################################
|
|
Chris PeBenito |
3865d6 |
## <interface name="kernel_read_system_state">
|
|
Chris PeBenito |
3865d6 |
## <description>
|
|
Chris PeBenito |
3865d6 |
## Allows caller to read system state information.
|
|
Chris PeBenito |
3865d6 |
## </description>
|
|
Chris PeBenito |
3865d6 |
## <parameter name="domain">
|
|
Chris PeBenito |
3865d6 |
## The process type reading the system state information.
|
|
Chris PeBenito |
3865d6 |
## </parameter>
|
|
Chris PeBenito |
3865d6 |
## </interface>
|
|
Chris PeBenito |
b4cd15 |
#
|
|
Chris PeBenito |
b4cd15 |
define(`kernel_read_system_state',`
|
|
Chris PeBenito |
0c73cd |
requires_block_template(`$0'_depend)
|
|
Chris PeBenito |
0c73cd |
|
|
Chris PeBenito |
0c73cd |
allow $1 proc_t:dir r_dir_perms;
|
|
Chris PeBenito |
0c73cd |
allow $1 proc_t:lnk_file { getattr read };
|
|
Chris PeBenito |
0c73cd |
allow $1 proc_t:file r_file_perms;
|
|
Chris PeBenito |
b4cd15 |
')
|
|
Chris PeBenito |
b4cd15 |
|
|
Chris PeBenito |
f360f8 |
define(`kernel_read_system_state_depend',`
|
|
Chris PeBenito |
0c73cd |
type proc_t;
|
|
Chris PeBenito |
0c73cd |
|
|
Chris PeBenito |
0c73cd |
class dir r_dir_perms;
|
|
Chris PeBenito |
0c73cd |
class lnk_file { getattr read };
|
|
Chris PeBenito |
0c73cd |
class file r_file_perms;
|
|
Chris PeBenito |
b4cd15 |
')
|
|
Chris PeBenito |
b4cd15 |
|
|
Chris PeBenito |
67484f |
########################################
|
|
Chris PeBenito |
588ffa |
## <interface name="kernel_dontaudit_read_system_state">
|
|
Chris PeBenito |
3865d6 |
## <description>
|
|
Chris PeBenito |
3865d6 |
## Do not audit attempts by caller to
|
|
Chris PeBenito |
3865d6 |
## read system state information.
|
|
Chris PeBenito |
3865d6 |
## </description>
|
|
Chris PeBenito |
3865d6 |
## <parameter name="domain">
|
|
Chris PeBenito |
3865d6 |
## The process type not to audit.
|
|
Chris PeBenito |
3865d6 |
## </parameter>
|
|
Chris PeBenito |
3865d6 |
## </interface>
|
|
Chris PeBenito |
67484f |
#
|
|
Chris PeBenito |
588ffa |
define(`kernel_dontaudit_read_system_state',`
|
|
Chris PeBenito |
0c73cd |
requires_block_template(`$0'_depend)
|
|
Chris PeBenito |
0c73cd |
|
|
Chris PeBenito |
0c73cd |
allow $1 proc_t:file read;
|
|
Chris PeBenito |
67484f |
')
|
|
Chris PeBenito |
67484f |
|
|
Chris PeBenito |
588ffa |
define(`kernel_dontaudit_read_system_state_depend',`
|
|
Chris PeBenito |
0c73cd |
type proc_t;
|
|
Chris PeBenito |
0c73cd |
|
|
Chris PeBenito |
0c73cd |
class file read;
|
|
Chris PeBenito |
67484f |
')
|
|
Chris PeBenito |
67484f |
|
|
Chris PeBenito |
b4cd15 |
#######################################
|
|
Chris PeBenito |
3865d6 |
## <interface name="kernel_read_software_raid_state">
|
|
Chris PeBenito |
3865d6 |
## <description>
|
|
Chris PeBenito |
3865d6 |
## Allow caller to read the state information for software raid.
|
|
Chris PeBenito |
3865d6 |
## </description>
|
|
Chris PeBenito |
3865d6 |
## <parameter name="domain">
|
|
Chris PeBenito |
3865d6 |
## The process type reading software raid state.
|
|
Chris PeBenito |
3865d6 |
## </parameter>
|
|
Chris PeBenito |
3865d6 |
## </interface>
|
|
Chris PeBenito |
b4cd15 |
#
|
|
Chris PeBenito |
b4cd15 |
define(`kernel_read_software_raid_state',`
|
|
Chris PeBenito |
0c73cd |
requires_block_template(`$0'_depend)
|
|
Chris PeBenito |
0c73cd |
|
|
Chris PeBenito |
c2c00b |
allow $1 proc_t:dir r_dir_perms;
|
|
Chris PeBenito |
c2c00b |
allow $1 proc_mdstat_t:file r_file_perms;
|
|
Chris PeBenito |
b4cd15 |
')
|
|
Chris PeBenito |
b4cd15 |
|
|
Chris PeBenito |
f360f8 |
define(`kernel_read_software_raid_state_depend',`
|
|
Chris PeBenito |
0c73cd |
type proc_t, proc_mdstat_t;
|
|
Chris PeBenito |
0c73cd |
|
|
Chris PeBenito |
c2c00b |
class dir r_dir_perms;
|
|
Chris PeBenito |
c2c00b |
class file r_file_perms;
|
|
Chris PeBenito |
b4cd15 |
')
|
|
Chris PeBenito |
b4cd15 |
|
|
Chris PeBenito |
b4cd15 |
########################################
|
|
Chris PeBenito |
588ffa |
## <interface name="kernel_getattr_core">
|
|
Chris PeBenito |
3865d6 |
## <description>
|
|
Chris PeBenito |
588ffa |
## Allows caller to get attribues of core kernel interface.
|
|
Chris PeBenito |
3865d6 |
## </description>
|
|
Chris PeBenito |
3865d6 |
## <parameter name="domain">
|
|
Chris PeBenito |
3865d6 |
## The process type getting the attibutes.
|
|
Chris PeBenito |
3865d6 |
## </parameter>
|
|
Chris PeBenito |
3865d6 |
## </interface>
|
|
Chris PeBenito |
b4cd15 |
#
|
|
Chris PeBenito |
588ffa |
define(`kernel_getattr_core',`
|
|
Chris PeBenito |
0c73cd |
requires_block_template(`$0'_depend)
|
|
Chris PeBenito |
0c73cd |
|
|
Chris PeBenito |
c2c00b |
allow $1 proc_t:dir r_dir_perms;
|
|
Chris PeBenito |
0c73cd |
allow $1 proc_kcore_t:file getattr;
|
|
Chris PeBenito |
b4cd15 |
')
|
|
Chris PeBenito |
b4cd15 |
|
|
Chris PeBenito |
588ffa |
define(`kernel_getattr_core_depend',`
|
|
Chris PeBenito |
0c73cd |
type proc_t, proc_kcore_t;
|
|
Chris PeBenito |
0c73cd |
|
|
Chris PeBenito |
0c73cd |
class dir { search getattr read };
|
|
Chris PeBenito |
0c73cd |
class file getattr;
|
|
Chris PeBenito |
b4cd15 |
')
|
|
Chris PeBenito |
b4cd15 |
|
|
Chris PeBenito |
b4cd15 |
########################################
|
|
Chris PeBenito |
588ffa |
## <interface name="kernel_dontaudit_getattr_core">
|
|
Chris PeBenito |
3865d6 |
## <description>
|
|
Chris PeBenito |
3865d6 |
## Do not audit attempts to get the attributes of
|
|
Chris PeBenito |
3865d6 |
## core kernel interfaces.
|
|
Chris PeBenito |
3865d6 |
## </description>
|
|
Chris PeBenito |
3865d6 |
## <parameter name="domain">
|
|
Chris PeBenito |
3865d6 |
## The process type to not audit.
|
|
Chris PeBenito |
3865d6 |
## </parameter>
|
|
Chris PeBenito |
3865d6 |
## </interface>
|
|
Chris PeBenito |
7bba9d |
#
|
|
Chris PeBenito |
588ffa |
define(`kernel_dontaudit_getattr_core',`
|
|
Chris PeBenito |
0c73cd |
requires_block_template(`$0'_depend)
|
|
Chris PeBenito |
0c73cd |
|
|
Chris PeBenito |
0c73cd |
dontaudit $1 proc_kcore_t:file getattr;
|
|
Chris PeBenito |
7bba9d |
')
|
|
Chris PeBenito |
7bba9d |
|
|
Chris PeBenito |
588ffa |
define(`kernel_dontaudit_getattr_core_depend',`
|
|
Chris PeBenito |
0c73cd |
type proc_kcore_t;
|
|
Chris PeBenito |
0c73cd |
|
|
Chris PeBenito |
0c73cd |
class file getattr;
|
|
Chris PeBenito |
7bba9d |
')
|
|
Chris PeBenito |
7bba9d |
|
|
Chris PeBenito |
7bba9d |
########################################
|
|
Chris PeBenito |
3865d6 |
## <interface name="kernel_read_messages">
|
|
Chris PeBenito |
3865d6 |
## <description>
|
|
Chris PeBenito |
588ffa |
## Allow caller to read kernel messages
|
|
Chris PeBenito |
588ffa |
## using the /proc/kmsg interface.
|
|
Chris PeBenito |
3865d6 |
## </description>
|
|
Chris PeBenito |
3865d6 |
## <parameter name="domain">
|
|
Chris PeBenito |
3865d6 |
## The process type reading the messages.
|
|
Chris PeBenito |
3865d6 |
## </parameter>
|
|
Chris PeBenito |
3865d6 |
## </interface>
|
|
Chris PeBenito |
a266e3 |
#
|
|
Chris PeBenito |
a266e3 |
define(`kernel_read_messages',`
|
|
Chris PeBenito |
0c73cd |
requires_block_template(`$0'_depend)
|
|
Chris PeBenito |
0c73cd |
|
|
Chris PeBenito |
0c73cd |
allow $1 proc_t:dir search;
|
|
Chris PeBenito |
c2c00b |
allow $1 proc_kmsg_t:file r_file_perms;
|
|
Chris PeBenito |
0c73cd |
typeattribute $1 can_receive_kernel_messages;
|
|
Chris PeBenito |
a266e3 |
')
|
|
Chris PeBenito |
a266e3 |
|
|
Chris PeBenito |
a266e3 |
define(`kernel_read_messages_depend',`
|
|
Chris PeBenito |
0c73cd |
attribute can_receive_kernel_messages;
|
|
Chris PeBenito |
0c73cd |
|
|
Chris PeBenito |
0c73cd |
type proc_kmsg_t, proc_t;
|
|
Chris PeBenito |
0c73cd |
|
|
Chris PeBenito |
0c73cd |
class dir search;
|
|
Chris PeBenito |
c2c00b |
class file r_file_perms;
|
|
Chris PeBenito |
a266e3 |
')
|
|
Chris PeBenito |
a266e3 |
|
|
Chris PeBenito |
a266e3 |
########################################
|
|
Chris PeBenito |
588ffa |
## <interface name="kernel_getattr_message_if">
|
|
Chris PeBenito |
3865d6 |
## <description>
|
|
Chris PeBenito |
3865d6 |
## Allow caller to get the attributes of kernel message
|
|
Chris PeBenito |
588ffa |
## interface (/proc/kmsg).
|
|
Chris PeBenito |
3865d6 |
## </description>
|
|
Chris PeBenito |
3865d6 |
## <parameter name="domain">
|
|
Chris PeBenito |
3865d6 |
## The process type getting the attributes.
|
|
Chris PeBenito |
3865d6 |
## </parameter>
|
|
Chris PeBenito |
3865d6 |
## </interface>
|
|
Chris PeBenito |
a266e3 |
#
|
|
Chris PeBenito |
588ffa |
define(`kernel_getattr_message_if',`
|
|
Chris PeBenito |
0c73cd |
requires_block_template(`$0'_depend)
|
|
Chris PeBenito |
0c73cd |
|
|
Chris PeBenito |
0c73cd |
allow $1 proc_t:dir search;
|
|
Chris PeBenito |
0c73cd |
allow $1 proc_kmsg_t:file getattr;
|
|
Chris PeBenito |
a266e3 |
')
|
|
Chris PeBenito |
a266e3 |
|
|
Chris PeBenito |
588ffa |
define(`kernel_getattr_message_if_depend',`
|
|
Chris PeBenito |
0c73cd |
type proc_kmsg_t, proc_t;
|
|
Chris PeBenito |
0c73cd |
|
|
Chris PeBenito |
0c73cd |
class dir search;
|
|
Chris PeBenito |
0c73cd |
class file getattr;
|
|
Chris PeBenito |
a266e3 |
')
|
|
Chris PeBenito |
a266e3 |
|
|
Chris PeBenito |
a266e3 |
########################################
|
|
Chris PeBenito |
588ffa |
## <interface name="kernel_dontaudit_getattr_message_if">
|
|
Chris PeBenito |
3865d6 |
## <description>
|
|
Chris PeBenito |
3865d6 |
## Do not audit attempts by caller to get the attributes of kernel
|
|
Chris PeBenito |
3865d6 |
## message interfaces.
|
|
Chris PeBenito |
3865d6 |
## </description>
|
|
Chris PeBenito |
3865d6 |
## <parameter name="domain">
|
|
Chris PeBenito |
3865d6 |
## The process type not to audit.
|
|
Chris PeBenito |
3865d6 |
## </parameter>
|
|
Chris PeBenito |
3865d6 |
## </interface>
|
|
Chris PeBenito |
07d6e3 |
#
|
|
Chris PeBenito |
588ffa |
define(`kernel_dontaudit_getattr_message_if',`
|
|
Chris PeBenito |
0c73cd |
requires_block_template(`$0'_depend)
|
|
Chris PeBenito |
0c73cd |
|
|
Chris PeBenito |
0c73cd |
dontaudit $1 proc_kmsg_t:file getattr;
|
|
Chris PeBenito |
07d6e3 |
')
|
|
Chris PeBenito |
07d6e3 |
|
|
Chris PeBenito |
588ffa |
define(`kernel_dontaudit_getattr_message_if_depend',`
|
|
Chris PeBenito |
0c73cd |
type proc_kmsg_t, proc_t;
|
|
Chris PeBenito |
0c73cd |
|
|
Chris PeBenito |
0c73cd |
class file getattr;
|
|
Chris PeBenito |
07d6e3 |
')
|
|
Chris PeBenito |
07d6e3 |
|
|
Chris PeBenito |
07d6e3 |
########################################
|
|
Chris PeBenito |
3865d6 |
## <interface name="kernel_read_network_state">
|
|
Chris PeBenito |
3865d6 |
## <description>
|
|
Chris PeBenito |
3865d6 |
## Allow caller to read the network state information.
|
|
Chris PeBenito |
3865d6 |
## </description>
|
|
Chris PeBenito |
3865d6 |
## <parameter name="domain">
|
|
Chris PeBenito |
3865d6 |
## The process type reading the state.
|
|
Chris PeBenito |
3865d6 |
## </parameter>
|
|
Chris PeBenito |
3865d6 |
## </interface>
|
|
Chris PeBenito |
3865d6 |
##
|
|
Chris PeBenito |
b4cd15 |
#
|
|
Chris PeBenito |
b4cd15 |
define(`kernel_read_network_state',`
|
|
Chris PeBenito |
0c73cd |
requires_block_template(`$0'_depend)
|
|
Chris PeBenito |
0c73cd |
|
|
Chris PeBenito |
0c73cd |
allow $1 proc_t:dir search;
|
|
Chris PeBenito |
c2c00b |
allow $1 proc_net_t:dir r_dir_perms;
|
|
Chris PeBenito |
c2c00b |
allow $1 proc_net_t:file r_file_perms;
|
|
Chris PeBenito |
b4cd15 |
')
|
|
Chris PeBenito |
b4cd15 |
|
|
Chris PeBenito |
f360f8 |
define(`kernel_read_network_state_depend',`
|
|
Chris PeBenito |
0c73cd |
type proc_t, proc_net_t;
|
|
Chris PeBenito |
0c73cd |
|
|
Chris PeBenito |
c2c00b |
class dir r_dir_perms;
|
|
Chris PeBenito |
c2c00b |
class file r_file_perms;
|
|
Chris PeBenito |
b4cd15 |
')
|
|
Chris PeBenito |
b4cd15 |
|
|
Chris PeBenito |
b4cd15 |
########################################
|
|
Chris PeBenito |
588ffa |
## <interface name="kernel_dontaudit_search_sysctl_dir">
|
|
Chris PeBenito |
3865d6 |
## <description>
|
|
Chris PeBenito |
3865d6 |
## Do not audit attempts by caller to search the sysctl directory.
|
|
Chris PeBenito |
3865d6 |
## </description>
|
|
Chris PeBenito |
3865d6 |
## <parameter name="domain">
|
|
Chris PeBenito |
3865d6 |
## The process type not to audit.
|
|
Chris PeBenito |
3865d6 |
## </parameter>
|
|
Chris PeBenito |
3865d6 |
## </interface>
|
|
Chris PeBenito |
3865d6 |
##
|
|
Chris PeBenito |
3b857e |
#
|
|
Chris PeBenito |
588ffa |
define(`kernel_dontaudit_search_sysctl_dir',`
|
|
Chris PeBenito |
0c73cd |
requires_block_template(`$0'_depend)
|
|
Chris PeBenito |
0c73cd |
|
|
Chris PeBenito |
0c73cd |
dontaudit $1 sysctl_t:dir search;
|
|
Chris PeBenito |
3b857e |
')
|
|
Chris PeBenito |
3b857e |
|
|
Chris PeBenito |
588ffa |
define(`kernel_dontaudit_search_sysctl_dir_depend',`
|
|
Chris PeBenito |
0c73cd |
type sysctl_t;
|
|
Chris PeBenito |
0c73cd |
|
|
Chris PeBenito |
0c73cd |
class dir search;
|
|
Chris PeBenito |
3b857e |
')
|
|
Chris PeBenito |
3b857e |
|
|
Chris PeBenito |
3b857e |
########################################
|
|
Chris PeBenito |
3865d6 |
## <interface name="kernel_read_device_sysctl">
|
|
Chris PeBenito |
3865d6 |
## <description>
|
|
Chris PeBenito |
588ffa |
## Allow caller to read the device sysctls.
|
|
Chris PeBenito |
3865d6 |
## </description>
|
|
Chris PeBenito |
3865d6 |
## <parameter name="domain">
|
|
Chris PeBenito |
588ffa |
## The process type to allow to read the device sysctls.
|
|
Chris PeBenito |
3865d6 |
## </parameter>
|
|
Chris PeBenito |
3865d6 |
## </interface>
|
|
Chris PeBenito |
b4cd15 |
#
|
|
Chris PeBenito |
b4cd15 |
define(`kernel_read_device_sysctl',`
|
|
Chris PeBenito |
0c73cd |
requires_block_template(`$0'_depend)
|
|
Chris PeBenito |
0c73cd |
|
|
Chris PeBenito |
0c73cd |
allow $1 proc_t:dir search;
|
|
Chris PeBenito |
c2c00b |
allow $1 sysctl_t:dir r_dir_perms;
|
|
Chris PeBenito |
c2c00b |
allow $1 sysctl_dev_t:dir r_dir_perms;
|
|
Chris PeBenito |
c2c00b |
allow $1 sysctl_dev_t:file r_file_perms;
|
|
Chris PeBenito |
b4cd15 |
')
|
|
Chris PeBenito |
b4cd15 |
|
|
Chris PeBenito |
f360f8 |
define(`kernel_read_device_sysctl_depend',`
|
|
Chris PeBenito |
0c73cd |
type proc_t, sysctl_t, sysctl_dev_t;
|
|
Chris PeBenito |
0c73cd |
|
|
Chris PeBenito |
c2c00b |
class dir r_dir_perms;
|
|
Chris PeBenito |
c2c00b |
class file r_file_perms;
|
|
Chris PeBenito |
b4cd15 |
')
|
|
Chris PeBenito |
b4cd15 |
|
|
Chris PeBenito |
b4cd15 |
########################################
|
|
Chris PeBenito |
588ffa |
## <interface name="kernel_rw_device_sysctl">
|
|
Chris PeBenito |
3865d6 |
## <description>
|
|
Chris PeBenito |
588ffa |
## Read and write device sysctls.
|
|
Chris PeBenito |
3865d6 |
## </description>
|
|
Chris PeBenito |
3865d6 |
## <parameter name="domain">
|
|
Chris PeBenito |
588ffa |
## The type of the process performing this action.
|
|
Chris PeBenito |
3865d6 |
## </parameter>
|
|
Chris PeBenito |
3865d6 |
## </interface>
|
|
Chris PeBenito |
b4cd15 |
#
|
|
Chris PeBenito |
588ffa |
define(`kernel_rw_device_sysctl',`
|
|
Chris PeBenito |
0c73cd |
requires_block_template(`$0'_depend)
|
|
Chris PeBenito |
0c73cd |
|
|
Chris PeBenito |
0c73cd |
allow $1 proc_t:dir search;
|
|
Chris PeBenito |
c2c00b |
allow $1 sysctl_t:dir r_dir_perms;
|
|
Chris PeBenito |
c2c00b |
allow $1 sysctl_dev_t:file rw_file_perms;
|
|
Chris PeBenito |
b4cd15 |
')
|
|
Chris PeBenito |
b4cd15 |
|
|
Chris PeBenito |
588ffa |
define(`kernel_rw_device_sysctl_depend',`
|
|
Chris PeBenito |
0c73cd |
type proc_t, sysctl_t, sysctl_dev_t;
|
|
Chris PeBenito |
0c73cd |
|
|
Chris PeBenito |
c2c00b |
class dir r_dir_perms;
|
|
Chris PeBenito |
c2c00b |
class file rw_file_perms;
|
|
Chris PeBenito |
b4cd15 |
')
|
|
Chris PeBenito |
b4cd15 |
|
|
Chris PeBenito |
b4cd15 |
########################################
|
|
Chris PeBenito |
588ffa |
## <interface name="kernel_read_vm_sysctl">
|
|
Chris PeBenito |
3865d6 |
## <description>
|
|
Chris PeBenito |
588ffa |
## Allow caller to read virtual memory sysctls.
|
|
Chris PeBenito |
3865d6 |
## </description>
|
|
Chris PeBenito |
3865d6 |
## <parameter name="domain">
|
|
Chris PeBenito |
588ffa |
## The type of the process performing this action.
|
|
Chris PeBenito |
3865d6 |
## </parameter>
|
|
Chris PeBenito |
3865d6 |
## </interface>
|
|
Chris PeBenito |
3865d6 |
##
|
|
Chris PeBenito |
b4cd15 |
#
|
|
Chris PeBenito |
588ffa |
define(`kernel_read_vm_sysctl',`
|
|
Chris PeBenito |
0c73cd |
requires_block_template(`$0'_depend)
|
|
Chris PeBenito |
0c73cd |
|
|
Chris PeBenito |
0c73cd |
allow $1 proc_t:dir search;
|
|
Chris PeBenito |
c2c00b |
allow $1 sysctl_t:dir r_dir_perms;
|
|
Chris PeBenito |
c2c00b |
allow $1 sysctl_vm_t:file r_file_perms;
|
|
Chris PeBenito |
b4cd15 |
')
|
|
Chris PeBenito |
b4cd15 |
|
|
Chris PeBenito |
588ffa |
define(`kernel_read_vm_sysctl_depend',`
|
|
Chris PeBenito |
0c73cd |
type proc_t, sysctl_t, sysctl_vm_t;
|
|
Chris PeBenito |
0c73cd |
|
|
Chris PeBenito |
c2c00b |
class dir r_dir_perms;
|
|
Chris PeBenito |
c2c00b |
class file r_file_perms;
|
|
Chris PeBenito |
b4cd15 |
')
|
|
Chris PeBenito |
b4cd15 |
|
|
Chris PeBenito |
b4cd15 |
########################################
|
|
Chris PeBenito |
588ffa |
## <interface name="kernel_rw_vm_sysctl">
|
|
Chris PeBenito |
3865d6 |
## <description>
|
|
Chris PeBenito |
588ffa |
## Read and write virtual memory sysctls.
|
|
Chris PeBenito |
3865d6 |
## </description>
|
|
Chris PeBenito |
3865d6 |
## <parameter name="domain">
|
|
Chris PeBenito |
588ffa |
## The type of the process performing this action.
|
|
Chris PeBenito |
3865d6 |
## </parameter>
|
|
Chris PeBenito |
3865d6 |
## </interface>
|
|
Chris PeBenito |
b4cd15 |
#
|
|
Chris PeBenito |
588ffa |
define(`kernel_rw_vm_sysctl',`
|
|
Chris PeBenito |
0c73cd |
requires_block_template(`$0'_depend)
|
|
Chris PeBenito |
0c73cd |
|
|
Chris PeBenito |
0c73cd |
allow $1 proc_t:dir search;
|
|
Chris PeBenito |
c2c00b |
allow $1 sysctl_t:dir r_dir_perms;
|
|
Chris PeBenito |
c2c00b |
allow $1 sysctl_vm_t:file rw_file_perms;
|
|
Chris PeBenito |
b4cd15 |
')
|
|
Chris PeBenito |
b4cd15 |
|
|
Chris PeBenito |
588ffa |
define(`kernel_rw_vm_sysctl_depend',`
|
|
Chris PeBenito |
0c73cd |
type proc_t, sysctl_t, sysctl_vm_t;
|
|
Chris PeBenito |
0c73cd |
|
|
Chris PeBenito |
c2c00b |
class dir r_dir_perms;
|
|
Chris PeBenito |
c2c00b |
class file rw_file_perms;
|
|
Chris PeBenito |
b4cd15 |
')
|
|
Chris PeBenito |
b4cd15 |
|
|
Chris PeBenito |
b4cd15 |
########################################
|
|
Chris PeBenito |
588ffa |
## <interface name="kernel_dontaudit_search_network_sysctl_dir">
|
|
Chris PeBenito |
3865d6 |
## <description>
|
|
Chris PeBenito |
3865d6 |
## Do not audit attempts by caller to search sysctl network directories.
|
|
Chris PeBenito |
3865d6 |
## </description>
|
|
Chris PeBenito |
3865d6 |
## <parameter name="domain">
|
|
Chris PeBenito |
3865d6 |
## The process type not to audit.
|
|
Chris PeBenito |
3865d6 |
## </parameter>
|
|
Chris PeBenito |
3865d6 |
## </interface>
|
|
Chris PeBenito |
3b857e |
#
|
|
Chris PeBenito |
588ffa |
define(`kernel_dontaudit_search_network_sysctl_dir',`
|
|
Chris PeBenito |
0c73cd |
requires_block_template(`$0'_depend)
|
|
Chris PeBenito |
0c73cd |
|
|
Chris PeBenito |
0c73cd |
dontaudit $1 sysctl_net_t:dir search;
|
|
Chris PeBenito |
3b857e |
')
|
|
Chris PeBenito |
3b857e |
|
|
Chris PeBenito |
588ffa |
define(`kernel_dontaudit_search_network_sysctl_dir_depend',`
|
|
Chris PeBenito |
0c73cd |
type sysctl_net_t;
|
|
Chris PeBenito |
0c73cd |
|
|
Chris PeBenito |
0c73cd |
class dir search;
|
|
Chris PeBenito |
3b857e |
')
|
|
Chris PeBenito |
3b857e |
|
|
Chris PeBenito |
3b857e |
########################################
|
|
Chris PeBenito |
588ffa |
## <interface name="kernel_read_net_sysctl">
|
|
Chris PeBenito |
3865d6 |
## <description>
|
|
Chris PeBenito |
588ffa |
## Allow caller to read network sysctls.
|
|
Chris PeBenito |
3865d6 |
## </description>
|
|
Chris PeBenito |
3865d6 |
## <parameter name="domain">
|
|
Chris PeBenito |
588ffa |
## The type of the process performing this action.
|
|
Chris PeBenito |
3865d6 |
## </parameter>
|
|
Chris PeBenito |
3865d6 |
## </interface>
|
|
Chris PeBenito |
3865d6 |
##
|
|
Chris PeBenito |
b4cd15 |
#
|
|
Chris PeBenito |
588ffa |
define(`kernel_read_net_sysctl',`
|
|
Chris PeBenito |
0c73cd |
requires_block_template(`$0'_depend)
|
|
Chris PeBenito |
0c73cd |
|
|
Chris PeBenito |
0c73cd |
allow $1 proc_t:dir search;
|
|
Chris PeBenito |
c2c00b |
allow $1 sysctl_t:dir r_dir_perms;
|
|
Chris PeBenito |
c2c00b |
allow $1 sysctl_net_t:dir r_dir_perms;
|
|
Chris PeBenito |
c2c00b |
allow $1 sysctl_net_t:file r_file_perms;
|
|
Chris PeBenito |
b4cd15 |
')
|
|
Chris PeBenito |
b4cd15 |
|
|
Chris PeBenito |
588ffa |
define(`kernel_read_net_sysctl_depend',`
|
|
Chris PeBenito |
0c73cd |
type proc_t, sysctl_t, sysctl_net_t;
|
|
Chris PeBenito |
0c73cd |
|
|
Chris PeBenito |
c2c00b |
class dir r_dir_perms;
|
|
Chris PeBenito |
c2c00b |
class file f_file_perms;
|
|
Chris PeBenito |
b4cd15 |
')
|
|
Chris PeBenito |
b4cd15 |
|
|
Chris PeBenito |
b4cd15 |
########################################
|
|
Chris PeBenito |
588ffa |
## <interface name="kernel_rw_net_sysctl">
|
|
Chris PeBenito |
3865d6 |
## <description>
|
|
Chris PeBenito |
3865d6 |
## Allow caller to modiry contents of sysctl network files.
|
|
Chris PeBenito |
3865d6 |
## </description>
|
|
Chris PeBenito |
3865d6 |
## <parameter name="domain">
|
|
Chris PeBenito |
588ffa |
## The type of the process performing this action.
|
|
Chris PeBenito |
3865d6 |
## </parameter>
|
|
Chris PeBenito |
3865d6 |
## </interface>
|
|
Chris PeBenito |
b4cd15 |
#
|
|
Chris PeBenito |
588ffa |
define(`kernel_rw_net_sysctl',`
|
|
Chris PeBenito |
0c73cd |
requires_block_template(`$0'_depend)
|
|
Chris PeBenito |
0c73cd |
|
|
Chris PeBenito |
0c73cd |
allow $1 proc_t:dir search;
|
|
Chris PeBenito |
c2c00b |
allow $1 sysctl_t:dir r_dir_perms;
|
|
Chris PeBenito |
c2c00b |
allow $1 sysctl_net_t:dir r_dir_perms;
|
|
Chris PeBenito |
c2c00b |
allow $1 sysctl_net_t:file rw_file_perms;
|
|
Chris PeBenito |
b4cd15 |
')
|
|
Chris PeBenito |
b4cd15 |
|
|
Chris PeBenito |
588ffa |
define(`kernel_rw_net_sysctl_depend',`
|
|
Chris PeBenito |
0c73cd |
type proc_t, sysctl_t, sysctl_net_t;
|
|
Chris PeBenito |
0c73cd |
|
|
Chris PeBenito |
c2c00b |
class dir r_dir_perms;
|
|
Chris PeBenito |
c2c00b |
class file rw_file_perms;
|
|
Chris PeBenito |
b4cd15 |
')
|
|
Chris PeBenito |
b4cd15 |
|
|
Chris PeBenito |
b4cd15 |
########################################
|
|
Chris PeBenito |
3865d6 |
## <interface name="kernel_read_unix_sysctl">
|
|
Chris PeBenito |
3865d6 |
## <description>
|
|
Chris PeBenito |
588ffa |
## Allow caller to read unix domain
|
|
Chris PeBenito |
588ffa |
## socket sysctls.
|
|
Chris PeBenito |
3865d6 |
## </description>
|
|
Chris PeBenito |
3865d6 |
## <parameter name="domain">
|
|
Chris PeBenito |
588ffa |
## The type of the process performing this action.
|
|
Chris PeBenito |
3865d6 |
## </parameter>
|
|
Chris PeBenito |
3865d6 |
## </interface>
|
|
Chris PeBenito |
b4cd15 |
#
|
|
Chris PeBenito |
b4cd15 |
define(`kernel_read_unix_sysctl',`
|
|
Chris PeBenito |
0c73cd |
requires_block_template(`$0'_depend)
|
|
Chris PeBenito |
0c73cd |
|
|
Chris PeBenito |
0c73cd |
allow $1 proc_t:dir search;
|
|
Chris PeBenito |
c2c00b |
allow $1 sysctl_t:dir r_dir_perms;
|
|
Chris PeBenito |
c2c00b |
allow $1 sysctl_net_t:dir r_dir_perms;
|
|
Chris PeBenito |
c2c00b |
allow $1 sysctl_net_unix_t:file r_file_perms;
|
|
Chris PeBenito |
b4cd15 |
')
|
|
Chris PeBenito |
b4cd15 |
|
|
Chris PeBenito |
588ffa |
define(`kernel_read_unix_sysctl_depend',`
|
|
Chris PeBenito |
0c73cd |
type proc_t, sysctl_t, sysctl_net_t, sysctl_net_unix_t;
|
|
Chris PeBenito |
0c73cd |
|
|
Chris PeBenito |
c2c00b |
class dir r_dir_perms;
|
|
Chris PeBenito |
c2c00b |
class file r_file_perms;
|
|
Chris PeBenito |
b4cd15 |
')
|
|
Chris PeBenito |
b4cd15 |
|
|
Chris PeBenito |
b4cd15 |
########################################
|
|
Chris PeBenito |
588ffa |
## <interface name="kernel_rw_unix_sysctl">
|
|
Chris PeBenito |
3865d6 |
## <description>
|
|
Chris PeBenito |
588ffa |
## Read and write unix domain
|
|
Chris PeBenito |
588ffa |
## socket sysctls.
|
|
Chris PeBenito |
3865d6 |
## </description>
|
|
Chris PeBenito |
3865d6 |
## <parameter name="domain">
|
|
Chris PeBenito |
588ffa |
## The type of the process performing this action.
|
|
Chris PeBenito |
3865d6 |
## </parameter>
|
|
Chris PeBenito |
3865d6 |
## </interface>
|
|
Chris PeBenito |
b4cd15 |
#
|
|
Chris PeBenito |
b4cd15 |
define(`kernel_modify_unix_sysctl',`
|
|
Chris PeBenito |
0c73cd |
requires_block_template(`$0'_depend)
|
|
Chris PeBenito |
0c73cd |
|
|
Chris PeBenito |
0c73cd |
allow $1 proc_t:dir search;
|
|
Chris PeBenito |
c2c00b |
allow $1 sysctl_t:dir r_dir_perms;
|
|
Chris PeBenito |
c2c00b |
allow $1 sysctl_net_t:dir r_dir_perms;
|
|
Chris PeBenito |
c2c00b |
allow $1 sysctl_net_unix_t:file rw_file_perms;
|
|
Chris PeBenito |
b4cd15 |
')
|
|
Chris PeBenito |
b4cd15 |
|
|
Chris PeBenito |
f360f8 |
define(`kernel_modify_net_sysctl_depend',`
|
|
Chris PeBenito |
0c73cd |
type proc_t, sysctl_t, sysctl_net_t, sysctl_net_unix_t;
|
|
Chris PeBenito |
0c73cd |
|
|
Chris PeBenito |
c2c00b |
class dir r_dir_perms;
|
|
Chris PeBenito |
c2c00b |
class file rw_file_perms;
|
|
Chris PeBenito |
b4cd15 |
')
|
|
Chris PeBenito |
b4cd15 |
|
|
Chris PeBenito |
b4cd15 |
########################################
|
|
Chris PeBenito |
3865d6 |
## <interface name="kernel_read_hotplug_sysctl">
|
|
Chris PeBenito |
3865d6 |
## <description>
|
|
Chris PeBenito |
588ffa |
## Read the hotplug sysctl.
|
|
Chris PeBenito |
3865d6 |
## </description>
|
|
Chris PeBenito |
3865d6 |
## <parameter name="domain">
|
|
Chris PeBenito |
588ffa |
## The type of the process performing this action.
|
|
Chris PeBenito |
3865d6 |
## </parameter>
|
|
Chris PeBenito |
3865d6 |
## </interface>
|
|
Chris PeBenito |
b4cd15 |
#
|
|
Chris PeBenito |
b4cd15 |
define(`kernel_read_hotplug_sysctl',`
|
|
Chris PeBenito |
0c73cd |
requires_block_template(`$0'_depend)
|
|
Chris PeBenito |
0c73cd |
|
|
Chris PeBenito |
0c73cd |
allow $1 proc_t:dir search;
|
|
Chris PeBenito |
c2c00b |
allow $1 sysctl_t:dir r_dir_perms;
|
|
Chris PeBenito |
c2c00b |
allow $1 sysctl_kernel_t:dir r_dir_perms;
|
|
Chris PeBenito |
c2c00b |
allow $1 sysctl_hotplug_t:file r_file_perms;
|
|
Chris PeBenito |
b4cd15 |
')
|
|
Chris PeBenito |
b4cd15 |
|
|
Chris PeBenito |
f360f8 |
define(`kernel_read_hotplug_sysctl_depend',`
|
|
Chris PeBenito |
0c73cd |
type proc_t, sysctl_t, sysctl_kernel_t, sysctl_hotplug_t;
|
|
Chris PeBenito |
0c73cd |
|
|
Chris PeBenito |
c2c00b |
class dir r_dir_perms;
|
|
Chris PeBenito |
c2c00b |
class file r_file_perms;
|
|
Chris PeBenito |
b4cd15 |
')
|
|
Chris PeBenito |
b4cd15 |
|
|
Chris PeBenito |
b4cd15 |
########################################
|
|
Chris PeBenito |
588ffa |
## <interface name="kernel_rw_hotplug_sysctl">
|
|
Chris PeBenito |
3865d6 |
## <description>
|
|
Chris PeBenito |
588ffa |
## Read and write the hotplug sysctl.
|
|
Chris PeBenito |
3865d6 |
## </description>
|
|
Chris PeBenito |
3865d6 |
## <parameter name="domain">
|
|
Chris PeBenito |
588ffa |
## The type of the process performing this action.
|
|
Chris PeBenito |
3865d6 |
## </parameter>
|
|
Chris PeBenito |
3865d6 |
## </interface>
|
|
Chris PeBenito |
b4cd15 |
#
|
|
Chris PeBenito |
588ffa |
define(`kernel_rw_hotplug_sysctl',`
|
|
Chris PeBenito |
0c73cd |
requires_block_template(`$0'_depend)
|
|
Chris PeBenito |
0c73cd |
|
|
Chris PeBenito |
0c73cd |
allow $1 proc_t:dir search;
|
|
Chris PeBenito |
c2c00b |
allow $1 sysctl_t:dir r_dir_perms;
|
|
Chris PeBenito |
c2c00b |
allow $1 sysctl_kernel_t:dir r_dir_perms;
|
|
Chris PeBenito |
c2c00b |
allow $1 sysctl_hotplug_t:file rw_file_perms;
|
|
Chris PeBenito |
b4cd15 |
')
|
|
Chris PeBenito |
b4cd15 |
|
|
Chris PeBenito |
588ffa |
define(`kernel_rw_hotplug_sysctl_depend',`
|
|
Chris PeBenito |
0c73cd |
type proc_t, sysctl_t, sysctl_kernel_t, sysctl_hotplug_t;
|
|
Chris PeBenito |
0c73cd |
|
|
Chris PeBenito |
c2c00b |
class dir r_dir_perms;
|
|
Chris PeBenito |
c2c00b |
class file rw_file_perms;
|
|
Chris PeBenito |
b4cd15 |
')
|
|
Chris PeBenito |
b4cd15 |
|
|
Chris PeBenito |
b4cd15 |
########################################
|
|
Chris PeBenito |
3865d6 |
## <interface name="kernel_read_modprobe_sysctl">
|
|
Chris PeBenito |
3865d6 |
## <description>
|
|
Chris PeBenito |
588ffa |
## Read the modprobe sysctl.
|
|
Chris PeBenito |
3865d6 |
## </description>
|
|
Chris PeBenito |
3865d6 |
## <parameter name="domain">
|
|
Chris PeBenito |
588ffa |
## The type of the process performing this action.
|
|
Chris PeBenito |
3865d6 |
## </parameter>
|
|
Chris PeBenito |
3865d6 |
## </interface>
|
|
Chris PeBenito |
b4cd15 |
#
|
|
Chris PeBenito |
b4cd15 |
define(`kernel_read_modprobe_sysctl',`
|
|
Chris PeBenito |
0c73cd |
requires_block_template(`$0'_depend)
|
|
Chris PeBenito |
0c73cd |
|
|
Chris PeBenito |
0c73cd |
allow $1 proc_t:dir search;
|
|
Chris PeBenito |
c2c00b |
allow $1 sysctl_t:dir r_dir_perms;
|
|
Chris PeBenito |
c2c00b |
allow $1 sysctl_kernel_t:dir r_dir_perms;
|
|
Chris PeBenito |
c2c00b |
allow $1 sysctl_modprobe_t:file r_file_perms;
|
|
Chris PeBenito |
b4cd15 |
')
|
|
Chris PeBenito |
b4cd15 |
|
|
Chris PeBenito |
f360f8 |
define(`kernel_read_modprobe_sysctl_depend',`
|
|
Chris PeBenito |
0c73cd |
type proc_t, sysctl_t, sysctl_kernel_t, sysctl_modprobe_t;
|
|
Chris PeBenito |
0c73cd |
|
|
Chris PeBenito |
c2c00b |
class dir r_dir_perms;
|
|
Chris PeBenito |
c2c00b |
class file r_file_perms;
|
|
Chris PeBenito |
b4cd15 |
')
|
|
Chris PeBenito |
b4cd15 |
|
|
Chris PeBenito |
b4cd15 |
########################################
|
|
Chris PeBenito |
588ffa |
## <interface name="kernel_rw_modprobe_sysctl">
|
|
Chris PeBenito |
3865d6 |
## <description>
|
|
Chris PeBenito |
588ffa |
## Read and write the modprobe sysctl.
|
|
Chris PeBenito |
3865d6 |
## </description>
|
|
Chris PeBenito |
3865d6 |
## <parameter name="domain">
|
|
Chris PeBenito |
588ffa |
## The type of the process performing this action.
|
|
Chris PeBenito |
3865d6 |
## </parameter>
|
|
Chris PeBenito |
3865d6 |
## </interface>
|
|
Chris PeBenito |
b4cd15 |
#
|
|
Chris PeBenito |
588ffa |
define(`kernel_rw_modprobe_sysctl',`
|
|
Chris PeBenito |
0c73cd |
requires_block_template(`$0'_depend)
|
|
Chris PeBenito |
0c73cd |
|
|
Chris PeBenito |
0c73cd |
allow $1 proc_t:dir search;
|
|
Chris PeBenito |
c2c00b |
allow $1 sysctl_t:dir r_dir_perms;
|
|
Chris PeBenito |
c2c00b |
allow $1 sysctl_kernel_t:dir r_dir_perms;
|
|
Chris PeBenito |
c2c00b |
allow $1 sysctl_modprobe_t:file rw_file_perms;
|
|
Chris PeBenito |
b4cd15 |
')
|
|
Chris PeBenito |
b4cd15 |
|
|
Chris PeBenito |
588ffa |
define(`kernel_rw_modprobe_sysctl_depend',`
|
|
Chris PeBenito |
0c73cd |
type proc_t, sysctl_t, sysctl_kernel_t, sysctl_modprobe_t;
|
|
Chris PeBenito |
0c73cd |
|
|
Chris PeBenito |
c2c00b |
class dir r_dir_perms;
|
|
Chris PeBenito |
c2c00b |
class file rw_file_perms;
|
|
Chris PeBenito |
b4cd15 |
')
|
|
Chris PeBenito |
b4cd15 |
|
|
Chris PeBenito |
b4cd15 |
########################################
|
|
Chris PeBenito |
3865d6 |
## <interface name="kernel_read_kernel_sysctl">
|
|
Chris PeBenito |
3865d6 |
## <description>
|
|
Chris PeBenito |
588ffa |
## Read generic kernel sysctls.
|
|
Chris PeBenito |
3865d6 |
## </description>
|
|
Chris PeBenito |
3865d6 |
## <parameter name="domain">
|
|
Chris PeBenito |
588ffa |
## The type of the process performing this action.
|
|
Chris PeBenito |
3865d6 |
## </parameter>
|
|
Chris PeBenito |
3865d6 |
## </interface>
|
|
Chris PeBenito |
b4cd15 |
#
|
|
Chris PeBenito |
b4cd15 |
define(`kernel_read_kernel_sysctl',`
|
|
Chris PeBenito |
0c73cd |
requires_block_template(`$0'_depend)
|
|
Chris PeBenito |
0c73cd |
|
|
Chris PeBenito |
0c73cd |
allow $1 proc_t:dir search;
|
|
Chris PeBenito |
c2c00b |
allow $1 sysctl_t:dir r_dir_perms;
|
|
Chris PeBenito |
c2c00b |
allow $1 sysctl_kernel_t:dir r_dir_perms;
|
|
Chris PeBenito |
c2c00b |
allow $1 sysctl_kernel_t:file r_file_perms;
|
|
Chris PeBenito |
b4cd15 |
')
|
|
Chris PeBenito |
b4cd15 |
|
|
Chris PeBenito |
f360f8 |
define(`kernel_read_kernel_sysctl_depend',`
|
|
Chris PeBenito |
0c73cd |
type proc_t, sysctl_t, sysctl_kernel_t;
|
|
Chris PeBenito |
0c73cd |
|
|
Chris PeBenito |
c2c00b |
class dir r_dir_perms;
|
|
Chris PeBenito |
c2c00b |
class file r_file_perms;
|
|
Chris PeBenito |
b4cd15 |
')
|
|
Chris PeBenito |
b4cd15 |
|
|
Chris PeBenito |
b4cd15 |
########################################
|
|
Chris PeBenito |
588ffa |
## <interface name="kernel_rw_kernel_sysctl">
|
|
Chris PeBenito |
3865d6 |
## <description>
|
|
Chris PeBenito |
588ffa |
## Read and write generic kernel sysctls.
|
|
Chris PeBenito |
3865d6 |
## </description>
|
|
Chris PeBenito |
3865d6 |
## <parameter name="domain">
|
|
Chris PeBenito |
588ffa |
## The type of the process performing this action.
|
|
Chris PeBenito |
3865d6 |
## </parameter>
|
|
Chris PeBenito |
3865d6 |
## </interface>
|
|
Chris PeBenito |
b4cd15 |
#
|
|
Chris PeBenito |
588ffa |
define(`kernel_rw_kernel_sysctl',`
|
|
Chris PeBenito |
0c73cd |
requires_block_template(`$0'_depend)
|
|
Chris PeBenito |
0c73cd |
|
|
Chris PeBenito |
0c73cd |
allow $1 proc_t:dir search;
|
|
Chris PeBenito |
c2c00b |
allow $1 sysctl_t:dir r_dir_perms;
|
|
Chris PeBenito |
c2c00b |
allow $1 sysctl_kernel_t:dir r_dir_perms;
|
|
Chris PeBenito |
c2c00b |
allow $1 sysctl_kernel_t:file rw_file_perms;
|
|
Chris PeBenito |
b4cd15 |
')
|
|
Chris PeBenito |
b4cd15 |
|
|
Chris PeBenito |
588ffa |
define(`kernel_rw_kernel_sysctl_depend',`
|
|
Chris PeBenito |
0c73cd |
type proc_t, sysctl_t, sysctl_kernel_t;
|
|
Chris PeBenito |
0c73cd |
|
|
Chris PeBenito |
c2c00b |
class dir r_dir_perms;
|
|
Chris PeBenito |
c2c00b |
class file rw_file_perms;
|
|
Chris PeBenito |
b4cd15 |
')
|
|
Chris PeBenito |
b4cd15 |
|
|
Chris PeBenito |
b4cd15 |
########################################
|
|
Chris PeBenito |
763c44 |
## <interface name="kernel_read_fs_sysctl">
|
|
Chris PeBenito |
3865d6 |
## <description>
|
|
Chris PeBenito |
588ffa |
## Read filesystem sysctls.
|
|
Chris PeBenito |
3865d6 |
## </description>
|
|
Chris PeBenito |
3865d6 |
## <parameter name="domain">
|
|
Chris PeBenito |
588ffa |
## The type of the process performing this action.
|
|
Chris PeBenito |
3865d6 |
## </parameter>
|
|
Chris PeBenito |
3865d6 |
## </interface>
|
|
Chris PeBenito |
b4cd15 |
#
|
|
Chris PeBenito |
763c44 |
define(`kernel_read_fs_sysctl',`
|
|
Chris PeBenito |
0c73cd |
requires_block_template(`$0'_depend)
|
|
Chris PeBenito |
0c73cd |
|
|
Chris PeBenito |
0c73cd |
allow $1 proc_t:dir search;
|
|
Chris PeBenito |
c2c00b |
allow $1 sysctl_t:dir r_dir_perms;
|
|
Chris PeBenito |
c2c00b |
allow $1 sysctl_fs_t:dir r_dir_perms;
|
|
Chris PeBenito |
c2c00b |
allow $1 sysctl_fs_t:file r_file_perms;
|
|
Chris PeBenito |
b4cd15 |
')
|
|
Chris PeBenito |
b4cd15 |
|
|
Chris PeBenito |
763c44 |
define(`kernel_read_fs_sysctl_depend',`
|
|
Chris PeBenito |
0c73cd |
type proc_t, sysctl_t, sysctl_fs_t;
|
|
Chris PeBenito |
0c73cd |
|
|
Chris PeBenito |
c2c00b |
class dir r_dir_perms;
|
|
Chris PeBenito |
c2c00b |
class file r_file_perms;
|
|
Chris PeBenito |
b4cd15 |
')
|
|
Chris PeBenito |
b4cd15 |
|
|
Chris PeBenito |
b4cd15 |
########################################
|
|
Chris PeBenito |
588ffa |
## <interface name="kernel_rw_fs_sysctl">
|
|
Chris PeBenito |
3865d6 |
## <description>
|
|
Chris PeBenito |
588ffa |
## Read and write fileystem sysctls.
|
|
Chris PeBenito |
3865d6 |
## </description>
|
|
Chris PeBenito |
3865d6 |
## <parameter name="domain">
|
|
Chris PeBenito |
588ffa |
## The type of the process performing this action.
|
|
Chris PeBenito |
3865d6 |
## </parameter>
|
|
Chris PeBenito |
3865d6 |
## </interface>
|
|
Chris PeBenito |
b4cd15 |
#
|
|
Chris PeBenito |
588ffa |
define(`kernel_rw_fs_sysctl',`
|
|
Chris PeBenito |
0c73cd |
requires_block_template(`$0'_depend)
|
|
Chris PeBenito |
0c73cd |
|
|
Chris PeBenito |
0c73cd |
allow $1 proc_t:dir search;
|
|
Chris PeBenito |
c2c00b |
allow $1 sysctl_t:dir r_dir_perms;
|
|
Chris PeBenito |
c2c00b |
allow $1 sysctl_fs_t:dir r_dir_perms;
|
|
Chris PeBenito |
c2c00b |
allow $1 sysctl_fs_t:file rw_file_perms;
|
|
Chris PeBenito |
b4cd15 |
')
|
|
Chris PeBenito |
b4cd15 |
|
|
Chris PeBenito |
588ffa |
define(`kernel_rw_fs_sysctl_depend',`
|
|
Chris PeBenito |
0c73cd |
type proc_t, sysctl_t, sysctl_fs_t;
|
|
Chris PeBenito |
0c73cd |
|
|
Chris PeBenito |
c2c00b |
class dir r_dir_perms;
|
|
Chris PeBenito |
c2c00b |
class file rw_file_perms;
|
|
Chris PeBenito |
b4cd15 |
')
|
|
Chris PeBenito |
b4cd15 |
|
|
Chris PeBenito |
b4cd15 |
########################################
|
|
Chris PeBenito |
3865d6 |
## <interface name="kernel_read_irq_sysctl">
|
|
Chris PeBenito |
3865d6 |
## <description>
|
|
Chris PeBenito |
588ffa |
## Read IRQ sysctls.
|
|
Chris PeBenito |
3865d6 |
## </description>
|
|
Chris PeBenito |
3865d6 |
## <parameter name="domain">
|
|
Chris PeBenito |
588ffa |
## The type of the process performing this action.
|
|
Chris PeBenito |
3865d6 |
## </parameter>
|
|
Chris PeBenito |
3865d6 |
## </interface>
|
|
Chris PeBenito |
b4cd15 |
#
|
|
Chris PeBenito |
b4cd15 |
define(`kernel_read_irq_sysctl',`
|
|
Chris PeBenito |
0c73cd |
requires_block_template(`$0'_depend)
|
|
Chris PeBenito |
0c73cd |
|
|
Chris PeBenito |
0c73cd |
allow $1 proc_t:dir search;
|
|
Chris PeBenito |
c2c00b |
allow $1 sysctl_irq_t:dir r_dir_perms;
|
|
Chris PeBenito |
c2c00b |
allow $1 sysctl_irq_t:file r_file_perms;
|
|
Chris PeBenito |
b4cd15 |
')
|
|
Chris PeBenito |
b4cd15 |
|
|
Chris PeBenito |
f360f8 |
define(`kernel_read_irq_sysctl_depend',`
|
|
Chris PeBenito |
0c73cd |
type proc_t, sysctl_irq_t;
|
|
Chris PeBenito |
0c73cd |
|
|
Chris PeBenito |
c2c00b |
class dir r_dir_perms;
|
|
Chris PeBenito |
c2c00b |
class file r_file_perms;
|
|
Chris PeBenito |
b4cd15 |
')
|
|
Chris PeBenito |
b4cd15 |
|
|
Chris PeBenito |
b4cd15 |
########################################
|
|
Chris PeBenito |
588ffa |
## <interface name="kernel_rw_irq_sysctl">
|
|
Chris PeBenito |
3865d6 |
## <description>
|
|
Chris PeBenito |
588ffa |
## Read and write IRQ sysctls.
|
|
Chris PeBenito |
3865d6 |
## </description>
|
|
Chris PeBenito |
3865d6 |
## <parameter name="domain">
|
|
Chris PeBenito |
588ffa |
## The type of the process performing this action.
|
|
Chris PeBenito |
3865d6 |
## </parameter>
|
|
Chris PeBenito |
3865d6 |
## </interface>
|
|
Chris PeBenito |
3865d6 |
##
|
|
Chris PeBenito |
b4cd15 |
#
|
|
Chris PeBenito |
588ffa |
define(`kernel_rw_irq_sysctl',`
|
|
Chris PeBenito |
0c73cd |
requires_block_template(`$0'_depend)
|
|
Chris PeBenito |
0c73cd |
|
|
Chris PeBenito |
0c73cd |
allow $1 proc_t:dir search;
|
|
Chris PeBenito |
c2c00b |
allow $1 sysctl_irq_t:dir r_dir_perms;
|
|
Chris PeBenito |
c2c00b |
allow $1 sysctl_irq_t:file rw_file_perms;
|
|
Chris PeBenito |
b4cd15 |
')
|
|
Chris PeBenito |
b4cd15 |
|
|
Chris PeBenito |
588ffa |
define(`kernel_rw_irq_sysctl_depend',`
|
|
Chris PeBenito |
0c73cd |
type proc_t, sysctl_irq_t;
|
|
Chris PeBenito |
0c73cd |
|
|
Chris PeBenito |
c2c00b |
class dir r_dir_perms;
|
|
Chris PeBenito |
c2c00b |
class file rw_file_perms;
|
|
Chris PeBenito |
b4cd15 |
')
|
|
Chris PeBenito |
b4cd15 |
|
|
Chris PeBenito |
b4cd15 |
########################################
|
|
Chris PeBenito |
b4cd15 |
#
|
|
Chris PeBenito |
bd202f |
# kernel_read_rpc_sysctl(domain)
|
|
Chris PeBenito |
b4cd15 |
#
|
|
Chris PeBenito |
b4cd15 |
define(`kernel_read_rpc_sysctl',`
|
|
Chris PeBenito |
0c73cd |
requires_block_template(`$0'_depend)
|
|
Chris PeBenito |
0c73cd |
|
|
Chris PeBenito |
0c73cd |
allow $1 proc_t:dir search;
|
|
Chris PeBenito |
0c73cd |
allow $1 proc_net_t:dir search;
|
|
Chris PeBenito |
c2c00b |
allow $1 sysctl_rpc_t:dir r_dir_perms;
|
|
Chris PeBenito |
c2c00b |
allow $1 sysctl_rpc_t:file r_file_perms;
|
|
Chris PeBenito |
b4cd15 |
')
|
|
Chris PeBenito |
b4cd15 |
|
|
Chris PeBenito |
f360f8 |
define(`kernel_read_rpc_sysctl_depend',`
|
|
Chris PeBenito |
0c73cd |
type proc_t, proc_net_t, sysctl_rpc_t;
|
|
Chris PeBenito |
0c73cd |
|
|
Chris PeBenito |
c2c00b |
class dir r_dir_perms;
|
|
Chris PeBenito |
c2c00b |
class file r_file_perms;
|
|
Chris PeBenito |
b4cd15 |
')
|
|
Chris PeBenito |
b4cd15 |
|
|
Chris PeBenito |
b4cd15 |
########################################
|
|
Chris PeBenito |
b4cd15 |
#
|
|
Chris PeBenito |
bd202f |
# kernel_modify_rpc_sysctl(domain)
|
|
Chris PeBenito |
b4cd15 |
#
|
|
Chris PeBenito |
b4cd15 |
define(`kernel_modify_rpc_sysctl',`
|
|
Chris PeBenito |
0c73cd |
requires_block_template(`$0'_depend)
|
|
Chris PeBenito |
0c73cd |
|
|
Chris PeBenito |
0c73cd |
allow $1 proc_t:dir search;
|
|
Chris PeBenito |
0c73cd |
allow $1 proc_net_t:dir search;
|
|
Chris PeBenito |
c2c00b |
allow $1 sysctl_rpc_t:dir r_dir_perms;
|
|
Chris PeBenito |
c2c00b |
allow $1 sysctl_rpc_t:file rw_file_perms;
|
|
Chris PeBenito |
b4cd15 |
')
|
|
Chris PeBenito |
b4cd15 |
|
|
Chris PeBenito |
f360f8 |
define(`kernel_modify_rpc_sysctl_depend',`
|
|
Chris PeBenito |
0c73cd |
type proc_t, proc_net_t, sysctl_rpc_t;
|
|
Chris PeBenito |
0c73cd |
|
|
Chris PeBenito |
c2c00b |
class dir r_dir_perms;
|
|
Chris PeBenito |
c2c00b |
class file rw_file_perms;
|
|
Chris PeBenito |
b4cd15 |
')
|
|
Chris PeBenito |
b4cd15 |
|
|
Chris PeBenito |
b4cd15 |
########################################
|
|
Chris PeBenito |
3865d6 |
## <interface name="kernel_read_all_sysctl">
|
|
Chris PeBenito |
3865d6 |
## <description>
|
|
Chris PeBenito |
588ffa |
## Allow caller to read all sysctls.
|
|
Chris PeBenito |
3865d6 |
## </description>
|
|
Chris PeBenito |
3865d6 |
## <parameter name="domain">
|
|
Chris PeBenito |
588ffa |
## The type of the process performing this action.
|
|
Chris PeBenito |
3865d6 |
## </parameter>
|
|
Chris PeBenito |
3865d6 |
## </interface>
|
|
Chris PeBenito |
b4cd15 |
#
|
|
Chris PeBenito |
b4cd15 |
define(`kernel_read_all_sysctl',`
|
|
Chris PeBenito |
0c73cd |
kernel_read_device_sysctl($1)
|
|
Chris PeBenito |
0c73cd |
kernel_read_virtual_memory_sysctl($1)
|
|
Chris PeBenito |
0c73cd |
kernel_read_network_sysctl($1)
|
|
Chris PeBenito |
0c73cd |
kernel_read_unix_sysctl($1)
|
|
Chris PeBenito |
0c73cd |
kernel_read_hotplug_sysctl($1)
|
|
Chris PeBenito |
0c73cd |
kernel_read_modprobe_sysctl($1)
|
|
Chris PeBenito |
0c73cd |
kernel_read_kernel_sysctl($1)
|
|
Chris PeBenito |
763c44 |
kernel_read_fs_sysctl($1)
|
|
Chris PeBenito |
0c73cd |
kernel_read_irq_sysctl($1)
|
|
Chris PeBenito |
0c73cd |
kernel_read_rpc_sysctl($1)
|
|
Chris PeBenito |
b4cd15 |
')
|
|
Chris PeBenito |
b4cd15 |
|
|
Chris PeBenito |
b4cd15 |
########################################
|
|
Chris PeBenito |
3865d6 |
## <interface name="kernel_modify_all_sysctl">
|
|
Chris PeBenito |
3865d6 |
## <description>
|
|
Chris PeBenito |
588ffa |
## Read and write all sysctls.
|
|
Chris PeBenito |
3865d6 |
## </description>
|
|
Chris PeBenito |
3865d6 |
## <parameter name="domain">
|
|
Chris PeBenito |
588ffa |
## The type of the process performing this action.
|
|
Chris PeBenito |
3865d6 |
## </parameter>
|
|
Chris PeBenito |
3865d6 |
## </interface>
|
|
Chris PeBenito |
b4cd15 |
#
|
|
Chris PeBenito |
588ffa |
define(`kernel_rw_all_sysctl',`
|
|
Chris PeBenito |
588ffa |
kernel_rw_device_sysctl($1)
|
|
Chris PeBenito |
588ffa |
kernel_rw_virtual_memory_sysctl($1)
|
|
Chris PeBenito |
588ffa |
kernel_rw_network_sysctl($1)
|
|
Chris PeBenito |
588ffa |
kernel_rw_unix_sysctl($1)
|
|
Chris PeBenito |
588ffa |
kernel_rw_hotplug_sysctl($1)
|
|
Chris PeBenito |
588ffa |
kernel_rw_modprobe_sysctl($1)
|
|
Chris PeBenito |
588ffa |
kernel_rw_kernel_sysctl($1)
|
|
Chris PeBenito |
588ffa |
kernel_rw_fs_sysctl($1)
|
|
Chris PeBenito |
588ffa |
kernel_rw_irq_sysctl($1)
|
|
Chris PeBenito |
588ffa |
kernel_rw_rpc_sysctl($1)
|
|
Chris PeBenito |
f5c42b |
')
|
|
Chris PeBenito |
f5c42b |
|
|
Chris PeBenito |
f5c42b |
########################################
|
|
Chris PeBenito |
588ffa |
## <interface name="kernel_search_sysfs">
|
|
Chris PeBenito |
f5c42b |
## <description>
|
|
Chris PeBenito |
f5c42b |
## Search the directory containing hardware information.
|
|
Chris PeBenito |
f5c42b |
## </description>
|
|
Chris PeBenito |
f5c42b |
## <parameter name="domain">
|
|
Chris PeBenito |
f5c42b |
## The type of the process performing this action.
|
|
Chris PeBenito |
f5c42b |
## </parameter>
|
|
Chris PeBenito |
f5c42b |
## </interface>
|
|
Chris PeBenito |
f5c42b |
#
|
|
Chris PeBenito |
588ffa |
define(`kernel_search_sysfs',`
|
|
Chris PeBenito |
0c73cd |
requires_block_template(`$0'_depend)
|
|
Chris PeBenito |
0c73cd |
|
|
Chris PeBenito |
0c73cd |
allow $1 sysfs_t:dir search;
|
|
Chris PeBenito |
b4cd15 |
')
|
|
Chris PeBenito |
b4cd15 |
|
|
Chris PeBenito |
588ffa |
define(`kernel_search_sysfs_depend',`
|
|
Chris PeBenito |
0c73cd |
type sysfs_t;
|
|
Chris PeBenito |
0c73cd |
|
|
Chris PeBenito |
0c73cd |
class dir search;
|
|
Chris PeBenito |
b4cd15 |
')
|
|
Chris PeBenito |
b4cd15 |
|
|
Chris PeBenito |
b4cd15 |
########################################
|
|
Chris PeBenito |
3865d6 |
## <interface name="kernel_read_hardware_state">
|
|
Chris PeBenito |
3865d6 |
## <description>
|
|
Chris PeBenito |
3865d6 |
## Allow caller to read hardware state information.
|
|
Chris PeBenito |
3865d6 |
## </description>
|
|
Chris PeBenito |
3865d6 |
## <parameter name="domain">
|
|
Chris PeBenito |
3865d6 |
## The process type reading hardware state information.
|
|
Chris PeBenito |
3865d6 |
## </parameter>
|
|
Chris PeBenito |
3865d6 |
## </interface>
|
|
Chris PeBenito |
b4cd15 |
#
|
|
Chris PeBenito |
b4cd15 |
define(`kernel_read_hardware_state',`
|
|
Chris PeBenito |
0c73cd |
requires_block_template(`$0'_depend)
|
|
Chris PeBenito |
0c73cd |
|
|
Chris PeBenito |
c2c00b |
allow $1 sysfs_t:dir r_dir_perms;
|
|
Chris PeBenito |
c2c00b |
allow $1 sysfs_t:{ file lnk_file } r_file_perms;
|
|
Chris PeBenito |
b4cd15 |
')
|
|
Chris PeBenito |
b4cd15 |
|
|
Chris PeBenito |
b4cd15 |
define(`kernel_read_hardware_state_depend',`
|
|
Chris PeBenito |
0c73cd |
type sysfs_t;
|
|
Chris PeBenito |
0c73cd |
|
|
Chris PeBenito |
c2c00b |
class dir r_dir_perms;
|
|
Chris PeBenito |
c2c00b |
class file r_file_perms;
|
|
Chris PeBenito |
c2c00b |
class lnk_file r_file_perms;
|
|
Chris PeBenito |
b4cd15 |
')
|
|
Chris PeBenito |
b4cd15 |
|
|
Chris PeBenito |
b4cd15 |
########################################
|
|
Chris PeBenito |
588ffa |
## <interface name="kernel_rw_hardware_state">
|
|
Chris PeBenito |
3865d6 |
## <description>
|
|
Chris PeBenito |
3865d6 |
## Allow caller to modify hardware state information.
|
|
Chris PeBenito |
3865d6 |
## </description>
|
|
Chris PeBenito |
3865d6 |
## <parameter name="domain">
|
|
Chris PeBenito |
3865d6 |
## The process type modifying hardware state information.
|
|
Chris PeBenito |
3865d6 |
## </parameter>
|
|
Chris PeBenito |
3865d6 |
## </interface>
|
|
Chris PeBenito |
b4cd15 |
#
|
|
Chris PeBenito |
588ffa |
define(`kernel_rw_hardware_config_option',`
|
|
Chris PeBenito |
0c73cd |
requires_block_template(`$0'_depend)
|
|
Chris PeBenito |
0c73cd |
|
|
Chris PeBenito |
c2c00b |
allow $1 sysfs_t:dir r_dir_perms;
|
|
Chris PeBenito |
c2c00b |
allow $1 sysfs_t:lnk_file r_file_perms;
|
|
Chris PeBenito |
c2c00b |
allow $1 sysfs_t:file rw_file_perms;
|
|
Chris PeBenito |
b4cd15 |
')
|
|
Chris PeBenito |
b4cd15 |
|
|
Chris PeBenito |
588ffa |
define(`kernel_rw_hardware_config_option_depend',`
|
|
Chris PeBenito |
0c73cd |
type sysfs_t;
|
|
Chris PeBenito |
0c73cd |
|
|
Chris PeBenito |
c2c00b |
class dir r_dir_perms;
|
|
Chris PeBenito |
c2c00b |
class file rw_file_perms;
|
|
Chris PeBenito |
c2c00b |
class lnk_file r_file_perms;
|
|
Chris PeBenito |
b4cd15 |
')
|
|
Chris PeBenito |
b4cd15 |
|
|
Chris PeBenito |
b4cd15 |
########################################
|
|
Chris PeBenito |
588ffa |
## <interface name="kernel_kill_unlabeled">
|
|
Chris PeBenito |
c6fd1f |
## <description>
|
|
Chris PeBenito |
c6fd1f |
## Send a kill signal to unlabeled processes.
|
|
Chris PeBenito |
c6fd1f |
## </description>
|
|
Chris PeBenito |
c6fd1f |
## <parameter name="domain">
|
|
Chris PeBenito |
c6fd1f |
## The type of the process performing this action.
|
|
Chris PeBenito |
c6fd1f |
## </parameter>
|
|
Chris PeBenito |
c6fd1f |
## </interface>
|
|
Chris PeBenito |
c6fd1f |
#
|
|
Chris PeBenito |
588ffa |
define(`kernel_kill_unlabeled',`
|
|
Chris PeBenito |
0c73cd |
requires_block_template(`$0'_depend)
|
|
Chris PeBenito |
0c73cd |
|
|
Chris PeBenito |
0c73cd |
allow $1 unlabeled_t:process sigkill;
|
|
Chris PeBenito |
c6fd1f |
')
|
|
Chris PeBenito |
c6fd1f |
|
|
Chris PeBenito |
588ffa |
define(`kernel_kill_unlabeled_depend',`
|
|
Chris PeBenito |
0c73cd |
type unlabeled_t;
|
|
Chris PeBenito |
0c73cd |
|
|
Chris PeBenito |
0c73cd |
class process sigkill;
|
|
Chris PeBenito |
c6fd1f |
')
|
|
Chris PeBenito |
c6fd1f |
|
|
Chris PeBenito |
c6fd1f |
########################################
|
|
Chris PeBenito |
588ffa |
## <interface name="kernel_signal_unlabeled">
|
|
Chris PeBenito |
c6fd1f |
## <description>
|
|
Chris PeBenito |
c6fd1f |
## Send general signals to unlabeled processes.
|
|
Chris PeBenito |
c6fd1f |
## </description>
|
|
Chris PeBenito |
c6fd1f |
## <parameter name="domain">
|
|
Chris PeBenito |
c6fd1f |
## The type of the process performing this action.
|
|
Chris PeBenito |
c6fd1f |
## </parameter>
|
|
Chris PeBenito |
c6fd1f |
## </interface>
|
|
Chris PeBenito |
c6fd1f |
#
|
|
Chris PeBenito |
588ffa |
define(`kernel_signal_unlabeled',`
|
|
Chris PeBenito |
0c73cd |
requires_block_template(`$0'_depend)
|
|
Chris PeBenito |
0c73cd |
|
|
Chris PeBenito |
0c73cd |
allow $1 unlabeled_t:process signal;
|
|
Chris PeBenito |
c6fd1f |
')
|
|
Chris PeBenito |
c6fd1f |
|
|
Chris PeBenito |
588ffa |
define(`kernel_signal_unlabeled_depend',`
|
|
Chris PeBenito |
0c73cd |
type unlabeled_t;
|
|
Chris PeBenito |
0c73cd |
|
|
Chris PeBenito |
0c73cd |
class process signal;
|
|
Chris PeBenito |
c6fd1f |
')
|
|
Chris PeBenito |
c6fd1f |
|
|
Chris PeBenito |
c6fd1f |
########################################
|
|
Chris PeBenito |
588ffa |
## <interface name="kernel_signull_unlabeled">
|
|
Chris PeBenito |
c6fd1f |
## <description>
|
|
Chris PeBenito |
c6fd1f |
## Send a null signal to unlabeled processes.
|
|
Chris PeBenito |
c6fd1f |
## </description>
|
|
Chris PeBenito |
c6fd1f |
## <parameter name="domain">
|
|
Chris PeBenito |
c6fd1f |
## The type of the process performing this action.
|
|
Chris PeBenito |
c6fd1f |
## </parameter>
|
|
Chris PeBenito |
c6fd1f |
## </interface>
|
|
Chris PeBenito |
c6fd1f |
#
|
|
Chris PeBenito |
588ffa |
define(`kernel_signull_unlabeled',`
|
|
Chris PeBenito |
0c73cd |
requires_block_template(`$0'_depend)
|
|
Chris PeBenito |
0c73cd |
|
|
Chris PeBenito |
0c73cd |
allow $1 unlabeled_t:process signull;
|
|
Chris PeBenito |
c6fd1f |
')
|
|
Chris PeBenito |
c6fd1f |
|
|
Chris PeBenito |
588ffa |
define(`kernel_signull_unlabeled_depend',`
|
|
Chris PeBenito |
0c73cd |
type unlabeled_t;
|
|
Chris PeBenito |
0c73cd |
|
|
Chris PeBenito |
0c73cd |
class process signull;
|
|
Chris PeBenito |
c6fd1f |
')
|
|
Chris PeBenito |
c6fd1f |
|
|
Chris PeBenito |
c6fd1f |
########################################
|
|
Chris PeBenito |
588ffa |
## <interface name="kernel_sigstop_unlabeled">
|
|
Chris PeBenito |
c6fd1f |
## <description>
|
|
Chris PeBenito |
c6fd1f |
## Send a stop signal to unlabeled processes.
|
|
Chris PeBenito |
c6fd1f |
## </description>
|
|
Chris PeBenito |
c6fd1f |
## <parameter name="domain">
|
|
Chris PeBenito |
c6fd1f |
## The type of the process performing this action.
|
|
Chris PeBenito |
c6fd1f |
## </parameter>
|
|
Chris PeBenito |
c6fd1f |
## </interface>
|
|
Chris PeBenito |
c6fd1f |
#
|
|
Chris PeBenito |
588ffa |
define(`kernel_sigstop_unlabeled',`
|
|
Chris PeBenito |
0c73cd |
requires_block_template(`$0'_depend)
|
|
Chris PeBenito |
0c73cd |
|
|
Chris PeBenito |
0c73cd |
allow $1 unlabeled_t:process sigstop;
|
|
Chris PeBenito |
c6fd1f |
')
|
|
Chris PeBenito |
c6fd1f |
|
|
Chris PeBenito |
588ffa |
define(`kernel_sigstop_unlabeled_depend',`
|
|
Chris PeBenito |
0c73cd |
type unlabeled_t;
|
|
Chris PeBenito |
0c73cd |
|
|
Chris PeBenito |
0c73cd |
class process sigstop;
|
|
Chris PeBenito |
c6fd1f |
')
|
|
Chris PeBenito |
c6fd1f |
|
|
Chris PeBenito |
c6fd1f |
########################################
|
|
Chris PeBenito |
588ffa |
## <interface name="kernel_sigchld_unlabeled">
|
|
Chris PeBenito |
c6fd1f |
## <description>
|
|
Chris PeBenito |
c6fd1f |
## Send a child terminated signal to unlabeled processes.
|
|
Chris PeBenito |
c6fd1f |
## </description>
|
|
Chris PeBenito |
c6fd1f |
## <parameter name="domain">
|
|
Chris PeBenito |
c6fd1f |
## The type of the process performing this action.
|
|
Chris PeBenito |
c6fd1f |
## </parameter>
|
|
Chris PeBenito |
c6fd1f |
## </interface>
|
|
Chris PeBenito |
c6fd1f |
#
|
|
Chris PeBenito |
588ffa |
define(`kernel_sigchld_unlabeled',`
|
|
Chris PeBenito |
0c73cd |
requires_block_template(`$0'_depend)
|
|
Chris PeBenito |
0c73cd |
|
|
Chris PeBenito |
0c73cd |
allow $1 unlabeled_t:process sigchld;
|
|
Chris PeBenito |
c6fd1f |
')
|
|
Chris PeBenito |
c6fd1f |
|
|
Chris PeBenito |
588ffa |
define(`kernel_sigchld_unlabeled_depend',`
|
|
Chris PeBenito |
0c73cd |
type unlabeled_t;
|
|
Chris PeBenito |
0c73cd |
|
|
Chris PeBenito |
0c73cd |
class process sigchld;
|
|
Chris PeBenito |
c6fd1f |
')
|
|
Chris PeBenito |
c6fd1f |
|
|
Chris PeBenito |
c6fd1f |
########################################
|
|
Chris PeBenito |
588ffa |
## <interface name="kernel_dontaudit_getattr_unlabeled_blk_dev">
|
|
Chris PeBenito |
3865d6 |
## <description>
|
|
Chris PeBenito |
3865d6 |
## Do not audit attempts by caller to get attributes for
|
|
Chris PeBenito |
3865d6 |
## unlabeled block devices.
|
|
Chris PeBenito |
3865d6 |
## </description>
|
|
Chris PeBenito |
3865d6 |
## <parameter name="domain">
|
|
Chris PeBenito |
3865d6 |
## The process type not to audit.
|
|
Chris PeBenito |
3865d6 |
## </parameter>
|
|
Chris PeBenito |
3865d6 |
## </interface>
|
|
Chris PeBenito |
c6fd1f |
#
|
|
Chris PeBenito |
588ffa |
define(`kernel_dontaudit_getattr_unlabeled_blk_dev',`
|
|
Chris PeBenito |
0c73cd |
requires_block_template(`$0'_depend)
|
|
Chris PeBenito |
0c73cd |
|
|
Chris PeBenito |
0c73cd |
allow $1 unlabeled_t:blk_file getattr;
|
|
Chris PeBenito |
c6fd1f |
')
|
|
Chris PeBenito |
c6fd1f |
|
|
Chris PeBenito |
588ffa |
define(`kernel_dontaudit_getattr_unlabeled_blk_dev_depend',`
|
|
Chris PeBenito |
0c73cd |
type unlabeled_t;
|
|
Chris PeBenito |
0c73cd |
|
|
Chris PeBenito |
0c73cd |
class process getattr;
|
|
Chris PeBenito |
c6fd1f |
')
|
|
Chris PeBenito |
c6fd1f |
|
|
Chris PeBenito |
c6fd1f |
########################################
|
|
Chris PeBenito |
588ffa |
## <interface name="kernel_relabel_unlabeled">
|
|
Chris PeBenito |
3865d6 |
## <description>
|
|
Chris PeBenito |
3865d6 |
## Allow caller to relabel unlabeled objects.
|
|
Chris PeBenito |
3865d6 |
## </description>
|
|
Chris PeBenito |
3865d6 |
## <parameter name="domain">
|
|
Chris PeBenito |
3865d6 |
## The process type relabeling the objects.
|
|
Chris PeBenito |
3865d6 |
## </parameter>
|
|
Chris PeBenito |
3865d6 |
## </interface>
|
|
Chris PeBenito |
c6fd1f |
#
|
|
Chris PeBenito |
588ffa |
define(`kernel_relabel_unlabeled',`
|
|
Chris PeBenito |
0c73cd |
requires_block_template(`$0'_depend)
|
|
Chris PeBenito |
0c73cd |
|
|
Chris PeBenito |
c2c00b |
allow $1 unlabeled_t:dir_file_class_set { getattr relabelfrom };
|
|
Chris PeBenito |
c6fd1f |
')
|
|
Chris PeBenito |
c6fd1f |
|
|
Chris PeBenito |
588ffa |
define(`kernel_relabel_unlabeled_depend',`
|
|
Chris PeBenito |
0c73cd |
type unlabeled_t;
|
|
Chris PeBenito |
0c73cd |
|
|
Chris PeBenito |
0c73cd |
class dir { getattr relabelfrom };
|
|
Chris PeBenito |
0c73cd |
class file { getattr relabelfrom };
|
|
Chris PeBenito |
0c73cd |
class lnk_file { getattr relabelfrom };
|
|
Chris PeBenito |
0c73cd |
class fifo_file { getattr relabelfrom };
|
|
Chris PeBenito |
0c73cd |
class sock_file { getattr relabelfrom };
|
|
Chris PeBenito |
0c73cd |
class chr_file { getattr relabelfrom };
|
|
Chris PeBenito |
0c73cd |
class blk_file { getattr relabelfrom };
|
|
Chris PeBenito |
c6fd1f |
')
|
|
Chris PeBenito |
c6fd1f |
|
|
Chris PeBenito |
c6fd1f |
########################################
|
|
Chris PeBenito |
588ffa |
## <interface name="kernel_search_usbfs">
|
|
Chris PeBenito |
f5c42b |
## <description>
|
|
Chris PeBenito |
f5c42b |
## Search the directory containing USB hardware information.
|
|
Chris PeBenito |
f5c42b |
## </description>
|
|
Chris PeBenito |
f5c42b |
## <parameter name="domain">
|
|
Chris PeBenito |
f5c42b |
## The type of the process performing this action.
|
|
Chris PeBenito |
f5c42b |
## </parameter>
|
|
Chris PeBenito |
f5c42b |
## </interface>
|
|
Chris PeBenito |
f5c42b |
#
|
|
Chris PeBenito |
588ffa |
define(`kernel_search_usbfs',`
|
|
Chris PeBenito |
0c73cd |
requires_block_template(`$0'_depend)
|
|
Chris PeBenito |
0c73cd |
|
|
Chris PeBenito |
0c73cd |
allow $1 usbfs_t:dir search;
|
|
Chris PeBenito |
f5c42b |
')
|
|
Chris PeBenito |
f5c42b |
|
|
Chris PeBenito |
588ffa |
define(`kernel_search_usbfs_depend',`
|
|
Chris PeBenito |
0c73cd |
type usbfs_t;
|
|
Chris PeBenito |
0c73cd |
|
|
Chris PeBenito |
0c73cd |
class dir search;
|
|
Chris PeBenito |
f5c42b |
')
|
|
Chris PeBenito |
f5c42b |
|
|
Chris PeBenito |
f5c42b |
########################################
|
|
Chris PeBenito |
3865d6 |
## <interface name="kernel_list_usb_hardware">
|
|
Chris PeBenito |
3865d6 |
## <description>
|
|
Chris PeBenito |
3865d6 |
## Allow caller to get a list of usb hardware.
|
|
Chris PeBenito |
3865d6 |
## </description>
|
|
Chris PeBenito |
3865d6 |
## <parameter name="domain">
|
|
Chris PeBenito |
3865d6 |
## The process type getting the list.
|
|
Chris PeBenito |
3865d6 |
## </parameter>
|
|
Chris PeBenito |
3865d6 |
## </interface>
|
|
Chris PeBenito |
b4cd15 |
#
|
|
Chris PeBenito |
b4cd15 |
define(`kernel_list_usb_hardware',`
|
|
Chris PeBenito |
0c73cd |
requires_block_template(`$0'_depend)
|
|
Chris PeBenito |
0c73cd |
|
|
Chris PeBenito |
c2c00b |
allow $1 usbfs_t:dir r_dir_perms;
|
|
Chris PeBenito |
c2c00b |
allow $1 usbfs_t:lnk_file r_file_perms;
|
|
Chris PeBenito |
0c73cd |
allow $1 usbfs_t:file getattr;
|
|
Chris PeBenito |
b4cd15 |
')
|
|
Chris PeBenito |
b4cd15 |
|
|
Chris PeBenito |
b4cd15 |
define(`kernel_list_usb_hardware_depend',`
|
|
Chris PeBenito |
0c73cd |
type usbfs_t;
|
|
Chris PeBenito |
0c73cd |
|
|
Chris PeBenito |
c2c00b |
class dir r_dir_perms;
|
|
Chris PeBenito |
0c73cd |
class file getattr;
|
|
Chris PeBenito |
c2c00b |
class lnk_file r_file_perms;
|
|
Chris PeBenito |
b4cd15 |
')
|
|
Chris PeBenito |
b4cd15 |
|
|
Chris PeBenito |
b4cd15 |
########################################
|
|
Chris PeBenito |
daa0e0 |
## <interface name="kernel_read_usb_hardware_state">
|
|
Chris PeBenito |
daa0e0 |
## <description>
|
|
Chris PeBenito |
daa0e0 |
## Read USB hardware information using
|
|
Chris PeBenito |
daa0e0 |
## the usbfs filesystem interface.
|
|
Chris PeBenito |
daa0e0 |
## </description>
|
|
Chris PeBenito |
daa0e0 |
## <parameter name="domain">
|
|
Chris PeBenito |
daa0e0 |
## The type of the process performing this action.
|
|
Chris PeBenito |
daa0e0 |
## </parameter>
|
|
Chris PeBenito |
daa0e0 |
## </interface>
|
|
Chris PeBenito |
b4cd15 |
#
|
|
Chris PeBenito |
b4cd15 |
define(`kernel_read_usb_hardware_state',`
|
|
Chris PeBenito |
0c73cd |
requires_block_template(`$0'_depend)
|
|
Chris PeBenito |
0c73cd |
|
|
Chris PeBenito |
c2c00b |
allow $1 usbfs_t:dir r_dir_perms;
|
|
Chris PeBenito |
c2c00b |
allow $1 usbfs_t:{ file lnk_file } r_file_perms;
|
|
Chris PeBenito |
b4cd15 |
')
|
|
Chris PeBenito |
b4cd15 |
|
|
Chris PeBenito |
b4cd15 |
define(`kernel_read_usb_hardware_state_depend',`
|
|
Chris PeBenito |
0c73cd |
type usbfs_t;
|
|
Chris PeBenito |
0c73cd |
|
|
Chris PeBenito |
c2c00b |
class dir r_dir_perms;
|
|
Chris PeBenito |
c2c00b |
class file r_file_perms;
|
|
Chris PeBenito |
c2c00b |
class lnk_file r_file_perms;
|
|
Chris PeBenito |
b4cd15 |
')
|
|
Chris PeBenito |
b4cd15 |
|
|
Chris PeBenito |
b4cd15 |
########################################
|
|
Chris PeBenito |
588ffa |
## <interface name="kernel_rw_usb_hardware_config_option">
|
|
Chris PeBenito |
3865d6 |
## <description>
|
|
Chris PeBenito |
3865d6 |
## Allow caller to modify usb hardware configuration files.
|
|
Chris PeBenito |
3865d6 |
## </description>
|
|
Chris PeBenito |
3865d6 |
## <parameter name="domain">
|
|
Chris PeBenito |
3865d6 |
## The process type modifying the options.
|
|
Chris PeBenito |
3865d6 |
## </parameter>
|
|
Chris PeBenito |
3865d6 |
## </interface>
|
|
Chris PeBenito |
b4cd15 |
#
|
|
Chris PeBenito |
588ffa |
define(`kernel_rw_usb_hardware_config_option',`
|
|
Chris PeBenito |
0c73cd |
requires_block_template(`$0'_depend)
|
|
Chris PeBenito |
0c73cd |
|
|
Chris PeBenito |
c2c00b |
allow $1 usbfs_t:dir r_dir_perms;
|
|
Chris PeBenito |
c2c00b |
allow $1 usbfs_t:lnk_file r_file_perms;
|
|
Chris PeBenito |
c2c00b |
allow $1 usbfs_t:file rw_file_perms;
|
|
Chris PeBenito |
b4cd15 |
')
|
|
Chris PeBenito |
b4cd15 |
|
|
Chris PeBenito |
588ffa |
define(`kernel_rw_usb_hardware_config_option_depend',`
|
|
Chris PeBenito |
0c73cd |
type usbfs_t;
|
|
Chris PeBenito |
0c73cd |
|
|
Chris PeBenito |
c2c00b |
class dir r_dir_perms;
|
|
Chris PeBenito |
c2c00b |
class file rw_file_perms;
|
|
Chris PeBenito |
c2c00b |
class lnk_file r_file_perms;
|
|
Chris PeBenito |
b4cd15 |
')
|
|
Chris PeBenito |
b4cd15 |
|
|
Chris PeBenito |
e32d52 |
## </module>
|