Update refpolicy to handle hwloc

The Portable Hardware Locality (hwloc) software package provides a
portable abstraction (across OS, versions, architectures, ...) of the
hierarchical topology of modern architectures, including NUMA memory
nodes, sockets, shared caches, cores and simultaneous multithreading. It
also gathers various system attributes such as cache and memory
information as well as the locality of I/O devices such as network
interfaces, InfiniBand HCAs or GPUs.

Following changes enable:
- add interface to change dirs in /var/run
- add optional policies for hwloc-dump-hwdata

V3:
Remove files_rw_pid_dirs()
Call hwloc_admin(sysadm_t) instead of hwloc_manage_runtime(sysadm_t)
Adjust calls to renamed hwloc dhwd run and exec interfaces

Signed-off-by: Dominick Grift <dac.override@gmail.com>
This commit is contained in:
Dominick Grift 2016-04-28 12:06:40 +02:00 committed by Chris PeBenito
parent 4e8768d8a0
commit 6232348be8
2 changed files with 10 additions and 0 deletions

View File

@ -457,6 +457,11 @@ optional_policy(`
hostname_run(sysadm_t, sysadm_r)
')
optional_policy(`
hwloc_admin(sysadm_t)
hwloc_run_dhwd(sysadm_t, sysadm_r)
')
optional_policy(`
howl_admin(sysadm_t, sysadm_r)
')

View File

@ -618,6 +618,11 @@ template(`userdom_common_user_template',`
')
')
optional_policy(`
hwloc_exec_dhwd($1_t)
hwloc_read_runtime_files($1_t)
')
optional_policy(`
inetd_use_fds($1_t)
inetd_rw_tcp_sockets($1_t)