Semodule stopped using this many years ago. The policy_module() macro will continue to support an optional second parameter as version. If it is not specified, a default value of 1 is set. Signed-off-by: Chris PeBenito <pebenito@ieee.org>
32 lines
703 B
Plaintext
32 lines
703 B
Plaintext
policy_module(hwloc)
|
|
|
|
########################################
|
|
#
|
|
# Declarations
|
|
#
|
|
|
|
attribute_role hwloc_dhwd_roles;
|
|
roleattribute system_r hwloc_dhwd_roles;
|
|
|
|
type hwloc_dhwd_t;
|
|
type hwloc_dhwd_exec_t;
|
|
init_system_domain(hwloc_dhwd_t, hwloc_dhwd_exec_t)
|
|
role hwloc_dhwd_roles types hwloc_dhwd_t;
|
|
|
|
type hwloc_dhwd_unit_t;
|
|
init_unit_file(hwloc_dhwd_unit_t)
|
|
|
|
type hwloc_runtime_t alias hwloc_var_run_t;
|
|
files_runtime_file(hwloc_runtime_t)
|
|
|
|
########################################
|
|
#
|
|
# Local policy
|
|
#
|
|
|
|
allow hwloc_dhwd_t hwloc_runtime_t:dir manage_dir_perms;
|
|
allow hwloc_dhwd_t hwloc_runtime_t:file manage_file_perms;
|
|
files_runtime_filetrans(hwloc_dhwd_t, hwloc_runtime_t, dir)
|
|
|
|
dev_read_sysfs(hwloc_dhwd_t)
|