Skip to content
Snippets Groups Projects
Commit 1dafee26 authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "charger: allow to read /sys/class/power_supply"

parents 74828e65 2d64886d
No related branches found
No related tags found
No related merge requests found
......@@ -6,10 +6,12 @@ type charger, domain;
allow charger kmsg_device:chr_file rw_file_perms;
# Read access to pseudo filesystems.
allow charger sysfs_type:dir search;
r_dir_file(charger, rootfs)
r_dir_file(charger, cgroup)
# Allow to read /sys/class/power_supply directory
allow charger sysfs_type:dir r_dir_perms;
allow charger self:global_capability_class_set { sys_tty_config };
allow charger self:global_capability_class_set sys_boot;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment