Skip to contentSkip to conversation

patch: policy for powernowd

DISCUSSION Thomas Bleher 3 participants 4 messages Dec 9, 2004 – Dec 20, 2004 SELinux security module

lore
Share & tools
lore
#0 lore raw

Attached is policy for powernowd.

Thomas

Signature · 2 lines
http://www.cip.ifi.lmu.de/~bleher/selinux/ - my SELinux pages
GPG-Fingerprint: BC4F BB16 30D6 F253 E3EA  D09E C562 2BAE B2F4 ABE7

# DESC powernowd - Daemon to control the speed and voltage of cpus #
# Author: Thomas Bleher <[email protected]>

daemon_base_domain(powernowd)
read_locale(powernowd_t)

# write values under /sys/devices/system/cpu/cpu0/cpufreq/
allow powernowd_t sysfs_t:file write;
# read /proc/cpuinfo
allow powernowd_t proc_t:file { getattr read };
# read /etc/fstab and /etc/mtab
allow powernowd_t { etc_t etc_runtime_t }:file { getattr read };
allow powernowd_t self:process setsched;
allow powernowd_t self:unix_dgram_socket create_socket_perms;
# powernowd
/usr/sbin/powernowd	--	system_u:object_r:powernowd_exec_t
#1 lore raw
Quoted 1 line · Thomas Bleher

Attached is policy for powernowd.

This is just a slight variation of cpuspeed.te. Does powernowd really need its own policy?

Signature · 9 lines
Chris PeBenito
Tresys Technology, LLC
(410) 290-1411 x150


--
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.
#2 lore raw
Quoted 5 lines · Christopher J. PeBenito
Quoted 1 line · Thomas Bleher

Attached is policy for powernowd.

This is just a slight variation of cpuspeed.te. Does powernowd really need its own policy?

Not necessarily. I can merge it if wanted. It's just that there _are_ differences (albeit not that big) and the code bases are completely separate (AFAIK). As the policy is very simple, I decided to just write it from scratch.

Thomas

Signature · 2 lines
http://www.cip.ifi.lmu.de/~bleher/selinux/ - my SELinux pages
GPG-Fingerprint: BC4F BB16 30D6 F253 E3EA  D09E C562 2BAE B2F4 ABE7
#3 lore raw
In reply to Thomas Bleher

Merged.

Quoted 3 lines · Thomas Bleher

Attached is policy for powernowd.

Thomas

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.