2020-07-04 13:30:45 +00:00
|
|
|
policy_module(hwloc, 1.3.1)
|
2018-06-23 13:00:56 +00:00
|
|
|
|
|
|
|
########################################
|
|
|
|
#
|
|
|
|
# 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)
|
|
|
|
|
2019-09-11 00:05:46 +00:00
|
|
|
type hwloc_runtime_t alias hwloc_var_run_t;
|
2020-06-27 21:11:48 +00:00
|
|
|
files_runtime_file(hwloc_runtime_t)
|
2019-09-11 00:05:46 +00:00
|
|
|
|
2018-06-23 13:00:56 +00:00
|
|
|
########################################
|
|
|
|
#
|
|
|
|
# Local policy
|
|
|
|
#
|
|
|
|
|
2019-09-08 20:55:02 +00:00
|
|
|
allow hwloc_dhwd_t hwloc_runtime_t:dir manage_dir_perms;
|
|
|
|
allow hwloc_dhwd_t hwloc_runtime_t:file manage_file_perms;
|
2020-06-27 21:11:48 +00:00
|
|
|
files_runtime_filetrans(hwloc_dhwd_t, hwloc_runtime_t, dir)
|
2018-06-23 13:00:56 +00:00
|
|
|
|
|
|
|
dev_read_sysfs(hwloc_dhwd_t)
|