forked from fedora-selinux/selinux-policy
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
47 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
/usr/libexec/power-profiles-daemon -- gen_context(system_u:object_r:powerprofiles_exec_t,s0) | ||
|
||
/var/lib/power-profiles-daemon(/.*)? gen_context(system_u:object_r:powerprofiles_var_lib_t,s0) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
<summary>Power profiles handling over D-Bus</summary> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
policy_module(powerprofiles, 1.1.0) | ||
|
||
######################################## | ||
# | ||
# Declarations | ||
# | ||
|
||
type powerprofiles_t; | ||
type powerprofiles_exec_t; | ||
init_daemon_domain(powerprofiles_t, powerprofiles_exec_t) | ||
init_nnp_daemon_domain(powerprofiles_t) | ||
|
||
type powerprofiles_var_lib_t; | ||
files_type(powerprofiles_var_lib_t); | ||
|
||
permissive powerprofiles_t; | ||
|
||
allow powerprofiles_t powerprofiles_var_lib_t:dir search_dir_perms; | ||
allow powerprofiles_t self:netlink_kobject_uevent_socket create_socket_perms; | ||
|
||
kernel_read_proc_files(powerprofiles_t) | ||
|
||
dev_list_sysfs(powerprofiles_t) | ||
|
||
optional_policy(` | ||
dbus_connect_system_bus(powerprofiles_t) | ||
dbus_system_bus_client(powerprofiles_t) | ||
|
||
optional_policy(` | ||
policykit_dbus_chat(powerprofiles_t) | ||
') | ||
') | ||
|
||
optional_policy(` | ||
udev_search_pids(powerprofiles_t) | ||
') |