diff --git a/private/genfs_contexts b/private/genfs_contexts index a2d9b892fe5b405718f2907a881637abaffb19c8..26301ae034ccf7647fbe01bb025cb89b89d8690d 100644 --- a/private/genfs_contexts +++ b/private/genfs_contexts @@ -40,6 +40,7 @@ genfscon proc /uid_cputime/show_uid_stat u:object_r:proc_uid_cputime_showstat:s0 genfscon proc /uid_cputime/remove_uid_range u:object_r:proc_uid_cputime_removeuid:s0 genfscon proc /uid_io/stats u:object_r:proc_uid_io_stats:s0 genfscon proc /uid_procstat/set u:object_r:proc_uid_procstat_set:s0 +genfscon proc /uid_time_in_state u:object_r:proc_uid_time_in_state:s0 genfscon proc /zoneinfo u:object_r:proc_zoneinfo:s0 # selinuxfs booleans can be individually labeled. diff --git a/private/system_server.te b/private/system_server.te index bb8080a02f22e937103b644f7d6b98eaa5734af8..4223f36e1bfc9287c3bf1e13ae5fb9358b55acf6 100644 --- a/private/system_server.te +++ b/private/system_server.te @@ -130,6 +130,9 @@ allow system_server proc_uid_cputime_removeuid:file { w_file_perms getattr }; # Write /proc/uid_procstat/set. allow system_server proc_uid_procstat_set:file { w_file_perms getattr }; +# Read /proc/uid_time_in_state. +allow system_server proc_uid_time_in_state:file r_file_perms; + # Write to /proc/sysrq-trigger. allow system_server proc_sysrq:file rw_file_perms; diff --git a/public/file.te b/public/file.te index ad978e856d74e61e310aad30404c4757f598be5e..5a1f1133151dac0d03c8846aa25587ea04d2a76f 100644 --- a/public/file.te +++ b/public/file.te @@ -28,6 +28,7 @@ type proc_uid_cputime_showstat, fs_type; type proc_uid_cputime_removeuid, fs_type; type proc_uid_io_stats, fs_type; type proc_uid_procstat_set, fs_type; +type proc_uid_time_in_state, fs_type; type proc_zoneinfo, fs_type; type selinuxfs, fs_type, mlstrustedobject; type cgroup, fs_type, mlstrustedobject;