2005-06-01 14:17:43 +00:00
|
|
|
## <module name="kernel" layer="kernel">
|
|
|
|
## <summary>
|
|
|
|
## Policy for kernel threads, security interface (selinuxfs),
|
|
|
|
## proc filesystem, sysfs filesystem, and usb device filesystem.
|
|
|
|
## </summary>
|
2005-04-20 19:07:16 +00:00
|
|
|
|
2005-05-13 20:21:50 +00:00
|
|
|
########################################
|
2005-06-07 22:36:07 +00:00
|
|
|
## <interface name="kernel_make_userland_entrypoint">
|
|
|
|
## <description>
|
|
|
|
## Gives kernel an entrypoint to the caller via
|
|
|
|
## the entrypoint type.
|
|
|
|
## </description>
|
|
|
|
## <parameter name="domain">
|
|
|
|
## The process type entered by kernel.
|
|
|
|
## </parameter>
|
|
|
|
## <parameter name="entrypoint">
|
|
|
|
## The executable type for the entrypoint.
|
|
|
|
## </parameter>
|
|
|
|
## </interface>
|
2005-05-13 20:21:50 +00:00
|
|
|
#
|
|
|
|
define(`kernel_make_userland_entrypoint',`
|
2005-06-03 12:25:14 +00:00
|
|
|
requires_block_template(`$0'_depend)
|
|
|
|
|
2005-06-08 20:28:45 +00:00
|
|
|
domain_auto_trans(kernel_t, $2, $1)
|
2005-06-03 12:25:14 +00:00
|
|
|
|
|
|
|
allow $1 kernel_t:fd use;
|
|
|
|
allow kernel_t $1:fd use;
|
|
|
|
allow kernel_t $1:fifo_file rw_file_perms;
|
|
|
|
allow $1 kernel_t:process sigchld;
|
2005-05-13 20:21:50 +00:00
|
|
|
')
|
|
|
|
|
|
|
|
define(`kernel_make_userland_entrypoint_depend',`
|
2005-06-03 12:25:14 +00:00
|
|
|
type kernel_t;
|
|
|
|
|
|
|
|
class process { transition noatsecure siginh rlimitinh sigchld };
|
|
|
|
class file { getattr read execute };
|
|
|
|
class fifo_file rw_file_perms;
|
|
|
|
class fd use;
|
2005-05-13 20:21:50 +00:00
|
|
|
')
|
|
|
|
|
2005-04-14 20:18:17 +00:00
|
|
|
########################################
|
2005-06-07 22:36:07 +00:00
|
|
|
## <interface name="kernel_share_state">
|
|
|
|
## <description>
|
|
|
|
## Allows the kernel to share state information with
|
|
|
|
## the caller.
|
|
|
|
## </description>
|
|
|
|
## <parameter name="domain">
|
|
|
|
## The type of the process with which to share state information.
|
|
|
|
## </parameter>
|
|
|
|
## </interface>
|
2005-04-14 20:18:17 +00:00
|
|
|
#
|
|
|
|
define(`kernel_share_state',`
|
2005-06-03 12:25:14 +00:00
|
|
|
requires_block_template(`$0'_depend)
|
|
|
|
|
|
|
|
allow kernel_t $1:process share;
|
2005-04-14 20:18:17 +00:00
|
|
|
')
|
|
|
|
|
|
|
|
define(`kernel_share_state_depend',`
|
2005-06-03 12:25:14 +00:00
|
|
|
type kernel_t;
|
|
|
|
|
|
|
|
class process share;
|
2005-04-14 20:18:17 +00:00
|
|
|
')
|
|
|
|
|
|
|
|
########################################
|
2005-06-07 22:36:07 +00:00
|
|
|
## <interface name="kernel_use_file_descriptors">
|
|
|
|
## <description>
|
|
|
|
## Permits caller to use kernel file descriptors.
|
|
|
|
## </description>
|
|
|
|
## <parameter name="domain">
|
|
|
|
## The type of the process using the descriptors.
|
|
|
|
## </parameter>
|
|
|
|
## </interface>
|
2005-04-14 20:18:17 +00:00
|
|
|
#
|
2005-04-28 18:59:01 +00:00
|
|
|
define(`kernel_use_file_descriptors',`
|
2005-06-03 12:25:14 +00:00
|
|
|
requires_block_template(`$0'_depend)
|
|
|
|
|
|
|
|
allow $1 kernel_t:fd use;
|
2005-04-14 20:18:17 +00:00
|
|
|
')
|
|
|
|
|
2005-04-28 18:59:01 +00:00
|
|
|
define(`kernel_use_file_descriptors_depend',`
|
2005-06-03 12:25:14 +00:00
|
|
|
type kernel_t;
|
|
|
|
|
|
|
|
class fd use;
|
2005-04-28 21:41:09 +00:00
|
|
|
')
|
|
|
|
|
|
|
|
########################################
|
2005-06-07 22:36:07 +00:00
|
|
|
## <interface name="kernel_ignore_use_file_descriptors">
|
|
|
|
## <description>
|
|
|
|
## Do not audit attempts by the caller to use
|
|
|
|
## kernel file descriptors.
|
|
|
|
## </description>
|
|
|
|
## <parameter name="domain">
|
|
|
|
## The type of process not to audit.
|
|
|
|
## </parameter>
|
|
|
|
## </interface>
|
2005-04-28 21:41:09 +00:00
|
|
|
#
|
|
|
|
define(`kernel_ignore_use_file_descriptors',`
|
2005-06-03 12:25:14 +00:00
|
|
|
requires_block_template(`$0'_depend)
|
|
|
|
|
|
|
|
dontaudit $1 kernel_t:fd use;
|
2005-04-28 21:41:09 +00:00
|
|
|
')
|
|
|
|
|
|
|
|
define(`kernel_ignore_use_file_descriptors_depend',`
|
2005-06-03 12:25:14 +00:00
|
|
|
type kernel_t;
|
|
|
|
|
|
|
|
class fd use;
|
2005-04-14 20:18:17 +00:00
|
|
|
')
|
|
|
|
|
|
|
|
########################################
|
2005-06-08 13:12:00 +00:00
|
|
|
## <interface name="kernel_make_root_fs_mountpoint">
|
2005-06-07 22:36:07 +00:00
|
|
|
## <description>
|
|
|
|
## Allows the kernel to mount filesystems on
|
|
|
|
## the caller.
|
|
|
|
## </description>
|
|
|
|
## <parameter name="mountpoint">
|
|
|
|
## The type of the directory to use as a mountpoint.
|
|
|
|
## </parameter>
|
|
|
|
## </interface>
|
2005-04-14 20:18:17 +00:00
|
|
|
#
|
2005-06-08 13:12:00 +00:00
|
|
|
define(`kernel_make_root_fs_mountpoint',`
|
2005-06-03 12:25:14 +00:00
|
|
|
requires_block_template(`$0'_depend)
|
|
|
|
|
|
|
|
allow kernel_t $1:dir mounton;
|
2005-04-14 20:18:17 +00:00
|
|
|
')
|
|
|
|
|
2005-06-08 13:12:00 +00:00
|
|
|
define(`kernel_make_root_fs_mountpoint_depend',`
|
2005-06-03 12:25:14 +00:00
|
|
|
type kernel_t;
|
|
|
|
|
|
|
|
class dir mounton;
|
2005-04-14 20:18:17 +00:00
|
|
|
')
|
|
|
|
|
2005-05-09 17:41:29 +00:00
|
|
|
########################################
|
2005-06-07 22:36:07 +00:00
|
|
|
## <interface name="kernel_make_process_identity_change_constraint_exception">
|
|
|
|
## <description>
|
|
|
|
## Makes caller an exception to the constraint preventing
|
|
|
|
## changing of user identity.
|
|
|
|
## </description>
|
|
|
|
## <parameter name="domain">
|
|
|
|
## The process type to make an exception to the constraint.
|
|
|
|
## </parameter>
|
|
|
|
## </interface>
|
2005-05-09 17:41:29 +00:00
|
|
|
#
|
|
|
|
define(`kernel_make_process_identity_change_constraint_exception',`
|
2005-06-03 12:25:14 +00:00
|
|
|
requires_block_template(`$0'_depend)
|
|
|
|
|
|
|
|
typeattribute $1 can_change_process_identity;
|
2005-05-09 17:41:29 +00:00
|
|
|
')
|
|
|
|
|
|
|
|
define(`kernel_make_process_identity_change_constraint_exception_depend',`
|
2005-06-03 12:25:14 +00:00
|
|
|
attribute can_change_process_identity;
|
2005-05-09 17:41:29 +00:00
|
|
|
')
|
|
|
|
|
|
|
|
########################################
|
2005-06-07 22:36:07 +00:00
|
|
|
## <interface name="kernel_make_role_change_constraint_exception">
|
|
|
|
## <description>
|
|
|
|
## Makes caller an exception to the constraint preventing
|
|
|
|
## changing of role.
|
|
|
|
## </description>
|
|
|
|
## <parameter name="domain">
|
|
|
|
## The process type to make an exception to the constraint.
|
|
|
|
## </parameter>
|
|
|
|
## </interface>
|
2005-05-09 17:41:29 +00:00
|
|
|
#
|
|
|
|
define(`kernel_make_role_change_constraint_exception',`
|
2005-06-03 12:25:14 +00:00
|
|
|
requires_block_template(`$0'_depend)
|
|
|
|
|
|
|
|
typeattribute $1 can_change_process_role;
|
2005-05-09 17:41:29 +00:00
|
|
|
')
|
|
|
|
|
|
|
|
define(`kernel_make_role_change_constraint_exception_depend',`
|
2005-06-03 12:25:14 +00:00
|
|
|
attribute can_change_process_role;
|
2005-05-09 17:41:29 +00:00
|
|
|
')
|
|
|
|
|
|
|
|
########################################
|
2005-06-07 22:36:07 +00:00
|
|
|
## <interface name="kernel_make_object_identity_change_constraint_exception">
|
|
|
|
## <description>
|
|
|
|
## Makes caller an exception to the constraint preventing
|
|
|
|
## changing the user identity in object contexts.
|
|
|
|
## </description>
|
|
|
|
## <parameter name="domain">
|
|
|
|
## The process type to make an exception to the constraint.
|
|
|
|
## </parameter>
|
|
|
|
## </interface>
|
2005-05-09 17:41:29 +00:00
|
|
|
#
|
|
|
|
define(`kernel_make_object_identity_change_constraint_exception',`
|
2005-06-03 12:25:14 +00:00
|
|
|
requires_block_template(`$0'_depend)
|
|
|
|
|
|
|
|
typeattribute $1 can_change_object_identity;
|
2005-05-09 17:41:29 +00:00
|
|
|
')
|
|
|
|
|
|
|
|
define(`kernel_make_object_identity_change_constraint_exception_depend',`
|
2005-06-03 12:25:14 +00:00
|
|
|
attribute can_change_object_identity;
|
2005-05-09 17:41:29 +00:00
|
|
|
')
|
|
|
|
|
2005-04-14 20:18:17 +00:00
|
|
|
########################################
|
2005-06-07 22:36:07 +00:00
|
|
|
##
|
|
|
|
## <interface name="kernel_load_module">
|
|
|
|
## <description>
|
|
|
|
## Allows caller to load kernel modules
|
|
|
|
## </description>
|
|
|
|
## <parameter name="domain">
|
|
|
|
## The process type to allow to load kernel modules.
|
|
|
|
## </parameter>
|
|
|
|
## </interface>
|
2005-04-14 20:18:17 +00:00
|
|
|
#
|
|
|
|
define(`kernel_load_module',`
|
2005-06-03 12:25:14 +00:00
|
|
|
requires_block_template(`$0'_depend)
|
|
|
|
|
|
|
|
allow $1 self:capability sys_module;
|
|
|
|
typeattribute $1 can_load_kernmodule;
|
2005-04-14 20:18:17 +00:00
|
|
|
')
|
|
|
|
|
|
|
|
define(`kernel_load_module_depend',`
|
2005-06-03 12:25:14 +00:00
|
|
|
attribute can_load_kernmodule;
|
|
|
|
|
|
|
|
class capability sys_module;
|
2005-04-14 20:18:17 +00:00
|
|
|
')
|
|
|
|
|
|
|
|
########################################
|
2005-06-07 22:36:07 +00:00
|
|
|
##
|
|
|
|
## <interface name="kernel_get_selinux_enforcement_mode">
|
|
|
|
## <description>
|
|
|
|
## Allows the caller to get the mode of policy enforcement
|
|
|
|
## (enforcing or permissive mode).
|
|
|
|
## </description>
|
|
|
|
## <parameter name="domain">
|
|
|
|
## The process type to allow to get the enforcing mode.
|
|
|
|
## </parameter>
|
|
|
|
## </interface>
|
2005-04-14 20:18:17 +00:00
|
|
|
#
|
|
|
|
define(`kernel_get_selinux_enforcement_mode',`
|
2005-06-03 12:25:14 +00:00
|
|
|
requires_block_template(`$0'_depend)
|
|
|
|
|
|
|
|
allow $1 security_t:dir { read search getattr };
|
|
|
|
allow $1 security_t:file { getattr read };
|
2005-04-14 20:18:17 +00:00
|
|
|
')
|
|
|
|
|
|
|
|
define(`kernel_get_selinux_enforcement_mode_depend',`
|
2005-06-03 12:25:14 +00:00
|
|
|
type security_t;
|
|
|
|
|
|
|
|
class dir { read search getattr };
|
|
|
|
class file { getattr read };
|
2005-04-14 20:18:17 +00:00
|
|
|
')
|
|
|
|
|
|
|
|
########################################
|
2005-06-07 22:36:07 +00:00
|
|
|
## <interface name="kernel_set_selinux_enforcement_mode">
|
|
|
|
## <description>
|
|
|
|
## Allow caller to set the mode of policy enforcement
|
|
|
|
## (enforcing or permissive mode).
|
|
|
|
## </description>
|
|
|
|
## <parameter name="domain">
|
|
|
|
## The process type to allow to set the enforcement mode.
|
|
|
|
## </parameter>
|
|
|
|
## </interface>
|
2005-04-14 20:18:17 +00:00
|
|
|
#
|
|
|
|
define(`kernel_set_selinux_enforcement_mode',`
|
2005-06-03 12:25:14 +00:00
|
|
|
requires_block_template(`$0'_depend)
|
|
|
|
|
|
|
|
allow $1 security_t:dir { read search getattr };
|
|
|
|
allow $1 security_t:file { getattr read write };
|
|
|
|
allow $1 security_t:security setenforce;
|
|
|
|
auditallow $1 security_t:security setenforce;
|
|
|
|
typeattribute $1 can_setenforce;
|
2005-04-14 20:18:17 +00:00
|
|
|
')
|
|
|
|
|
|
|
|
define(`kernel_set_selinux_enforcement_mode_depend',`
|
2005-06-03 12:25:14 +00:00
|
|
|
type security_t;
|
|
|
|
|
|
|
|
attribute can_setenforce;
|
|
|
|
|
|
|
|
class dir { read search getattr };
|
|
|
|
class file { getattr read write };
|
|
|
|
class security setenforce;
|
2005-04-14 20:18:17 +00:00
|
|
|
')
|
|
|
|
|
|
|
|
########################################
|
2005-06-07 22:36:07 +00:00
|
|
|
## <interface name="kernel_load_selinux_policy">
|
|
|
|
## <description>
|
|
|
|
## Allow caller to load the policy into the kernel.
|
|
|
|
## </description>
|
|
|
|
## <securitydesc>
|
|
|
|
## Caller can replace the policy being enforced.
|
|
|
|
## </securitydesc>
|
|
|
|
## <parameter name="domain">
|
|
|
|
## The process type that will load the policy.
|
|
|
|
## </parameter>
|
|
|
|
## </interface>
|
2005-04-14 20:18:17 +00:00
|
|
|
#
|
|
|
|
define(`kernel_load_selinux_policy',`
|
2005-06-03 12:25:14 +00:00
|
|
|
requires_block_template(`$0'_depend)
|
|
|
|
|
|
|
|
allow $1 security_t:dir { read search getattr };
|
|
|
|
allow $1 security_t:file { getattr read write };
|
|
|
|
allow $1 security_t:security load_policy;
|
|
|
|
auditallow $1 security_t:security load_policy;
|
|
|
|
typeattribute $1 can_load_policy;
|
2005-04-14 20:18:17 +00:00
|
|
|
')
|
|
|
|
|
|
|
|
define(`kernel_load_selinux_policy_depend',`
|
2005-06-03 12:25:14 +00:00
|
|
|
type security_t;
|
|
|
|
|
|
|
|
attribute can_load_policy;
|
|
|
|
|
|
|
|
class dir { read search getattr };
|
|
|
|
class file { getattr read write };
|
|
|
|
class security load_policy;
|
2005-04-14 20:18:17 +00:00
|
|
|
')
|
|
|
|
|
|
|
|
########################################
|
2005-06-07 22:36:07 +00:00
|
|
|
## <interface name="kernel_set_selinux_boolean">
|
|
|
|
## <description>
|
|
|
|
## Allow caller to set the state of Booleans to
|
|
|
|
## enable or disable conditional portions of the policy.
|
|
|
|
## </description>
|
|
|
|
## <securitydesc>
|
|
|
|
## Caller can change which of the conditional portions of
|
|
|
|
## the policy are being enforced.
|
|
|
|
## </securitydesc>
|
|
|
|
## <parameter name="domain">
|
|
|
|
## The process type allowed to set the Boolean.
|
|
|
|
## </parameter>
|
|
|
|
## <parameter name="booltype" optional="true">
|
|
|
|
## The type of Booleans the caller is allowed to set.
|
|
|
|
## </parameter>
|
|
|
|
## </interface>
|
2005-04-14 20:18:17 +00:00
|
|
|
#
|
|
|
|
define(`kernel_set_selinux_boolean',`
|
2005-06-03 12:25:14 +00:00
|
|
|
requires_block_template(`$0'_depend)
|
|
|
|
|
|
|
|
ifelse(`$2',`',`
|
|
|
|
allow $1 security_t:dir { getattr search read };
|
|
|
|
allow $1 security_t:file { getattr read write };
|
|
|
|
',`
|
|
|
|
allow $1 $2:dir { getattr search read };
|
|
|
|
allow $1 $2:file { getattr read write };
|
|
|
|
')
|
|
|
|
|
|
|
|
allow $1 security_t:dir search;
|
|
|
|
allow $1 security_t:security setbool;
|
|
|
|
auditallow $1 security_t:security setbool;
|
2005-04-14 20:18:17 +00:00
|
|
|
')
|
|
|
|
|
|
|
|
define(`kernel_set_selinux_boolean_depend',`
|
2005-06-03 12:25:14 +00:00
|
|
|
type security_t;
|
|
|
|
|
|
|
|
class dir { read search getattr };
|
|
|
|
class file { getattr read write };
|
|
|
|
class security setbool;
|
2005-04-14 20:18:17 +00:00
|
|
|
')
|
|
|
|
|
|
|
|
########################################
|
2005-06-07 22:36:07 +00:00
|
|
|
## <interface name="kernel_set_selinux_security_parameters">
|
|
|
|
## <description>
|
|
|
|
## Allow caller to set selinux security parameters.
|
|
|
|
## </description>
|
|
|
|
## <securitydesc>
|
|
|
|
## Caller can change security parameters.
|
|
|
|
## </securitydesc>
|
|
|
|
## <parameter name="domain">
|
|
|
|
## The process type to allow to set security parameters.
|
|
|
|
## </parameter>
|
|
|
|
## </interface>
|
2005-04-14 20:18:17 +00:00
|
|
|
#
|
2005-05-18 13:22:37 +00:00
|
|
|
define(`kernel_set_selinux_security_parameters',`
|
2005-06-03 12:25:14 +00:00
|
|
|
requires_block_template(`$0'_depend)
|
|
|
|
|
|
|
|
allow $1 security_t:dir { read search getattr };
|
|
|
|
allow $1 security_t:file { getattr read write };
|
|
|
|
allow $1 security_t:security setsecparam;
|
|
|
|
auditallow $1 security_t:security setsecparam;
|
|
|
|
typeattribute $1 can_setsecparam;
|
2005-04-14 20:18:17 +00:00
|
|
|
')
|
|
|
|
|
2005-05-18 13:22:37 +00:00
|
|
|
define(`kernel_set_selinux_security_parameters_depend',`
|
2005-06-03 12:25:14 +00:00
|
|
|
type security_t;
|
|
|
|
|
|
|
|
attribute can_setsecparam;
|
|
|
|
|
|
|
|
class dir { read search getattr };
|
|
|
|
class file { getattr read write };
|
|
|
|
class security setsecparam;
|
2005-04-14 20:18:17 +00:00
|
|
|
')
|
|
|
|
|
|
|
|
########################################
|
2005-06-07 22:36:07 +00:00
|
|
|
## <interface name="kernel_validate_selinux_context">
|
|
|
|
## <description>
|
|
|
|
## Allows caller to validate security contexts.
|
|
|
|
## </description>
|
|
|
|
## <securitydesc>
|
|
|
|
##
|
|
|
|
## </securitydesc>
|
|
|
|
## <parameter name="domain">
|
|
|
|
## The process type permitted to validate contexts.
|
|
|
|
## </parameter>
|
|
|
|
## </interface>
|
2005-04-14 20:18:17 +00:00
|
|
|
#
|
|
|
|
define(`kernel_validate_selinux_context',`
|
2005-06-03 12:25:14 +00:00
|
|
|
requires_block_template(`$0'_depend)
|
|
|
|
|
|
|
|
allow $1 security_t:dir { read search getattr };
|
|
|
|
allow $1 security_t:file { getattr read write };
|
|
|
|
allow $1 security_t:security check_context;
|
2005-04-14 20:18:17 +00:00
|
|
|
')
|
|
|
|
|
|
|
|
define(`kernel_validate_selinux_context_depend',`
|
2005-06-03 12:25:14 +00:00
|
|
|
type security_t;
|
|
|
|
|
|
|
|
class dir { read search getattr };
|
|
|
|
class file { getattr read write };
|
|
|
|
class security check_context;
|
2005-04-14 20:18:17 +00:00
|
|
|
')
|
|
|
|
|
|
|
|
########################################
|
2005-06-07 22:36:07 +00:00
|
|
|
## <interface name="kernel_compute_selinux_access_vector">
|
|
|
|
## <description>
|
|
|
|
## Allows caller to compute an access vector.
|
|
|
|
## </description>
|
|
|
|
## <securitydesc>
|
|
|
|
##
|
|
|
|
## </securitydesc>
|
|
|
|
## <parameter name="domain">
|
|
|
|
## The process type allowed to compute an access vector.
|
|
|
|
## </parameter>
|
|
|
|
## </interface>
|
2005-04-14 20:18:17 +00:00
|
|
|
#
|
2005-05-18 13:22:37 +00:00
|
|
|
define(`kernel_compute_selinux_access_vector',`
|
2005-06-03 12:25:14 +00:00
|
|
|
requires_block_template(`$0'_depend)
|
|
|
|
|
|
|
|
allow $1 security_t:dir { read search getattr };
|
|
|
|
allow $1 security_t:file { getattr read write };
|
|
|
|
allow $1 security_t:security compute_av;
|
2005-04-14 20:18:17 +00:00
|
|
|
')
|
|
|
|
|
2005-05-18 13:22:37 +00:00
|
|
|
define(`kernel_compute_selinux_access_vector_depend',`
|
2005-06-03 12:25:14 +00:00
|
|
|
type security_t;
|
|
|
|
|
|
|
|
class dir { read search getattr };
|
|
|
|
class file { getattr read write };
|
|
|
|
class security compute_av;
|
2005-04-14 20:18:17 +00:00
|
|
|
')
|
|
|
|
|
|
|
|
########################################
|
2005-06-07 22:36:07 +00:00
|
|
|
## <interface name="kernel_compute_selinux_create_context">
|
|
|
|
## <description>
|
|
|
|
##
|
|
|
|
## </description>
|
|
|
|
## <securitydesc>
|
|
|
|
##
|
|
|
|
## </securitydesc>
|
|
|
|
## <parameter name="domain">
|
|
|
|
##
|
|
|
|
## </parameter>
|
|
|
|
## </interface>
|
2005-04-14 20:18:17 +00:00
|
|
|
#
|
2005-05-18 13:22:37 +00:00
|
|
|
define(`kernel_compute_selinux_create_context',`
|
2005-06-03 12:25:14 +00:00
|
|
|
requires_block_template(`$0'_depend)
|
|
|
|
|
|
|
|
allow $1 security_t:dir { read search getattr };
|
|
|
|
allow $1 security_t:file { getattr read write };
|
|
|
|
allow $1 security_t:security compute_create;
|
2005-04-14 20:18:17 +00:00
|
|
|
')
|
|
|
|
|
2005-05-18 13:22:37 +00:00
|
|
|
define(`kernel_compute_selinux_create_context_depend',`
|
2005-06-03 12:25:14 +00:00
|
|
|
type security_t;
|
|
|
|
|
|
|
|
class dir { read search getattr };
|
|
|
|
class file { getattr read write };
|
|
|
|
class security compute_create;
|
2005-04-14 20:18:17 +00:00
|
|
|
')
|
|
|
|
|
|
|
|
########################################
|
2005-06-07 22:36:07 +00:00
|
|
|
## <interface name="kernel_compute_selinux_relabel_context">
|
|
|
|
## <description>
|
|
|
|
##
|
|
|
|
## </description>
|
|
|
|
## <securitydesc>
|
|
|
|
##
|
|
|
|
## </securitydesc>
|
|
|
|
## <parameter name="domain">
|
|
|
|
## The process type to
|
|
|
|
## </parameter>
|
|
|
|
## </interface>
|
2005-04-14 20:18:17 +00:00
|
|
|
#
|
2005-05-18 13:22:37 +00:00
|
|
|
define(`kernel_compute_selinux_relabel_context',`
|
2005-06-03 12:25:14 +00:00
|
|
|
requires_block_template(`$0'_depend)
|
|
|
|
|
|
|
|
allow $1 security_t:dir { read search getattr };
|
|
|
|
allow $1 security_t:file { getattr read write };
|
|
|
|
allow $1 security_t:security compute_relabel;
|
2005-04-14 20:18:17 +00:00
|
|
|
')
|
|
|
|
|
2005-05-18 13:22:37 +00:00
|
|
|
define(`kernel_compute_selinux_relabel_context_depend',`
|
2005-06-03 12:25:14 +00:00
|
|
|
type security_t;
|
|
|
|
|
|
|
|
class dir { read search getattr };
|
|
|
|
class file { getattr read write };
|
|
|
|
class security compute_relabel;
|
2005-04-14 20:18:17 +00:00
|
|
|
')
|
|
|
|
|
|
|
|
########################################
|
2005-06-07 22:36:07 +00:00
|
|
|
## <interface name="kernel_compute_selinux_reachable_user_contexts">
|
|
|
|
## <description>
|
|
|
|
## Allows caller to compute possible contexts for a user.
|
|
|
|
## </description>
|
|
|
|
## <securitydesc>
|
|
|
|
##
|
|
|
|
## </securitydesc>
|
|
|
|
## <parameter name="domain">
|
|
|
|
## The process type allowed to compute user contexts.
|
|
|
|
## </parameter>
|
|
|
|
## </interface>
|
2005-04-14 20:18:17 +00:00
|
|
|
#
|
2005-05-18 13:22:37 +00:00
|
|
|
define(`kernel_compute_selinux_reachable_user_contexts',`
|
2005-06-03 12:25:14 +00:00
|
|
|
requires_block_template(`$0'_depend)
|
|
|
|
|
|
|
|
allow $1 security_t:dir { read search getattr };
|
|
|
|
allow $1 security_t:file { getattr read write };
|
|
|
|
allow $1 security_t:security compute_user;
|
2005-04-14 20:18:17 +00:00
|
|
|
')
|
|
|
|
|
2005-05-18 13:22:37 +00:00
|
|
|
define(`kernel_compute_selinux_reachable_user_contexts_depend',`
|
2005-06-03 12:25:14 +00:00
|
|
|
type security_t;
|
|
|
|
|
|
|
|
class dir { read search getattr };
|
|
|
|
class file { getattr read write };
|
|
|
|
class security compute_user;
|
2005-04-14 20:18:17 +00:00
|
|
|
')
|
|
|
|
|
|
|
|
########################################
|
2005-06-07 22:36:07 +00:00
|
|
|
## <interface name="kernel_read_ring_buffer">
|
|
|
|
## <description>
|
|
|
|
## Allows caller to read the ring buffer.
|
|
|
|
## </description>
|
|
|
|
## <securitydesc>
|
|
|
|
## Buffer read could have sensitive information from multiple doamins.
|
|
|
|
## </securitydesc>
|
|
|
|
## <parameter name="domain">
|
|
|
|
## The process type allowed to read the ring buffer.
|
|
|
|
## </parameter>
|
|
|
|
## </interface>
|
2005-04-14 20:18:17 +00:00
|
|
|
#
|
|
|
|
define(`kernel_read_ring_buffer',`
|
2005-06-03 12:25:14 +00:00
|
|
|
requires_block_template(`$0'_depend)
|
|
|
|
|
|
|
|
allow $1 kernel_t:system syslog_read;
|
2005-04-14 20:18:17 +00:00
|
|
|
')
|
|
|
|
|
|
|
|
define(`kernel_read_ring_buffer_depend',`
|
2005-06-03 12:25:14 +00:00
|
|
|
type kernel_t;
|
|
|
|
|
|
|
|
class system syslog_read;
|
2005-04-14 20:18:17 +00:00
|
|
|
')
|
|
|
|
|
2005-05-16 21:10:33 +00:00
|
|
|
########################################
|
2005-06-07 22:36:07 +00:00
|
|
|
## <interface name="kernel_ignore_read_ring_buffer">
|
|
|
|
## <description>
|
|
|
|
## Ignore attempts by caller to read the ring buffer.
|
|
|
|
## </description>
|
|
|
|
## <securitydesc>
|
|
|
|
## Causes attepts to read potentially sensitive information
|
|
|
|
## from being audited.
|
|
|
|
## </securitydesc>
|
|
|
|
## <parameter name="domain">
|
|
|
|
## The domain to not audit.
|
|
|
|
## </parameter>
|
|
|
|
## </interface>
|
2005-05-16 21:10:33 +00:00
|
|
|
#
|
|
|
|
define(`kernel_ignore_read_ring_buffer',`
|
2005-06-03 12:25:14 +00:00
|
|
|
requires_block_template(`$0'_depend)
|
|
|
|
|
|
|
|
dontaudit $1 kernel_t:system syslog_read;
|
2005-05-16 21:10:33 +00:00
|
|
|
')
|
|
|
|
|
|
|
|
define(`kernel_ignore_read_ring_buffer_depend',`
|
2005-06-03 12:25:14 +00:00
|
|
|
type kernel_t;
|
|
|
|
|
|
|
|
class system syslog_read;
|
2005-05-16 21:10:33 +00:00
|
|
|
')
|
|
|
|
|
2005-04-14 20:18:17 +00:00
|
|
|
########################################
|
2005-06-07 22:36:07 +00:00
|
|
|
## <interface name="kernel_change_ring_buffer_level">
|
|
|
|
## <description>
|
|
|
|
##
|
|
|
|
## </description>
|
|
|
|
## <securitydesc>
|
|
|
|
##
|
|
|
|
## </securitydesc>
|
|
|
|
## <parameter name="domain">
|
|
|
|
##
|
|
|
|
## </parameter>
|
|
|
|
## </interface>
|
2005-04-14 20:18:17 +00:00
|
|
|
#
|
|
|
|
define(`kernel_change_ring_buffer_level',`
|
2005-06-03 12:25:14 +00:00
|
|
|
requires_block_template(`$0'_depend)
|
|
|
|
|
|
|
|
allow $1 kernel_t:system syslog_console;
|
2005-04-14 20:18:17 +00:00
|
|
|
')
|
|
|
|
|
|
|
|
define(`kernel_change_ring_buffer_level_depend',`
|
2005-06-03 12:25:14 +00:00
|
|
|
type kernel_t;
|
|
|
|
|
|
|
|
class system syslog_console;
|
2005-04-14 20:18:17 +00:00
|
|
|
')
|
|
|
|
|
|
|
|
########################################
|
2005-06-07 22:36:07 +00:00
|
|
|
## <interface name="kernel_clear_ring_buffer">
|
|
|
|
## <description>
|
|
|
|
## Allows the caller to clear the ring buffer.
|
|
|
|
## </description>
|
|
|
|
## <securitydesc>
|
|
|
|
##
|
|
|
|
## </securitydesc>
|
|
|
|
## <parameter name="domain">
|
|
|
|
## The process type clearing the buffer.
|
|
|
|
## </parameter>
|
|
|
|
## </interface>
|
2005-04-14 20:18:17 +00:00
|
|
|
#
|
|
|
|
define(`kernel_clear_ring_buffer',`
|
2005-06-03 12:25:14 +00:00
|
|
|
requires_block_template(`$0'_depend)
|
|
|
|
|
|
|
|
allow $1 kernel_t:system syslog_mod;
|
2005-04-14 20:18:17 +00:00
|
|
|
')
|
|
|
|
|
|
|
|
define(`kernel_clear_ring_buffer_depend',`
|
2005-06-03 12:25:14 +00:00
|
|
|
type kernel_t;
|
|
|
|
|
|
|
|
class system syslog_mod;
|
2005-04-14 20:18:17 +00:00
|
|
|
')
|
|
|
|
|
|
|
|
########################################
|
2005-06-07 22:36:07 +00:00
|
|
|
## <interface name="kernel_get_sysvipc_info">
|
|
|
|
## <description>
|
|
|
|
## Allow caller to get information about an ipc socket.
|
|
|
|
## </description>
|
|
|
|
## <securitydesc>
|
|
|
|
##
|
|
|
|
## </securitydesc>
|
|
|
|
## <parameter name="domain">
|
|
|
|
##
|
|
|
|
## </parameter>
|
|
|
|
## </interface>
|
2005-04-14 20:18:17 +00:00
|
|
|
#
|
|
|
|
define(`kernel_get_sysvipc_info',`
|
2005-06-03 12:25:14 +00:00
|
|
|
requires_block_template(`$0'_depend)
|
|
|
|
|
|
|
|
allow $1 kernel_t:system ipc_info;
|
2005-04-14 20:18:17 +00:00
|
|
|
')
|
|
|
|
|
|
|
|
define(`kernel_get_sysvipc_info_depend',`
|
2005-06-03 12:25:14 +00:00
|
|
|
type kernel_t;
|
|
|
|
|
|
|
|
class system ipc_info;
|
2005-04-14 20:18:17 +00:00
|
|
|
')
|
|
|
|
|
|
|
|
########################################
|
2005-06-07 22:36:07 +00:00
|
|
|
## <interface name="kernel_get_selinuxfs_mount_point">
|
|
|
|
## <description>
|
|
|
|
## Gets the caller the mountpoint of the selinuxfs filesystem.
|
|
|
|
## </description>
|
|
|
|
## <securitydesc>
|
|
|
|
##
|
|
|
|
## </securitydesc>
|
|
|
|
## <parameter name="domain">
|
|
|
|
## The process type requesting the selinuxfs mountpoint.
|
|
|
|
## </parameter>
|
|
|
|
## </interface>
|
2005-04-14 20:18:17 +00:00
|
|
|
#
|
|
|
|
define(`kernel_get_selinuxfs_mount_point',`
|
2005-06-03 12:25:14 +00:00
|
|
|
requires_block_template(`$0'_depend)
|
|
|
|
|
|
|
|
allow $1 proc_t:dir search;
|
|
|
|
allow $1 proc_t:{ file lnk_file } read;
|
|
|
|
allow $1 self:dir search;
|
|
|
|
allow $1 self:file { getattr read };
|
2005-04-14 20:18:17 +00:00
|
|
|
')
|
|
|
|
|
2005-05-02 19:19:06 +00:00
|
|
|
define(`kernel_get_selinuxfs_mount_point_depend',`
|
2005-06-03 12:25:14 +00:00
|
|
|
type proc_t;
|
|
|
|
|
|
|
|
class dir search;
|
|
|
|
class lnk_file read;
|
|
|
|
class file { getattr read };
|
2005-04-14 20:18:17 +00:00
|
|
|
')
|
|
|
|
|
|
|
|
########################################
|
2005-06-07 22:36:07 +00:00
|
|
|
## <interface name="kernel_read_system_state">
|
|
|
|
## <description>
|
|
|
|
## Allows caller to read system state information.
|
|
|
|
## </description>
|
|
|
|
## <securitydesc>
|
|
|
|
## State data contains information about multiple domains and may be privlaged.
|
|
|
|
## </securitydesc>
|
|
|
|
## <parameter name="domain">
|
|
|
|
## The process type reading the system state information.
|
|
|
|
## </parameter>
|
|
|
|
## </interface>
|
2005-04-14 20:18:17 +00:00
|
|
|
#
|
|
|
|
define(`kernel_read_system_state',`
|
2005-06-03 12:25:14 +00:00
|
|
|
requires_block_template(`$0'_depend)
|
|
|
|
|
|
|
|
allow $1 proc_t:dir r_dir_perms;
|
|
|
|
allow $1 proc_t:lnk_file { getattr read };
|
|
|
|
allow $1 proc_t:file r_file_perms;
|
2005-04-14 20:18:17 +00:00
|
|
|
')
|
|
|
|
|
2005-05-02 19:19:06 +00:00
|
|
|
define(`kernel_read_system_state_depend',`
|
2005-06-03 12:25:14 +00:00
|
|
|
type proc_t;
|
|
|
|
|
|
|
|
class dir r_dir_perms;
|
|
|
|
class lnk_file { getattr read };
|
|
|
|
class file r_file_perms;
|
2005-04-14 20:18:17 +00:00
|
|
|
')
|
|
|
|
|
2005-05-02 18:42:33 +00:00
|
|
|
########################################
|
2005-06-07 22:36:07 +00:00
|
|
|
## <interface name="kernel_ignore_read_system_state">
|
|
|
|
## <description>
|
|
|
|
## Do not audit attempts by caller to
|
|
|
|
## read system state information.
|
|
|
|
## </description>
|
|
|
|
## <securitydesc>
|
|
|
|
## Causes attempts to read system state data not to be auditted.
|
|
|
|
## </securitydesc>
|
|
|
|
## <parameter name="domain">
|
|
|
|
## The process type not to audit.
|
|
|
|
## </parameter>
|
|
|
|
## </interface>
|
2005-05-02 18:42:33 +00:00
|
|
|
#
|
|
|
|
define(`kernel_ignore_read_system_state',`
|
2005-06-03 12:25:14 +00:00
|
|
|
requires_block_template(`$0'_depend)
|
|
|
|
|
|
|
|
allow $1 proc_t:file read;
|
2005-05-02 18:42:33 +00:00
|
|
|
')
|
|
|
|
|
2005-05-02 19:19:06 +00:00
|
|
|
define(`kernel_ignore_read_system_state_depend',`
|
2005-06-03 12:25:14 +00:00
|
|
|
type proc_t;
|
|
|
|
|
|
|
|
class file read;
|
2005-05-02 18:42:33 +00:00
|
|
|
')
|
|
|
|
|
2005-04-14 20:18:17 +00:00
|
|
|
#######################################
|
2005-06-07 22:36:07 +00:00
|
|
|
## <interface name="kernel_read_software_raid_state">
|
|
|
|
## <description>
|
|
|
|
## Allow caller to read the state information for software raid.
|
|
|
|
## </description>
|
|
|
|
## <securitydesc>
|
|
|
|
##
|
|
|
|
## </securitydesc>
|
|
|
|
## <parameter name="domain">
|
|
|
|
## The process type reading software raid state.
|
|
|
|
## </parameter>
|
|
|
|
## </interface>
|
2005-04-14 20:18:17 +00:00
|
|
|
#
|
|
|
|
define(`kernel_read_software_raid_state',`
|
2005-06-03 12:25:14 +00:00
|
|
|
requires_block_template(`$0'_depend)
|
|
|
|
|
2005-06-08 20:28:45 +00:00
|
|
|
allow $1 proc_t:dir r_dir_perms;
|
|
|
|
allow $1 proc_mdstat_t:file r_file_perms;
|
2005-04-14 20:18:17 +00:00
|
|
|
')
|
|
|
|
|
2005-05-02 19:19:06 +00:00
|
|
|
define(`kernel_read_software_raid_state_depend',`
|
2005-06-03 12:25:14 +00:00
|
|
|
type proc_t, proc_mdstat_t;
|
|
|
|
|
2005-06-08 20:28:45 +00:00
|
|
|
class dir r_dir_perms;
|
|
|
|
class file r_file_perms;
|
2005-04-14 20:18:17 +00:00
|
|
|
')
|
|
|
|
|
|
|
|
########################################
|
2005-06-07 22:36:07 +00:00
|
|
|
## <interface name="kernel_get_core_interface_attributes">
|
|
|
|
## <description>
|
|
|
|
## Allows caller to get attribues of core kernel interfaces.
|
|
|
|
## </description>
|
|
|
|
## <securitydesc>
|
|
|
|
##
|
|
|
|
## </securitydesc>
|
|
|
|
## <parameter name="domain">
|
|
|
|
## The process type getting the attibutes.
|
|
|
|
## </parameter>
|
|
|
|
## </interface>
|
2005-04-14 20:18:17 +00:00
|
|
|
#
|
2005-04-25 16:11:21 +00:00
|
|
|
define(`kernel_get_core_interface_attributes',`
|
2005-06-03 12:25:14 +00:00
|
|
|
requires_block_template(`$0'_depend)
|
|
|
|
|
2005-06-08 20:28:45 +00:00
|
|
|
allow $1 proc_t:dir r_dir_perms;
|
2005-06-03 12:25:14 +00:00
|
|
|
allow $1 proc_kcore_t:file getattr;
|
2005-04-14 20:18:17 +00:00
|
|
|
')
|
|
|
|
|
2005-05-02 19:19:06 +00:00
|
|
|
define(`kernel_get_core_interface_attributes_depend',`
|
2005-06-03 12:25:14 +00:00
|
|
|
type proc_t, proc_kcore_t;
|
|
|
|
|
|
|
|
class dir { search getattr read };
|
|
|
|
class file getattr;
|
2005-04-14 20:18:17 +00:00
|
|
|
')
|
|
|
|
|
2005-05-13 14:37:13 +00:00
|
|
|
########################################
|
2005-06-07 22:36:07 +00:00
|
|
|
## <interface name="kernel_ignore_get_core_interface_attributes">
|
|
|
|
## <description>
|
|
|
|
## Do not audit attempts to get the attributes of
|
|
|
|
## core kernel interfaces.
|
|
|
|
## </description>
|
|
|
|
## <securitydesc>
|
|
|
|
## Causes attempts to get attributes of kernel interfaces to
|
|
|
|
## not be auditted.
|
|
|
|
## </securitydesc>
|
|
|
|
## <parameter name="domain">
|
|
|
|
## The process type to not audit.
|
|
|
|
## </parameter>
|
|
|
|
## </interface>
|
2005-05-13 14:37:13 +00:00
|
|
|
#
|
|
|
|
define(`kernel_ignore_get_core_interface_attributes',`
|
2005-06-03 12:25:14 +00:00
|
|
|
requires_block_template(`$0'_depend)
|
|
|
|
|
|
|
|
dontaudit $1 proc_kcore_t:file getattr;
|
2005-05-13 14:37:13 +00:00
|
|
|
')
|
|
|
|
|
|
|
|
define(`kernel_ignore_get_core_interface_attributes_depend',`
|
2005-06-03 12:25:14 +00:00
|
|
|
type proc_kcore_t;
|
|
|
|
|
|
|
|
class file getattr;
|
2005-05-13 14:37:13 +00:00
|
|
|
')
|
|
|
|
|
2005-04-25 16:11:21 +00:00
|
|
|
########################################
|
2005-06-07 22:36:07 +00:00
|
|
|
## <interface name="kernel_read_messages">
|
|
|
|
## <description>
|
|
|
|
## Allow caller to receive and read kernel messages.
|
|
|
|
## </description>
|
|
|
|
## <securitydesc>
|
|
|
|
##
|
|
|
|
## </securitydesc>
|
|
|
|
## <parameter name="domain">
|
|
|
|
## The process type reading the messages.
|
|
|
|
## </parameter>
|
|
|
|
## </interface>
|
2005-04-25 16:11:21 +00:00
|
|
|
#
|
|
|
|
define(`kernel_read_messages',`
|
2005-06-03 12:25:14 +00:00
|
|
|
requires_block_template(`$0'_depend)
|
|
|
|
|
|
|
|
allow $1 proc_t:dir search;
|
2005-06-08 20:28:45 +00:00
|
|
|
allow $1 proc_kmsg_t:file r_file_perms;
|
2005-06-03 12:25:14 +00:00
|
|
|
typeattribute $1 can_receive_kernel_messages;
|
2005-04-25 16:11:21 +00:00
|
|
|
')
|
|
|
|
|
|
|
|
define(`kernel_read_messages_depend',`
|
2005-06-03 12:25:14 +00:00
|
|
|
attribute can_receive_kernel_messages;
|
|
|
|
|
|
|
|
type proc_kmsg_t, proc_t;
|
|
|
|
|
|
|
|
class dir search;
|
2005-06-08 20:28:45 +00:00
|
|
|
class file r_file_perms;
|
2005-04-25 16:11:21 +00:00
|
|
|
')
|
|
|
|
|
|
|
|
########################################
|
2005-06-07 22:36:07 +00:00
|
|
|
## <interface name="kernel_get_message_interface_attributes">
|
|
|
|
## <description>
|
|
|
|
## Allow caller to get the attributes of kernel message
|
|
|
|
## interfaces.
|
|
|
|
## </description>
|
|
|
|
## <securitydesc>
|
|
|
|
##
|
|
|
|
## </securitydesc>
|
|
|
|
## <parameter name="domain">
|
|
|
|
## The process type getting the attributes.
|
|
|
|
## </parameter>
|
|
|
|
## </interface>
|
2005-04-25 16:11:21 +00:00
|
|
|
#
|
|
|
|
define(`kernel_get_message_interface_attributes',`
|
2005-06-03 12:25:14 +00:00
|
|
|
requires_block_template(`$0'_depend)
|
|
|
|
|
|
|
|
allow $1 proc_t:dir search;
|
|
|
|
allow $1 proc_kmsg_t:file getattr;
|
2005-04-25 16:11:21 +00:00
|
|
|
')
|
|
|
|
|
|
|
|
define(`kernel_get_message_interface_attributes_depend',`
|
2005-06-03 12:25:14 +00:00
|
|
|
type proc_kmsg_t, proc_t;
|
|
|
|
|
|
|
|
class dir search;
|
|
|
|
class file getattr;
|
2005-04-25 16:11:21 +00:00
|
|
|
')
|
|
|
|
|
2005-04-14 20:18:17 +00:00
|
|
|
########################################
|
2005-06-07 22:36:07 +00:00
|
|
|
## <interface name="kernel_ignore_get_message_interface_attributes">
|
|
|
|
## <description>
|
|
|
|
## Do not audit attempts by caller to get the attributes of kernel
|
|
|
|
## message interfaces.
|
|
|
|
## </description>
|
|
|
|
## <securitydesc>
|
|
|
|
## Causes attempts by caller to get the attributes of kernel
|
|
|
|
## message interfaces not to be auditted.
|
|
|
|
## </securitydesc>
|
|
|
|
## <parameter name="domain">
|
|
|
|
## The process type not to audit.
|
|
|
|
## </parameter>
|
|
|
|
## </interface>
|
2005-05-02 21:02:14 +00:00
|
|
|
#
|
|
|
|
define(`kernel_ignore_get_message_interface_attributes',`
|
2005-06-03 12:25:14 +00:00
|
|
|
requires_block_template(`$0'_depend)
|
|
|
|
|
|
|
|
dontaudit $1 proc_kmsg_t:file getattr;
|
2005-05-02 21:02:14 +00:00
|
|
|
')
|
|
|
|
|
|
|
|
define(`kernel_ignore_get_message_interface_attributes_depend',`
|
2005-06-03 12:25:14 +00:00
|
|
|
type proc_kmsg_t, proc_t;
|
|
|
|
|
|
|
|
class file getattr;
|
2005-05-02 21:02:14 +00:00
|
|
|
')
|
|
|
|
|
|
|
|
########################################
|
2005-06-07 22:36:07 +00:00
|
|
|
## <interface name="kernel_read_network_state">
|
|
|
|
## <description>
|
|
|
|
## Allow caller to read the network state information.
|
|
|
|
## </description>
|
|
|
|
## <securitydesc>
|
|
|
|
##
|
|
|
|
## </securitydesc>
|
|
|
|
## <parameter name="domain">
|
|
|
|
## The process type reading the state.
|
|
|
|
## </parameter>
|
|
|
|
## </interface>
|
|
|
|
##
|
2005-04-14 20:18:17 +00:00
|
|
|
#
|
|
|
|
define(`kernel_read_network_state',`
|
2005-06-03 12:25:14 +00:00
|
|
|
requires_block_template(`$0'_depend)
|
|
|
|
|
|
|
|
allow $1 proc_t:dir search;
|
2005-06-08 20:28:45 +00:00
|
|
|
allow $1 proc_net_t:dir r_dir_perms;
|
|
|
|
allow $1 proc_net_t:file r_file_perms;
|
2005-04-14 20:18:17 +00:00
|
|
|
')
|
|
|
|
|
2005-05-02 19:19:06 +00:00
|
|
|
define(`kernel_read_network_state_depend',`
|
2005-06-03 12:25:14 +00:00
|
|
|
type proc_t, proc_net_t;
|
|
|
|
|
2005-06-08 20:28:45 +00:00
|
|
|
class dir r_dir_perms;
|
|
|
|
class file r_file_perms;
|
2005-04-14 20:18:17 +00:00
|
|
|
')
|
|
|
|
|
2005-05-31 21:25:45 +00:00
|
|
|
########################################
|
2005-06-07 22:36:07 +00:00
|
|
|
## <interface name="kernel_ignore_search_sysctl_dir">
|
|
|
|
## <description>
|
|
|
|
## Do not audit attempts by caller to search the sysctl directory.
|
|
|
|
## </description>
|
|
|
|
## <securitydesc>
|
|
|
|
## Causes attempts by caller to search the sysctl directy not to be auditted.
|
|
|
|
## </securitydesc>
|
|
|
|
## <parameter name="domain">
|
|
|
|
## The process type not to audit.
|
|
|
|
## </parameter>
|
|
|
|
## </interface>
|
|
|
|
##
|
2005-05-31 21:25:45 +00:00
|
|
|
#
|
|
|
|
define(`kernel_ignore_search_sysctl_dir',`
|
2005-06-03 12:25:14 +00:00
|
|
|
requires_block_template(`$0'_depend)
|
|
|
|
|
|
|
|
dontaudit $1 sysctl_t:dir search;
|
2005-05-31 21:25:45 +00:00
|
|
|
')
|
|
|
|
|
|
|
|
define(`kernel_ignore_search_sysctl_dir_depend',`
|
2005-06-03 12:25:14 +00:00
|
|
|
type sysctl_t;
|
|
|
|
|
|
|
|
class dir search;
|
2005-05-31 21:25:45 +00:00
|
|
|
')
|
|
|
|
|
2005-04-14 20:18:17 +00:00
|
|
|
########################################
|
2005-06-07 22:36:07 +00:00
|
|
|
## <interface name="kernel_read_device_sysctl">
|
|
|
|
## <description>
|
|
|
|
## Allow caller to read the sysctl device.
|
|
|
|
## </description>
|
|
|
|
## <securitydesc>
|
|
|
|
##
|
|
|
|
## </securitydesc>
|
|
|
|
## <parameter name="domain">
|
|
|
|
## The process type to allow to read the sysctl device.
|
|
|
|
## </parameter>
|
|
|
|
## </interface>
|
2005-04-14 20:18:17 +00:00
|
|
|
#
|
|
|
|
define(`kernel_read_device_sysctl',`
|
2005-06-03 12:25:14 +00:00
|
|
|
requires_block_template(`$0'_depend)
|
|
|
|
|
|
|
|
allow $1 proc_t:dir search;
|
2005-06-08 20:28:45 +00:00
|
|
|
allow $1 sysctl_t:dir r_dir_perms;
|
|
|
|
allow $1 sysctl_dev_t:dir r_dir_perms;
|
|
|
|
allow $1 sysctl_dev_t:file r_file_perms;
|
2005-04-14 20:18:17 +00:00
|
|
|
')
|
|
|
|
|
2005-05-02 19:19:06 +00:00
|
|
|
define(`kernel_read_device_sysctl_depend',`
|
2005-06-03 12:25:14 +00:00
|
|
|
type proc_t, sysctl_t, sysctl_dev_t;
|
|
|
|
|
2005-06-08 20:28:45 +00:00
|
|
|
class dir r_dir_perms;
|
|
|
|
class file r_file_perms;
|
2005-04-14 20:18:17 +00:00
|
|
|
')
|
|
|
|
|
|
|
|
########################################
|
2005-06-07 22:36:07 +00:00
|
|
|
## <interface name="kernel_modify_device_sysctl">
|
|
|
|
## <description>
|
|
|
|
## Allows the caller to modify the sysctl device file.
|
|
|
|
## </description>
|
|
|
|
## <securitydesc>
|
|
|
|
##
|
|
|
|
## </securitydesc>
|
|
|
|
## <parameter name="domain">
|
|
|
|
## The process type modifying the sysctl device.
|
|
|
|
## </parameter>
|
|
|
|
## </interface>
|
2005-04-14 20:18:17 +00:00
|
|
|
#
|
|
|
|
define(`kernel_modify_device_sysctl',`
|
2005-06-03 12:25:14 +00:00
|
|
|
requires_block_template(`$0'_depend)
|
|
|
|
|
|
|
|
allow $1 proc_t:dir search;
|
2005-06-08 20:28:45 +00:00
|
|
|
allow $1 sysctl_t:dir r_dir_perms;
|
|
|
|
allow $1 sysctl_dev_t:file rw_file_perms;
|
2005-04-14 20:18:17 +00:00
|
|
|
')
|
|
|
|
|
2005-05-02 19:19:06 +00:00
|
|
|
define(`kernel_modify_device_sysctl_depend',`
|
2005-06-03 12:25:14 +00:00
|
|
|
type proc_t, sysctl_t, sysctl_dev_t;
|
|
|
|
|
2005-06-08 20:28:45 +00:00
|
|
|
class dir r_dir_perms;
|
|
|
|
class file rw_file_perms;
|
2005-04-14 20:18:17 +00:00
|
|
|
')
|
|
|
|
|
|
|
|
########################################
|
2005-06-07 22:36:07 +00:00
|
|
|
## <interface name="kernel_read_virtual_memory_sysctl">
|
|
|
|
## <description>
|
|
|
|
## Allow caller to read sysctl virtual memory.
|
|
|
|
## </description>
|
|
|
|
## <securitydesc>
|
|
|
|
##
|
|
|
|
## </securitydesc>
|
|
|
|
## <parameter name="domain">
|
|
|
|
##
|
|
|
|
## </parameter>
|
|
|
|
## </interface>
|
|
|
|
##
|
2005-04-14 20:18:17 +00:00
|
|
|
#
|
|
|
|
define(`kernel_read_virtual_memory_sysctl',`
|
2005-06-03 12:25:14 +00:00
|
|
|
requires_block_template(`$0'_depend)
|
|
|
|
|
|
|
|
allow $1 proc_t:dir search;
|
2005-06-08 20:28:45 +00:00
|
|
|
allow $1 sysctl_t:dir r_dir_perms;
|
|
|
|
allow $1 sysctl_vm_t:file r_file_perms;
|
2005-04-14 20:18:17 +00:00
|
|
|
')
|
|
|
|
|
2005-05-02 19:19:06 +00:00
|
|
|
define(`kernel_read_virtual_memory_sysctl_depend',`
|
2005-06-03 12:25:14 +00:00
|
|
|
type proc_t, sysctl_t, sysctl_vm_t;
|
|
|
|
|
2005-06-08 20:28:45 +00:00
|
|
|
class dir r_dir_perms;
|
|
|
|
class file r_file_perms;
|
2005-04-14 20:18:17 +00:00
|
|
|
')
|
|
|
|
|
|
|
|
########################################
|
2005-06-07 22:36:07 +00:00
|
|
|
## <interface name="kernel_modify_virtual_memory_sysctl">
|
|
|
|
## <description>
|
|
|
|
## Allow caller to modify contents of sysctl virtual memory.
|
|
|
|
## </description>
|
|
|
|
## <securitydesc>
|
|
|
|
## Allows caller to modify sysctl virtual memory.
|
|
|
|
## </securitydesc>
|
|
|
|
## <parameter name="domain">
|
|
|
|
## The process type modifying sysctl virtual memory.
|
|
|
|
## </parameter>
|
|
|
|
## </interface>
|
2005-04-14 20:18:17 +00:00
|
|
|
#
|
|
|
|
define(`kernel_modify_virtual_memory_sysctl',`
|
2005-06-03 12:25:14 +00:00
|
|
|
requires_block_template(`$0'_depend)
|
|
|
|
|
|
|
|
allow $1 proc_t:dir search;
|
2005-06-08 20:28:45 +00:00
|
|
|
allow $1 sysctl_t:dir r_dir_perms;
|
|
|
|
allow $1 sysctl_vm_t:file rw_file_perms;
|
2005-04-14 20:18:17 +00:00
|
|
|
')
|
|
|
|
|
2005-05-02 19:19:06 +00:00
|
|
|
define(`kernel_modify_virtual_memory_sysctl_depend',`
|
2005-06-03 12:25:14 +00:00
|
|
|
type proc_t, sysctl_t, sysctl_vm_t;
|
|
|
|
|
2005-06-08 20:28:45 +00:00
|
|
|
class dir r_dir_perms;
|
|
|
|
class file rw_file_perms;
|
2005-04-14 20:18:17 +00:00
|
|
|
')
|
|
|
|
|
2005-05-31 21:25:45 +00:00
|
|
|
########################################
|
2005-06-07 22:36:07 +00:00
|
|
|
## <interface name="kernel_ignore_search_network_sysctl_dir">
|
|
|
|
## <description>
|
|
|
|
## Do not audit attempts by caller to search sysctl network directories.
|
|
|
|
## </description>
|
|
|
|
## <securitydesc>
|
|
|
|
## Causes attempts by the caller to search the sysctl network
|
|
|
|
## directories not to be audited.
|
|
|
|
## </securitydesc>
|
|
|
|
## <parameter name="domain">
|
|
|
|
## The process type not to audit.
|
|
|
|
## </parameter>
|
|
|
|
## </interface>
|
2005-05-31 21:25:45 +00:00
|
|
|
#
|
|
|
|
define(`kernel_ignore_search_network_sysctl_dir',`
|
2005-06-03 12:25:14 +00:00
|
|
|
requires_block_template(`$0'_depend)
|
|
|
|
|
|
|
|
dontaudit $1 sysctl_net_t:dir search;
|
2005-05-31 21:25:45 +00:00
|
|
|
')
|
|
|
|
|
|
|
|
define(`kernel_ignore_search_network_sysctl_dir_depend',`
|
2005-06-03 12:25:14 +00:00
|
|
|
type sysctl_net_t;
|
|
|
|
|
|
|
|
class dir search;
|
2005-05-31 21:25:45 +00:00
|
|
|
')
|
|
|
|
|
2005-04-14 20:18:17 +00:00
|
|
|
########################################
|
2005-06-07 22:36:07 +00:00
|
|
|
## <interface name="kernel_read_network_sysctl">
|
|
|
|
## <description>
|
|
|
|
## Allow caller to read sysctl network files.
|
|
|
|
## </description>
|
|
|
|
## <securitydesc>
|
|
|
|
##
|
|
|
|
## </securitydesc>
|
|
|
|
## <parameter name="domain">
|
|
|
|
## The process type reading sysctl network files.
|
|
|
|
## </parameter>
|
|
|
|
## </interface>
|
|
|
|
##
|
2005-04-14 20:18:17 +00:00
|
|
|
#
|
|
|
|
define(`kernel_read_network_sysctl',`
|
2005-06-03 12:25:14 +00:00
|
|
|
requires_block_template(`$0'_depend)
|
|
|
|
|
|
|
|
allow $1 proc_t:dir search;
|
2005-06-08 20:28:45 +00:00
|
|
|
allow $1 sysctl_t:dir r_dir_perms;
|
|
|
|
allow $1 sysctl_net_t:dir r_dir_perms;
|
|
|
|
allow $1 sysctl_net_t:file r_file_perms;
|
2005-04-14 20:18:17 +00:00
|
|
|
')
|
|
|
|
|
2005-05-02 19:19:06 +00:00
|
|
|
define(`kernel_read_network_sysctl_depend',`
|
2005-06-03 12:25:14 +00:00
|
|
|
type proc_t, sysctl_t, sysctl_net_t;
|
|
|
|
|
2005-06-08 20:28:45 +00:00
|
|
|
class dir r_dir_perms;
|
|
|
|
class file f_file_perms;
|
2005-04-14 20:18:17 +00:00
|
|
|
')
|
|
|
|
|
|
|
|
########################################
|
2005-06-07 22:36:07 +00:00
|
|
|
|
|
|
|
## <interface name="kernel_modify_network_sysctl">
|
|
|
|
## <description>
|
|
|
|
## Allow caller to modiry contents of sysctl network files.
|
|
|
|
## </description>
|
|
|
|
## <securitydesc>
|
|
|
|
##
|
|
|
|
## </securitydesc>
|
|
|
|
## <parameter name="domain">
|
|
|
|
## The process type modifying sysctl network files.
|
|
|
|
## </parameter>
|
|
|
|
## </interface>
|
2005-04-14 20:18:17 +00:00
|
|
|
#
|
|
|
|
define(`kernel_modify_network_sysctl',`
|
2005-06-03 12:25:14 +00:00
|
|
|
requires_block_template(`$0'_depend)
|
|
|
|
|
|
|
|
allow $1 proc_t:dir search;
|
2005-06-08 20:28:45 +00:00
|
|
|
allow $1 sysctl_t:dir r_dir_perms;
|
|
|
|
allow $1 sysctl_net_t:dir r_dir_perms;
|
|
|
|
allow $1 sysctl_net_t:file rw_file_perms;
|
2005-04-14 20:18:17 +00:00
|
|
|
')
|
|
|
|
|
2005-05-02 19:19:06 +00:00
|
|
|
define(`kernel_modify_network_sysctl_depend',`
|
2005-06-03 12:25:14 +00:00
|
|
|
type proc_t, sysctl_t, sysctl_net_t;
|
|
|
|
|
2005-06-08 20:28:45 +00:00
|
|
|
class dir r_dir_perms;
|
|
|
|
class file rw_file_perms;
|
2005-04-14 20:18:17 +00:00
|
|
|
')
|
|
|
|
|
|
|
|
########################################
|
2005-06-07 22:36:07 +00:00
|
|
|
## <interface name="kernel_read_unix_sysctl">
|
|
|
|
## <description>
|
|
|
|
## Allow caller to read unix sysctl files.
|
|
|
|
## </description>
|
|
|
|
## <securitydesc>
|
|
|
|
##
|
|
|
|
## </securitydesc>
|
|
|
|
## <parameter name="domain">
|
|
|
|
## The process type reading unix sysctl files.
|
|
|
|
## </parameter>
|
|
|
|
## </interface>
|
2005-04-14 20:18:17 +00:00
|
|
|
#
|
|
|
|
define(`kernel_read_unix_sysctl',`
|
2005-06-03 12:25:14 +00:00
|
|
|
requires_block_template(`$0'_depend)
|
|
|
|
|
|
|
|
allow $1 proc_t:dir search;
|
2005-06-08 20:28:45 +00:00
|
|
|
allow $1 sysctl_t:dir r_dir_perms;
|
|
|
|
allow $1 sysctl_net_t:dir r_dir_perms;
|
|
|
|
allow $1 sysctl_net_unix_t:file r_file_perms;
|
2005-04-14 20:18:17 +00:00
|
|
|
')
|
|
|
|
|
2005-05-02 19:19:06 +00:00
|
|
|
define(`kernel_read_net_sysctl_depend',`
|
2005-06-03 12:25:14 +00:00
|
|
|
type proc_t, sysctl_t, sysctl_net_t, sysctl_net_unix_t;
|
|
|
|
|
2005-06-08 20:28:45 +00:00
|
|
|
class dir r_dir_perms;
|
|
|
|
class file r_file_perms;
|
2005-04-14 20:18:17 +00:00
|
|
|
')
|
|
|
|
|
|
|
|
########################################
|
2005-06-07 22:36:07 +00:00
|
|
|
## <interface name="kernel_modify_unix_sysctl">
|
|
|
|
## <description>
|
|
|
|
## Allow caller to modify contents of unix sysctl files.
|
|
|
|
## </description>
|
|
|
|
## <securitydesc>
|
|
|
|
##
|
|
|
|
## </securitydesc>
|
|
|
|
## <parameter name="domain">
|
|
|
|
## The process type modifying contents of unix sysctl files.
|
|
|
|
## </parameter>
|
|
|
|
## </interface>
|
2005-04-14 20:18:17 +00:00
|
|
|
#
|
|
|
|
define(`kernel_modify_unix_sysctl',`
|
2005-06-03 12:25:14 +00:00
|
|
|
requires_block_template(`$0'_depend)
|
|
|
|
|
|
|
|
allow $1 proc_t:dir search;
|
2005-06-08 20:28:45 +00:00
|
|
|
allow $1 sysctl_t:dir r_dir_perms;
|
|
|
|
allow $1 sysctl_net_t:dir r_dir_perms;
|
|
|
|
allow $1 sysctl_net_unix_t:file rw_file_perms;
|
2005-04-14 20:18:17 +00:00
|
|
|
')
|
|
|
|
|
2005-05-02 19:19:06 +00:00
|
|
|
define(`kernel_modify_net_sysctl_depend',`
|
2005-06-03 12:25:14 +00:00
|
|
|
type proc_t, sysctl_t, sysctl_net_t, sysctl_net_unix_t;
|
|
|
|
|
2005-06-08 20:28:45 +00:00
|
|
|
class dir r_dir_perms;
|
|
|
|
class file rw_file_perms;
|
2005-04-14 20:18:17 +00:00
|
|
|
')
|
|
|
|
|
|
|
|
########################################
|
2005-06-07 22:36:07 +00:00
|
|
|
## <interface name="kernel_read_hotplug_sysctl">
|
|
|
|
## <description>
|
|
|
|
## Allow caller to read data from hotplug.
|
|
|
|
## </description>
|
|
|
|
## <securitydesc>
|
|
|
|
##
|
|
|
|
## </securitydesc>
|
|
|
|
## <parameter name="domain">
|
|
|
|
## The process type reading hotplug data.
|
|
|
|
## </parameter>
|
|
|
|
## </interface>
|
2005-04-14 20:18:17 +00:00
|
|
|
#
|
|
|
|
define(`kernel_read_hotplug_sysctl',`
|
2005-06-03 12:25:14 +00:00
|
|
|
requires_block_template(`$0'_depend)
|
|
|
|
|
|
|
|
allow $1 proc_t:dir search;
|
2005-06-08 20:28:45 +00:00
|
|
|
allow $1 sysctl_t:dir r_dir_perms;
|
|
|
|
allow $1 sysctl_kernel_t:dir r_dir_perms;
|
|
|
|
allow $1 sysctl_hotplug_t:file r_file_perms;
|
2005-04-14 20:18:17 +00:00
|
|
|
')
|
|
|
|
|
2005-05-02 19:19:06 +00:00
|
|
|
define(`kernel_read_hotplug_sysctl_depend',`
|
2005-06-03 12:25:14 +00:00
|
|
|
type proc_t, sysctl_t, sysctl_kernel_t, sysctl_hotplug_t;
|
|
|
|
|
2005-06-08 20:28:45 +00:00
|
|
|
class dir r_dir_perms;
|
|
|
|
class file r_file_perms;
|
2005-04-14 20:18:17 +00:00
|
|
|
')
|
|
|
|
|
|
|
|
########################################
|
2005-06-07 22:36:07 +00:00
|
|
|
## <interface name="kernel_modify_hotplug_sysctl">
|
|
|
|
## <description>
|
|
|
|
## Allow caller to modify hotplug sysctl data.
|
|
|
|
## </description>
|
|
|
|
## <securitydesc>
|
|
|
|
##
|
|
|
|
## </securitydesc>
|
|
|
|
## <parameter name="domain">
|
|
|
|
## The process type modifying hotplug sysctl data.
|
|
|
|
## </parameter>
|
|
|
|
## </interface>
|
2005-04-14 20:18:17 +00:00
|
|
|
#
|
|
|
|
define(`kernel_modify_hotplug_sysctl',`
|
2005-06-03 12:25:14 +00:00
|
|
|
requires_block_template(`$0'_depend)
|
|
|
|
|
|
|
|
allow $1 proc_t:dir search;
|
2005-06-08 20:28:45 +00:00
|
|
|
allow $1 sysctl_t:dir r_dir_perms;
|
|
|
|
allow $1 sysctl_kernel_t:dir r_dir_perms;
|
|
|
|
allow $1 sysctl_hotplug_t:file rw_file_perms;
|
2005-04-14 20:18:17 +00:00
|
|
|
')
|
|
|
|
|
2005-05-02 19:19:06 +00:00
|
|
|
define(`kernel_modify_hotplug_sysctl_depend',`
|
2005-06-03 12:25:14 +00:00
|
|
|
type proc_t, sysctl_t, sysctl_kernel_t, sysctl_hotplug_t;
|
|
|
|
|
2005-06-08 20:28:45 +00:00
|
|
|
class dir r_dir_perms;
|
|
|
|
class file rw_file_perms;
|
2005-04-14 20:18:17 +00:00
|
|
|
')
|
|
|
|
|
|
|
|
########################################
|
2005-06-07 22:36:07 +00:00
|
|
|
## <interface name="kernel_read_modprobe_sysctl">
|
|
|
|
## <description>
|
|
|
|
## Allow caller to read files containing modprobe information.
|
|
|
|
## </description>
|
|
|
|
## <securitydesc>
|
|
|
|
##
|
|
|
|
## </securitydesc>
|
|
|
|
## <parameter name="domain">
|
|
|
|
## The process domian reading modprobe information files.
|
|
|
|
## </parameter>
|
|
|
|
## </interface>
|
2005-04-14 20:18:17 +00:00
|
|
|
#
|
|
|
|
define(`kernel_read_modprobe_sysctl',`
|
2005-06-03 12:25:14 +00:00
|
|
|
requires_block_template(`$0'_depend)
|
|
|
|
|
|
|
|
allow $1 proc_t:dir search;
|
2005-06-08 20:28:45 +00:00
|
|
|
allow $1 sysctl_t:dir r_dir_perms;
|
|
|
|
allow $1 sysctl_kernel_t:dir r_dir_perms;
|
|
|
|
allow $1 sysctl_modprobe_t:file r_file_perms;
|
2005-04-14 20:18:17 +00:00
|
|
|
')
|
|
|
|
|
2005-05-02 19:19:06 +00:00
|
|
|
define(`kernel_read_modprobe_sysctl_depend',`
|
2005-06-03 12:25:14 +00:00
|
|
|
type proc_t, sysctl_t, sysctl_kernel_t, sysctl_modprobe_t;
|
|
|
|
|
2005-06-08 20:28:45 +00:00
|
|
|
class dir r_dir_perms;
|
|
|
|
class file r_file_perms;
|
2005-04-14 20:18:17 +00:00
|
|
|
')
|
|
|
|
|
|
|
|
########################################
|
2005-06-07 22:36:07 +00:00
|
|
|
## <interface name="kernel_modify_modprobe_sysctl">
|
|
|
|
## <description>
|
|
|
|
## Allow caller to modify files containing modprobe information.
|
|
|
|
## </description>
|
|
|
|
## <securitydesc>
|
|
|
|
##
|
|
|
|
## </securitydesc>
|
|
|
|
## <parameter name="domain">
|
|
|
|
## The process domian modifying modprobe information files.
|
|
|
|
## </parameter>
|
|
|
|
## </interface>
|
2005-04-14 20:18:17 +00:00
|
|
|
#
|
|
|
|
define(`kernel_modify_modprobe_sysctl',`
|
2005-06-03 12:25:14 +00:00
|
|
|
requires_block_template(`$0'_depend)
|
|
|
|
|
|
|
|
allow $1 proc_t:dir search;
|
2005-06-08 20:28:45 +00:00
|
|
|
allow $1 sysctl_t:dir r_dir_perms;
|
|
|
|
allow $1 sysctl_kernel_t:dir r_dir_perms;
|
|
|
|
allow $1 sysctl_modprobe_t:file rw_file_perms;
|
2005-04-14 20:18:17 +00:00
|
|
|
')
|
|
|
|
|
2005-05-02 19:19:06 +00:00
|
|
|
define(`kernel_modify_modprobe_sysctl_depend',`
|
2005-06-03 12:25:14 +00:00
|
|
|
type proc_t, sysctl_t, sysctl_kernel_t, sysctl_modprobe_t;
|
|
|
|
|
2005-06-08 20:28:45 +00:00
|
|
|
class dir r_dir_perms;
|
|
|
|
class file rw_file_perms;
|
2005-04-14 20:18:17 +00:00
|
|
|
')
|
|
|
|
|
|
|
|
########################################
|
2005-06-07 22:36:07 +00:00
|
|
|
## <interface name="kernel_read_kernel_sysctl">
|
|
|
|
## <description>
|
|
|
|
## Allow caller to read kernel sysctl files.
|
|
|
|
## </description>
|
|
|
|
## <securitydesc>
|
|
|
|
##
|
|
|
|
## </securitydesc>
|
|
|
|
## <parameter name="domain">
|
|
|
|
## The process type reading kernel sysctl files.
|
|
|
|
## </parameter>
|
|
|
|
## </interface>
|
2005-04-14 20:18:17 +00:00
|
|
|
#
|
|
|
|
define(`kernel_read_kernel_sysctl',`
|
2005-06-03 12:25:14 +00:00
|
|
|
requires_block_template(`$0'_depend)
|
|
|
|
|
|
|
|
allow $1 proc_t:dir search;
|
2005-06-08 20:28:45 +00:00
|
|
|
allow $1 sysctl_t:dir r_dir_perms;
|
|
|
|
allow $1 sysctl_kernel_t:dir r_dir_perms;
|
|
|
|
allow $1 sysctl_kernel_t:file r_file_perms;
|
2005-04-14 20:18:17 +00:00
|
|
|
')
|
|
|
|
|
2005-05-02 19:19:06 +00:00
|
|
|
define(`kernel_read_kernel_sysctl_depend',`
|
2005-06-03 12:25:14 +00:00
|
|
|
type proc_t, sysctl_t, sysctl_kernel_t;
|
|
|
|
|
2005-06-08 20:28:45 +00:00
|
|
|
class dir r_dir_perms;
|
|
|
|
class file r_file_perms;
|
2005-04-14 20:18:17 +00:00
|
|
|
')
|
|
|
|
|
|
|
|
########################################
|
2005-06-07 22:36:07 +00:00
|
|
|
## <interface name="kernel_modify_kernel_sysctl">
|
|
|
|
## <description>
|
|
|
|
## Allow caller to modify kernel sysctl files.
|
|
|
|
## </description>
|
|
|
|
## <securitydesc>
|
|
|
|
##
|
|
|
|
## </securitydesc>
|
|
|
|
## <parameter name="domain">
|
|
|
|
## The process type modifying kernel sysctl files.
|
|
|
|
## </parameter>
|
|
|
|
## </interface>
|
2005-04-14 20:18:17 +00:00
|
|
|
#
|
|
|
|
define(`kernel_modify_kernel_sysctl',`
|
2005-06-03 12:25:14 +00:00
|
|
|
requires_block_template(`$0'_depend)
|
|
|
|
|
|
|
|
allow $1 proc_t:dir search;
|
2005-06-08 20:28:45 +00:00
|
|
|
allow $1 sysctl_t:dir r_dir_perms;
|
|
|
|
allow $1 sysctl_kernel_t:dir r_dir_perms;
|
|
|
|
allow $1 sysctl_kernel_t:file rw_file_perms;
|
2005-04-14 20:18:17 +00:00
|
|
|
')
|
|
|
|
|
2005-05-02 19:19:06 +00:00
|
|
|
define(`kernel_modify_kernel_sysctl_depend',`
|
2005-06-03 12:25:14 +00:00
|
|
|
type proc_t, sysctl_t, sysctl_kernel_t;
|
|
|
|
|
2005-06-08 20:28:45 +00:00
|
|
|
class dir r_dir_perms;
|
|
|
|
class file rw_file_perms;
|
2005-04-14 20:18:17 +00:00
|
|
|
')
|
|
|
|
|
|
|
|
########################################
|
2005-06-08 13:12:00 +00:00
|
|
|
## <interface name="kernel_read_fs_sysctl">
|
2005-06-07 22:36:07 +00:00
|
|
|
## <description>
|
|
|
|
## Allow caller to read filesystem information.
|
|
|
|
## </description>
|
|
|
|
## <securitydesc>
|
|
|
|
##
|
|
|
|
## </securitydesc>
|
|
|
|
## <parameter name="domain">
|
|
|
|
## The process type reading filesystem information.
|
|
|
|
## </parameter>
|
|
|
|
## </interface>
|
2005-04-14 20:18:17 +00:00
|
|
|
#
|
2005-06-08 13:12:00 +00:00
|
|
|
define(`kernel_read_fs_sysctl',`
|
2005-06-03 12:25:14 +00:00
|
|
|
requires_block_template(`$0'_depend)
|
|
|
|
|
|
|
|
allow $1 proc_t:dir search;
|
2005-06-08 20:28:45 +00:00
|
|
|
allow $1 sysctl_t:dir r_dir_perms;
|
|
|
|
allow $1 sysctl_fs_t:dir r_dir_perms;
|
|
|
|
allow $1 sysctl_fs_t:file r_file_perms;
|
2005-04-14 20:18:17 +00:00
|
|
|
')
|
|
|
|
|
2005-06-08 13:12:00 +00:00
|
|
|
define(`kernel_read_fs_sysctl_depend',`
|
2005-06-03 12:25:14 +00:00
|
|
|
type proc_t, sysctl_t, sysctl_fs_t;
|
|
|
|
|
2005-06-08 20:28:45 +00:00
|
|
|
class dir r_dir_perms;
|
|
|
|
class file r_file_perms;
|
2005-04-14 20:18:17 +00:00
|
|
|
')
|
|
|
|
|
|
|
|
########################################
|
|
|
|
#
|
2005-06-08 13:12:00 +00:00
|
|
|
# kernel_modify_fs_sysctl(domain)
|
|
|
|
## <interface name="kernel_modify_fs_sysctl">
|
2005-06-07 22:36:07 +00:00
|
|
|
## <description>
|
|
|
|
## Allow caller to modify filesystem information.
|
|
|
|
## </description>
|
|
|
|
## <securitydesc>
|
|
|
|
##
|
|
|
|
## </securitydesc>
|
|
|
|
## <parameter name="domain">
|
|
|
|
## The process type modifying filesystem information.
|
|
|
|
## </parameter>
|
|
|
|
## </interface>
|
2005-04-14 20:18:17 +00:00
|
|
|
#
|
2005-06-08 13:12:00 +00:00
|
|
|
define(`kernel_modify_fs_sysctl',`
|
2005-06-03 12:25:14 +00:00
|
|
|
requires_block_template(`$0'_depend)
|
|
|
|
|
|
|
|
allow $1 proc_t:dir search;
|
2005-06-08 20:28:45 +00:00
|
|
|
allow $1 sysctl_t:dir r_dir_perms;
|
|
|
|
allow $1 sysctl_fs_t:dir r_dir_perms;
|
|
|
|
allow $1 sysctl_fs_t:file rw_file_perms;
|
2005-04-14 20:18:17 +00:00
|
|
|
')
|
|
|
|
|
2005-06-08 13:12:00 +00:00
|
|
|
define(`kernel_modify_fs_sysctl_depend',`
|
2005-06-03 12:25:14 +00:00
|
|
|
type proc_t, sysctl_t, sysctl_fs_t;
|
|
|
|
|
2005-06-08 20:28:45 +00:00
|
|
|
class dir r_dir_perms;
|
|
|
|
class file rw_file_perms;
|
2005-04-14 20:18:17 +00:00
|
|
|
')
|
|
|
|
|
|
|
|
########################################
|
2005-06-07 22:36:07 +00:00
|
|
|
## <interface name="kernel_read_irq_sysctl">
|
|
|
|
## <description>
|
|
|
|
## Allows caller to read interrupt request information.
|
|
|
|
## </description>
|
|
|
|
## <securitydesc>
|
|
|
|
##
|
|
|
|
## </securitydesc>
|
|
|
|
## <parameter name="domain">
|
|
|
|
## The process type reading interrupt request information.
|
|
|
|
## </parameter>
|
|
|
|
## </interface>
|
2005-04-14 20:18:17 +00:00
|
|
|
#
|
|
|
|
define(`kernel_read_irq_sysctl',`
|
2005-06-03 12:25:14 +00:00
|
|
|
requires_block_template(`$0'_depend)
|
|
|
|
|
|
|
|
allow $1 proc_t:dir search;
|
2005-06-08 20:28:45 +00:00
|
|
|
allow $1 sysctl_irq_t:dir r_dir_perms;
|
|
|
|
allow $1 sysctl_irq_t:file r_file_perms;
|
2005-04-14 20:18:17 +00:00
|
|
|
')
|
|
|
|
|
2005-05-02 19:19:06 +00:00
|
|
|
define(`kernel_read_irq_sysctl_depend',`
|
2005-06-03 12:25:14 +00:00
|
|
|
type proc_t, sysctl_irq_t;
|
|
|
|
|
2005-06-08 20:28:45 +00:00
|
|
|
class dir r_dir_perms;
|
|
|
|
class file r_file_perms;
|
2005-04-14 20:18:17 +00:00
|
|
|
')
|
|
|
|
|
|
|
|
########################################
|
2005-06-07 22:36:07 +00:00
|
|
|
## <interface name="kernel_modify_irq_sysctl">
|
|
|
|
## <description>
|
|
|
|
## Allows caller to modify interrupt request information.
|
|
|
|
## </description>
|
|
|
|
## <securitydesc>
|
|
|
|
##
|
|
|
|
## </securitydesc>
|
|
|
|
## <parameter name="domain">
|
|
|
|
## The process type modifying interrupt request information.
|
|
|
|
## </parameter>
|
|
|
|
## </interface>
|
|
|
|
##
|
2005-04-14 20:18:17 +00:00
|
|
|
#
|
|
|
|
define(`kernel_modify_irq_sysctl',`
|
2005-06-03 12:25:14 +00:00
|
|
|
requires_block_template(`$0'_depend)
|
|
|
|
|
|
|
|
allow $1 proc_t:dir search;
|
2005-06-08 20:28:45 +00:00
|
|
|
allow $1 sysctl_irq_t:dir r_dir_perms;
|
|
|
|
allow $1 sysctl_irq_t:file rw_file_perms;
|
2005-04-14 20:18:17 +00:00
|
|
|
')
|
|
|
|
|
2005-05-02 19:19:06 +00:00
|
|
|
define(`kernel_modify_irq_sysctl_depend',`
|
2005-06-03 12:25:14 +00:00
|
|
|
type proc_t, sysctl_irq_t;
|
|
|
|
|
2005-06-08 20:28:45 +00:00
|
|
|
class dir r_dir_perms;
|
|
|
|
class file rw_file_perms;
|
2005-04-14 20:18:17 +00:00
|
|
|
')
|
|
|
|
|
|
|
|
########################################
|
|
|
|
#
|
2005-05-04 13:19:47 +00:00
|
|
|
# kernel_read_rpc_sysctl(domain)
|
2005-04-14 20:18:17 +00:00
|
|
|
#
|
|
|
|
define(`kernel_read_rpc_sysctl',`
|
2005-06-03 12:25:14 +00:00
|
|
|
requires_block_template(`$0'_depend)
|
|
|
|
|
|
|
|
allow $1 proc_t:dir search;
|
|
|
|
allow $1 proc_net_t:dir search;
|
2005-06-08 20:28:45 +00:00
|
|
|
allow $1 sysctl_rpc_t:dir r_dir_perms;
|
|
|
|
allow $1 sysctl_rpc_t:file r_file_perms;
|
2005-04-14 20:18:17 +00:00
|
|
|
')
|
|
|
|
|
2005-05-02 19:19:06 +00:00
|
|
|
define(`kernel_read_rpc_sysctl_depend',`
|
2005-06-03 12:25:14 +00:00
|
|
|
type proc_t, proc_net_t, sysctl_rpc_t;
|
|
|
|
|
2005-06-08 20:28:45 +00:00
|
|
|
class dir r_dir_perms;
|
|
|
|
class file r_file_perms;
|
2005-04-14 20:18:17 +00:00
|
|
|
')
|
|
|
|
|
|
|
|
########################################
|
|
|
|
#
|
2005-05-04 13:19:47 +00:00
|
|
|
# kernel_modify_rpc_sysctl(domain)
|
2005-04-14 20:18:17 +00:00
|
|
|
#
|
|
|
|
define(`kernel_modify_rpc_sysctl',`
|
2005-06-03 12:25:14 +00:00
|
|
|
requires_block_template(`$0'_depend)
|
|
|
|
|
|
|
|
allow $1 proc_t:dir search;
|
|
|
|
allow $1 proc_net_t:dir search;
|
2005-06-08 20:28:45 +00:00
|
|
|
allow $1 sysctl_rpc_t:dir r_dir_perms;
|
|
|
|
allow $1 sysctl_rpc_t:file rw_file_perms;
|
2005-04-14 20:18:17 +00:00
|
|
|
')
|
|
|
|
|
2005-05-02 19:19:06 +00:00
|
|
|
define(`kernel_modify_rpc_sysctl_depend',`
|
2005-06-03 12:25:14 +00:00
|
|
|
type proc_t, proc_net_t, sysctl_rpc_t;
|
|
|
|
|
2005-06-08 20:28:45 +00:00
|
|
|
class dir r_dir_perms;
|
|
|
|
class file rw_file_perms;
|
2005-04-14 20:18:17 +00:00
|
|
|
')
|
|
|
|
|
|
|
|
########################################
|
2005-06-07 22:36:07 +00:00
|
|
|
## <interface name="kernel_read_all_sysctl">
|
|
|
|
## <description>
|
|
|
|
## Allow caller to read all sysctl information.
|
|
|
|
## </description>
|
|
|
|
## <securitydesc>
|
|
|
|
##
|
|
|
|
## </securitydesc>
|
|
|
|
## <parameter name="domain">
|
|
|
|
## The process type reading the information.
|
|
|
|
## </parameter>
|
|
|
|
## </interface>
|
2005-04-14 20:18:17 +00:00
|
|
|
#
|
|
|
|
define(`kernel_read_all_sysctl',`
|
2005-06-03 12:25:14 +00:00
|
|
|
kernel_read_device_sysctl($1)
|
|
|
|
kernel_read_virtual_memory_sysctl($1)
|
|
|
|
kernel_read_network_sysctl($1)
|
|
|
|
kernel_read_unix_sysctl($1)
|
|
|
|
kernel_read_hotplug_sysctl($1)
|
|
|
|
kernel_read_modprobe_sysctl($1)
|
|
|
|
kernel_read_kernel_sysctl($1)
|
2005-06-08 13:12:00 +00:00
|
|
|
kernel_read_fs_sysctl($1)
|
2005-06-03 12:25:14 +00:00
|
|
|
kernel_read_irq_sysctl($1)
|
|
|
|
kernel_read_rpc_sysctl($1)
|
2005-04-14 20:18:17 +00:00
|
|
|
')
|
|
|
|
|
|
|
|
########################################
|
2005-06-07 22:36:07 +00:00
|
|
|
## <interface name="kernel_modify_all_sysctl">
|
|
|
|
## <description>
|
|
|
|
## Allow caller to modify all sysctl information.
|
|
|
|
## </description>
|
|
|
|
## <securitydesc>
|
|
|
|
##
|
|
|
|
## </securitydesc>
|
|
|
|
## <parameter name="domain">
|
|
|
|
## The process type modifying the information.
|
|
|
|
## </parameter>
|
|
|
|
## </interface>
|
2005-04-14 20:18:17 +00:00
|
|
|
#
|
|
|
|
define(`kernel_modify_all_sysctl',`
|
2005-06-03 12:25:14 +00:00
|
|
|
kernel_modify_device_sysctl($1)
|
|
|
|
kernel_modify_virtual_memory_sysctl($1)
|
|
|
|
kernel_modify_network_sysctl($1)
|
|
|
|
kernel_modify_unix_sysctl($1)
|
|
|
|
kernel_modify_hotplug_sysctl($1)
|
|
|
|
kernel_modify_modprobe_sysctl($1)
|
|
|
|
kernel_modify_kernel_sysctl($1)
|
2005-06-08 13:12:00 +00:00
|
|
|
kernel_modify_fs_sysctl($1)
|
2005-06-03 12:25:14 +00:00
|
|
|
kernel_modify_irq_sysctl($1)
|
|
|
|
kernel_modify_rpc_sysctl($1)
|
2005-05-30 21:17:20 +00:00
|
|
|
')
|
|
|
|
|
|
|
|
########################################
|
|
|
|
## <interface name="kernel_search_hardware_state_dir">
|
|
|
|
## <description>
|
|
|
|
## Search the directory containing hardware information.
|
|
|
|
## </description>
|
|
|
|
## <parameter name="domain">
|
|
|
|
## The type of the process performing this action.
|
|
|
|
## </parameter>
|
|
|
|
## </interface>
|
|
|
|
#
|
|
|
|
define(`kernel_search_hardware_state_dir',`
|
2005-06-03 12:25:14 +00:00
|
|
|
requires_block_template(`$0'_depend)
|
|
|
|
|
|
|
|
allow $1 sysfs_t:dir search;
|
2005-04-14 20:18:17 +00:00
|
|
|
')
|
|
|
|
|
2005-05-30 21:17:20 +00:00
|
|
|
define(`kernel_search_hardware_state_dir_depend',`
|
2005-06-03 12:25:14 +00:00
|
|
|
type sysfs_t;
|
|
|
|
|
|
|
|
class dir search;
|
2005-04-14 20:18:17 +00:00
|
|
|
')
|
|
|
|
|
|
|
|
########################################
|
2005-06-07 22:36:07 +00:00
|
|
|
## <interface name="kernel_read_hardware_state">
|
|
|
|
## <description>
|
|
|
|
## Allow caller to read hardware state information.
|
|
|
|
## </description>
|
|
|
|
## <securitydesc>
|
|
|
|
##
|
|
|
|
## </securitydesc>
|
|
|
|
## <parameter name="domain">
|
|
|
|
## The process type reading hardware state information.
|
|
|
|
## </parameter>
|
|
|
|
## </interface>
|
2005-04-14 20:18:17 +00:00
|
|
|
#
|
|
|
|
define(`kernel_read_hardware_state',`
|
2005-06-03 12:25:14 +00:00
|
|
|
requires_block_template(`$0'_depend)
|
|
|
|
|
2005-06-08 20:28:45 +00:00
|
|
|
allow $1 sysfs_t:dir r_dir_perms;
|
|
|
|
allow $1 sysfs_t:{ file lnk_file } r_file_perms;
|
2005-04-14 20:18:17 +00:00
|
|
|
')
|
|
|
|
|
|
|
|
define(`kernel_read_hardware_state_depend',`
|
2005-06-03 12:25:14 +00:00
|
|
|
type sysfs_t;
|
|
|
|
|
2005-06-08 20:28:45 +00:00
|
|
|
class dir r_dir_perms;
|
|
|
|
class file r_file_perms;
|
|
|
|
class lnk_file r_file_perms;
|
2005-04-14 20:18:17 +00:00
|
|
|
')
|
|
|
|
|
|
|
|
########################################
|
2005-06-07 22:36:07 +00:00
|
|
|
## <interface name="kernel_modify_hardware_state">
|
|
|
|
## <description>
|
|
|
|
## Allow caller to modify hardware state information.
|
|
|
|
## </description>
|
|
|
|
## <securitydesc>
|
|
|
|
##
|
|
|
|
## </securitydesc>
|
|
|
|
## <parameter name="domain">
|
|
|
|
## The process type modifying hardware state information.
|
|
|
|
## </parameter>
|
|
|
|
## </interface>
|
2005-04-14 20:18:17 +00:00
|
|
|
#
|
|
|
|
define(`kernel_modify_hardware_config_option',`
|
2005-06-03 12:25:14 +00:00
|
|
|
requires_block_template(`$0'_depend)
|
|
|
|
|
2005-06-08 20:28:45 +00:00
|
|
|
allow $1 sysfs_t:dir r_dir_perms;
|
|
|
|
allow $1 sysfs_t:lnk_file r_file_perms;
|
|
|
|
allow $1 sysfs_t:file rw_file_perms;
|
2005-04-14 20:18:17 +00:00
|
|
|
')
|
|
|
|
|
|
|
|
define(`kernel_modify_hardware_config_option_depend',`
|
2005-06-03 12:25:14 +00:00
|
|
|
type sysfs_t;
|
|
|
|
|
2005-06-08 20:28:45 +00:00
|
|
|
class dir r_dir_perms;
|
|
|
|
class file rw_file_perms;
|
|
|
|
class lnk_file r_file_perms;
|
2005-04-14 20:18:17 +00:00
|
|
|
')
|
|
|
|
|
2005-05-27 20:44:05 +00:00
|
|
|
########################################
|
|
|
|
## <interface name="kernel_kill_unlabeled_process">
|
|
|
|
## <description>
|
|
|
|
## Send a kill signal to unlabeled processes.
|
|
|
|
## </description>
|
|
|
|
## <parameter name="domain">
|
|
|
|
## The type of the process performing this action.
|
|
|
|
## </parameter>
|
|
|
|
## </interface>
|
|
|
|
#
|
|
|
|
define(`kernel_kill_unlabeled_process',`
|
2005-06-03 12:25:14 +00:00
|
|
|
requires_block_template(`$0'_depend)
|
|
|
|
|
|
|
|
allow $1 unlabeled_t:process sigkill;
|
2005-05-27 20:44:05 +00:00
|
|
|
')
|
|
|
|
|
|
|
|
define(`kernel_kill_unlabeled_process_depend',`
|
2005-06-03 12:25:14 +00:00
|
|
|
type unlabeled_t;
|
|
|
|
|
|
|
|
class process sigkill;
|
2005-05-27 20:44:05 +00:00
|
|
|
')
|
|
|
|
|
|
|
|
########################################
|
|
|
|
## <interface name="kernel_signal_unlabeled_process">
|
|
|
|
## <description>
|
|
|
|
## Send general signals to unlabeled processes.
|
|
|
|
## </description>
|
|
|
|
## <parameter name="domain">
|
|
|
|
## The type of the process performing this action.
|
|
|
|
## </parameter>
|
|
|
|
## </interface>
|
|
|
|
#
|
|
|
|
define(`kernel_signal_unlabeled_process',`
|
2005-06-03 12:25:14 +00:00
|
|
|
requires_block_template(`$0'_depend)
|
|
|
|
|
|
|
|
allow $1 unlabeled_t:process signal;
|
2005-05-27 20:44:05 +00:00
|
|
|
')
|
|
|
|
|
|
|
|
define(`kernel_signal_unlabeled_process_depend',`
|
2005-06-03 12:25:14 +00:00
|
|
|
type unlabeled_t;
|
|
|
|
|
|
|
|
class process signal;
|
2005-05-27 20:44:05 +00:00
|
|
|
')
|
|
|
|
|
|
|
|
########################################
|
|
|
|
## <interface name="kernel_signull_unlabeled_process">
|
|
|
|
## <description>
|
|
|
|
## Send a null signal to unlabeled processes.
|
|
|
|
## </description>
|
|
|
|
## <parameter name="domain">
|
|
|
|
## The type of the process performing this action.
|
|
|
|
## </parameter>
|
|
|
|
## </interface>
|
|
|
|
#
|
|
|
|
define(`kernel_signull_unlabeled_process',`
|
2005-06-03 12:25:14 +00:00
|
|
|
requires_block_template(`$0'_depend)
|
|
|
|
|
|
|
|
allow $1 unlabeled_t:process signull;
|
2005-05-27 20:44:05 +00:00
|
|
|
')
|
|
|
|
|
|
|
|
define(`kernel_signull_unlabeled_process_depend',`
|
2005-06-03 12:25:14 +00:00
|
|
|
type unlabeled_t;
|
|
|
|
|
|
|
|
class process signull;
|
2005-05-27 20:44:05 +00:00
|
|
|
')
|
|
|
|
|
|
|
|
########################################
|
|
|
|
## <interface name="kernel_sigstop_unlabeled_process">
|
|
|
|
## <description>
|
|
|
|
## Send a stop signal to unlabeled processes.
|
|
|
|
## </description>
|
|
|
|
## <parameter name="domain">
|
|
|
|
## The type of the process performing this action.
|
|
|
|
## </parameter>
|
|
|
|
## </interface>
|
|
|
|
#
|
|
|
|
define(`kernel_sigstop_unlabeled_process',`
|
2005-06-03 12:25:14 +00:00
|
|
|
requires_block_template(`$0'_depend)
|
|
|
|
|
|
|
|
allow $1 unlabeled_t:process sigstop;
|
2005-05-27 20:44:05 +00:00
|
|
|
')
|
|
|
|
|
|
|
|
define(`kernel_sigstop_unlabeled_process_depend',`
|
2005-06-03 12:25:14 +00:00
|
|
|
type unlabeled_t;
|
|
|
|
|
|
|
|
class process sigstop;
|
2005-05-27 20:44:05 +00:00
|
|
|
')
|
|
|
|
|
|
|
|
########################################
|
|
|
|
## <interface name="kernel_sigchld_unlabeled_process">
|
|
|
|
## <description>
|
|
|
|
## Send a child terminated signal to unlabeled processes.
|
|
|
|
## </description>
|
|
|
|
## <parameter name="domain">
|
|
|
|
## The type of the process performing this action.
|
|
|
|
## </parameter>
|
|
|
|
## </interface>
|
|
|
|
#
|
|
|
|
define(`kernel_sigchld_unlabeled_process',`
|
2005-06-03 12:25:14 +00:00
|
|
|
requires_block_template(`$0'_depend)
|
|
|
|
|
|
|
|
allow $1 unlabeled_t:process sigchld;
|
2005-05-27 20:44:05 +00:00
|
|
|
')
|
|
|
|
|
|
|
|
define(`kernel_sigchld_unlabeled_process_depend',`
|
2005-06-03 12:25:14 +00:00
|
|
|
type unlabeled_t;
|
|
|
|
|
|
|
|
class process sigchld;
|
2005-05-27 20:44:05 +00:00
|
|
|
')
|
|
|
|
|
|
|
|
########################################
|
2005-06-07 22:36:07 +00:00
|
|
|
## <interface name="kernel_ignore_get_unlabeled_block_device_attributes">
|
|
|
|
## <description>
|
|
|
|
## Do not audit attempts by caller to get attributes for
|
|
|
|
## unlabeled block devices.
|
|
|
|
## </description>
|
|
|
|
## <securitydesc>
|
|
|
|
## Causes attempts by caller to get attributes on unlabeled
|
|
|
|
## block devices to not be auditted.
|
|
|
|
## </securitydesc>
|
|
|
|
## <parameter name="domain">
|
|
|
|
## The process type not to audit.
|
|
|
|
## </parameter>
|
|
|
|
## </interface>
|
2005-05-27 20:44:05 +00:00
|
|
|
#
|
|
|
|
define(`kernel_ignore_get_unlabeled_block_device_attributes',`
|
2005-06-03 12:25:14 +00:00
|
|
|
requires_block_template(`$0'_depend)
|
|
|
|
|
|
|
|
allow $1 unlabeled_t:blk_file getattr;
|
2005-05-27 20:44:05 +00:00
|
|
|
')
|
|
|
|
|
|
|
|
define(`kernel_ignore_get_unlabeled_block_device_attributes_depend',`
|
2005-06-03 12:25:14 +00:00
|
|
|
type unlabeled_t;
|
|
|
|
|
|
|
|
class process getattr;
|
2005-05-27 20:44:05 +00:00
|
|
|
')
|
|
|
|
|
|
|
|
########################################
|
2005-06-07 22:36:07 +00:00
|
|
|
## <interface name="kernel_relabel_unlabeled_object">
|
|
|
|
## <description>
|
|
|
|
## Allow caller to relabel unlabeled objects.
|
|
|
|
## </description>
|
|
|
|
## <securitydesc>
|
|
|
|
##
|
|
|
|
## </securitydesc>
|
|
|
|
## <parameter name="domain">
|
|
|
|
## The process type relabeling the objects.
|
|
|
|
## </parameter>
|
|
|
|
## </interface>
|
2005-05-27 20:44:05 +00:00
|
|
|
#
|
|
|
|
define(`kernel_relabel_unlabeled_object',`
|
2005-06-03 12:25:14 +00:00
|
|
|
requires_block_template(`$0'_depend)
|
|
|
|
|
2005-06-08 20:28:45 +00:00
|
|
|
allow $1 unlabeled_t:dir_file_class_set { getattr relabelfrom };
|
2005-05-27 20:44:05 +00:00
|
|
|
')
|
|
|
|
|
|
|
|
define(`kernel_relabel_unlabeled_object_depend',`
|
2005-06-03 12:25:14 +00:00
|
|
|
type unlabeled_t;
|
|
|
|
|
|
|
|
class dir { getattr relabelfrom };
|
|
|
|
class file { getattr relabelfrom };
|
|
|
|
class lnk_file { getattr relabelfrom };
|
|
|
|
class fifo_file { getattr relabelfrom };
|
|
|
|
class sock_file { getattr relabelfrom };
|
|
|
|
class chr_file { getattr relabelfrom };
|
|
|
|
class blk_file { getattr relabelfrom };
|
2005-05-27 20:44:05 +00:00
|
|
|
')
|
|
|
|
|
2005-05-30 21:17:20 +00:00
|
|
|
########################################
|
|
|
|
## <interface name="kernel_search_usb_hardware_state_dir">
|
|
|
|
## <description>
|
|
|
|
## Search the directory containing USB hardware information.
|
|
|
|
## </description>
|
|
|
|
## <parameter name="domain">
|
|
|
|
## The type of the process performing this action.
|
|
|
|
## </parameter>
|
|
|
|
## </interface>
|
|
|
|
#
|
|
|
|
define(`kernel_search_usb_hardware_state_dir',`
|
2005-06-03 12:25:14 +00:00
|
|
|
requires_block_template(`$0'_depend)
|
|
|
|
|
|
|
|
allow $1 usbfs_t:dir search;
|
2005-05-30 21:17:20 +00:00
|
|
|
')
|
|
|
|
|
|
|
|
define(`kernel_search_usb_hardware_state_dir_depend',`
|
2005-06-03 12:25:14 +00:00
|
|
|
type usbfs_t;
|
|
|
|
|
|
|
|
class dir search;
|
2005-05-30 21:17:20 +00:00
|
|
|
')
|
|
|
|
|
2005-04-14 20:18:17 +00:00
|
|
|
########################################
|
2005-06-07 22:36:07 +00:00
|
|
|
## <interface name="kernel_list_usb_hardware">
|
|
|
|
## <description>
|
|
|
|
## Allow caller to get a list of usb hardware.
|
|
|
|
## </description>
|
|
|
|
## <securitydesc>
|
|
|
|
##
|
|
|
|
## </securitydesc>
|
|
|
|
## <parameter name="domain">
|
|
|
|
## The process type getting the list.
|
|
|
|
## </parameter>
|
|
|
|
## </interface>
|
2005-04-14 20:18:17 +00:00
|
|
|
#
|
|
|
|
define(`kernel_list_usb_hardware',`
|
2005-06-03 12:25:14 +00:00
|
|
|
requires_block_template(`$0'_depend)
|
|
|
|
|
2005-06-08 20:28:45 +00:00
|
|
|
allow $1 usbfs_t:dir r_dir_perms;
|
|
|
|
allow $1 usbfs_t:lnk_file r_file_perms;
|
2005-06-03 12:25:14 +00:00
|
|
|
allow $1 usbfs_t:file getattr;
|
2005-04-14 20:18:17 +00:00
|
|
|
')
|
|
|
|
|
|
|
|
define(`kernel_list_usb_hardware_depend',`
|
2005-06-03 12:25:14 +00:00
|
|
|
type usbfs_t;
|
|
|
|
|
2005-06-08 20:28:45 +00:00
|
|
|
class dir r_dir_perms;
|
2005-06-03 12:25:14 +00:00
|
|
|
class file getattr;
|
2005-06-08 20:28:45 +00:00
|
|
|
class lnk_file r_file_perms;
|
2005-04-14 20:18:17 +00:00
|
|
|
')
|
|
|
|
|
|
|
|
########################################
|
2005-05-19 21:06:06 +00:00
|
|
|
## <interface name="kernel_read_usb_hardware_state">
|
|
|
|
## <description>
|
|
|
|
## Read USB hardware information using
|
|
|
|
## the usbfs filesystem interface.
|
|
|
|
## </description>
|
|
|
|
## <parameter name="domain">
|
|
|
|
## The type of the process performing this action.
|
|
|
|
## </parameter>
|
|
|
|
## </interface>
|
2005-04-14 20:18:17 +00:00
|
|
|
#
|
|
|
|
define(`kernel_read_usb_hardware_state',`
|
2005-06-03 12:25:14 +00:00
|
|
|
requires_block_template(`$0'_depend)
|
|
|
|
|
2005-06-08 20:28:45 +00:00
|
|
|
allow $1 usbfs_t:dir r_dir_perms;
|
|
|
|
allow $1 usbfs_t:{ file lnk_file } r_file_perms;
|
2005-04-14 20:18:17 +00:00
|
|
|
')
|
|
|
|
|
|
|
|
define(`kernel_read_usb_hardware_state_depend',`
|
2005-06-03 12:25:14 +00:00
|
|
|
type usbfs_t;
|
|
|
|
|
2005-06-08 20:28:45 +00:00
|
|
|
class dir r_dir_perms;
|
|
|
|
class file r_file_perms;
|
|
|
|
class lnk_file r_file_perms;
|
2005-04-14 20:18:17 +00:00
|
|
|
')
|
|
|
|
|
|
|
|
########################################
|
2005-06-07 22:36:07 +00:00
|
|
|
## <interface name="kernel_modify_usb_hardware_config_option">
|
|
|
|
## <description>
|
|
|
|
## Allow caller to modify usb hardware configuration files.
|
|
|
|
## </description>
|
|
|
|
## <securitydesc>
|
|
|
|
##
|
|
|
|
## </securitydesc>
|
|
|
|
## <parameter name="domain">
|
|
|
|
## The process type modifying the options.
|
|
|
|
## </parameter>
|
|
|
|
## </interface>
|
2005-04-14 20:18:17 +00:00
|
|
|
#
|
|
|
|
define(`kernel_modify_usb_hardware_config_option',`
|
2005-06-03 12:25:14 +00:00
|
|
|
requires_block_template(`$0'_depend)
|
|
|
|
|
2005-06-08 20:28:45 +00:00
|
|
|
allow $1 usbfs_t:dir r_dir_perms;
|
|
|
|
allow $1 usbfs_t:lnk_file r_file_perms;
|
|
|
|
allow $1 usbfs_t:file rw_file_perms;
|
2005-04-14 20:18:17 +00:00
|
|
|
')
|
|
|
|
|
|
|
|
define(`kernel_modify_usb_hardware_config_option_depend',`
|
2005-06-03 12:25:14 +00:00
|
|
|
type usbfs_t;
|
|
|
|
|
2005-06-08 20:28:45 +00:00
|
|
|
class dir r_dir_perms;
|
|
|
|
class file rw_file_perms;
|
|
|
|
class lnk_file r_file_perms;
|
2005-04-14 20:18:17 +00:00
|
|
|
')
|
|
|
|
|
|
|
|
###################################################################
|
|
|
|
# #
|
|
|
|
# These interfaces are reversed, to decouple the base module from #
|
|
|
|
# the programs that the kernel runs, such as init and insmod, so #
|
|
|
|
# the base module is self-contained. These styles of interfaces #
|
|
|
|
# should not be used anywhere else. #
|
|
|
|
# #
|
|
|
|
###################################################################
|
|
|
|
|
|
|
|
########################################
|
2005-06-07 22:36:07 +00:00
|
|
|
## <interface name="kernel_sigchld_from">
|
|
|
|
## <description>
|
|
|
|
## Receive sigchild from kernel.
|
|
|
|
## </description>
|
|
|
|
## <securitydesc>
|
|
|
|
##
|
|
|
|
## </securitydesc>
|
|
|
|
## <parameter name="domain">
|
|
|
|
## The process type receiving the signal.
|
|
|
|
## </parameter>
|
|
|
|
## </interface>
|
2005-04-14 20:18:17 +00:00
|
|
|
#
|
|
|
|
define(`kernel_sigchld_from',`
|
2005-06-03 12:25:14 +00:00
|
|
|
requires_block_template(`$0'_depend)
|
|
|
|
|
|
|
|
allow kernel_t $1:process sigchld;
|
2005-04-14 20:18:17 +00:00
|
|
|
')
|
|
|
|
|
|
|
|
define(`kernel_sigchld_from_depend',`
|
2005-06-03 12:25:14 +00:00
|
|
|
type kernel_t;
|
|
|
|
|
|
|
|
class process sigchld;
|
2005-04-14 20:18:17 +00:00
|
|
|
')
|
|
|
|
|
|
|
|
########################################
|
2005-06-07 22:36:07 +00:00
|
|
|
## <interface name="kernel_unlabeled_sigchld_from">
|
|
|
|
## <description>
|
|
|
|
## Receive sigchld from unlabeled processes.
|
|
|
|
## </description>
|
|
|
|
## <securitydesc>
|
|
|
|
##
|
|
|
|
## </securitydesc>
|
|
|
|
## <parameter name="domain">
|
|
|
|
## The process type receiving the signal.
|
|
|
|
## </parameter>
|
|
|
|
## </interface>
|
2005-04-14 20:18:17 +00:00
|
|
|
#
|
|
|
|
define(`kernel_unlabeled_sigchld_from',`
|
2005-06-03 12:25:14 +00:00
|
|
|
requires_block_template(`$0'_depend)
|
|
|
|
|
|
|
|
allow unlabeled_t $1:process sigchld;
|
2005-04-14 20:18:17 +00:00
|
|
|
')
|
|
|
|
|
|
|
|
define(`kernel_unlabeled_sigchld_from_depend',`
|
2005-06-03 12:25:14 +00:00
|
|
|
type unlabeled_t;
|
|
|
|
|
|
|
|
class process sigchld;
|
2005-04-14 20:18:17 +00:00
|
|
|
')
|
|
|
|
|
|
|
|
########################################
|
2005-06-07 22:36:07 +00:00
|
|
|
## <interface name="kernel_read_directory_from">
|
|
|
|
## <description>
|
|
|
|
## XXX FIXME
|
|
|
|
## </description>
|
|
|
|
## <securitydesc>
|
|
|
|
##
|
|
|
|
## </securitydesc>
|
|
|
|
## <parameter name="domain">
|
|
|
|
##
|
|
|
|
## </parameter>
|
|
|
|
## </interface>
|
2005-04-14 20:18:17 +00:00
|
|
|
#
|
|
|
|
define(`kernel_read_directory_from',`
|
2005-06-03 12:25:14 +00:00
|
|
|
requires_block_template(`$0'_depend)
|
|
|
|
|
2005-06-08 20:28:45 +00:00
|
|
|
allow kernel_t $1:dir r_dir_perms;
|
2005-04-14 20:18:17 +00:00
|
|
|
')
|
|
|
|
|
|
|
|
define(`kernel_read_directory_from_depend',`
|
2005-06-03 12:25:14 +00:00
|
|
|
type kernel_t;
|
|
|
|
|
2005-06-08 20:28:45 +00:00
|
|
|
class dir r_dir_perms;
|
2005-04-14 20:18:17 +00:00
|
|
|
')
|
2005-06-01 14:17:43 +00:00
|
|
|
|
|
|
|
## </module>
|