diff --git a/policy/modules/system/systemd.if b/policy/modules/system/systemd.if index 8d2bb8dac..6353ca69a 100644 --- a/policy/modules/system/systemd.if +++ b/policy/modules/system/systemd.if @@ -37,6 +37,24 @@ interface(`systemd_read_hwdb',` read_files_pattern($1, systemd_hwdb_t, systemd_hwdb_t) ') +####################################### +## +## Allow domain to map udev hwdb file +## +## +## +## domain allowed access +## +## +# +interface(`systemd_map_hwdb',` + gen_require(` + type systemd_hwdb_t; + ') + + allow $1 systemd_hwdb_t:file map; +') + ###################################### ## ## Read systemd_login PID files. diff --git a/policy/modules/system/udev.te b/policy/modules/system/udev.te index 3cbf7effd..097c625ae 100644 --- a/policy/modules/system/udev.te +++ b/policy/modules/system/udev.te @@ -248,6 +248,7 @@ ifdef(`init_systemd',` init_get_generic_units_status(udev_t) init_stream_connect(udev_t) + systemd_map_hwdb(udev_t) systemd_read_hwdb(udev_t) systemd_read_logind_sessions_files(udev_t) systemd_read_logind_pids(udev_t)