cpuspeed and powernow
Subsystems (2)
I don't believe that we need separate policies for cpuspeed and powernow. They both perform the same function but for different CPUs so there is no possibility of them both running at the same time (AFAIK) and therefore no benefit in having separate domains.
I have attached a patch that adds the appropriate functionality to cpuspeed.te and cpuspeed.fc. James please add this patch and remove powernowd.te and powernowd.fc.
Signature · 4 lines
http://www.coker.com.au/selinux/ My NSA Security Enhanced Linux packages http://www.coker.com.au/bonnie++/ Bonnie++ hard drive benchmark http://www.coker.com.au/postal/ Postal SMTP/POP benchmark http://www.coker.com.au/~russell/ My home page
program/unused/cpuspeed.te renamed from usr/src/se/policy/domains/program/unused/cpuspeed.te +9 -4
@@ -1,12 +1,17 @@ -#DESC cpuspeed - domain for microcode_ctl and other programs to speed CPU +#DESC cpuspeed - domain for microcode_ctl, powernowd, etc # -# Author: Russell Coker <[email protected]> +# Authors: Russell Coker <[email protected]> +# Thomas Bleher <[email protected]> # daemon_base_domain(cpuspeed) +read_locale(cpuspeed_t) + allow cpuspeed_t sysfs_t:dir search; allow cpuspeed_t sysfs_t:file rw_file_perms; allow cpuspeed_t proc_t:dir r_dir_perms; allow cpuspeed_t proc_t:file { getattr read }; -allow cpuspeed_t etc_runtime_t:file { getattr read }; -allow cpuspeed_t etc_t:file { getattr read }; +allow cpuspeed_t { etc_t etc_runtime_t }:file { getattr read }; + +allow cpuspeed_t self:process setsched; +allow cpuspeed_t self:unix_dgram_socket create_socket_perms;
program/cpuspeed.fc renamed from usr/src/se/policy/file_contexts/program/cpuspeed.fc +1 -0
@@ -1,2 +1,3 @@ # cpuspeed /usr/sbin/cpuspeed -- system_u:object_r:cpuspeed_exec_t +/usr/sbin/powernowd -- system_u:object_r:cpuspeed_exec_t
Merged. I also removed the powernowd policy from CVS.
Quoted 8 lines · Russell Coker
I don't believe that we need separate policies for cpuspeed and powernow. They both perform the same function but for different CPUs so there is no possibility of them both running at the same time (AFAIK) and therefore no benefit in having separate domains.
I have attached a patch that adds the appropriate functionality to cpuspeed.te and cpuspeed.fc. James please add this patch and remove powernowd.te and powernowd.fc.
Signature · 7 lines
James Carter <[email protected]> National Security Agency -- This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.