Merge "Define policy for /proc/uid_io/stats"

This commit is contained in:
Treehugger Robot 2017-01-18 20:25:13 +00:00 committed by Gerrit Code Review
commit becc13e86e
3 changed files with 7 additions and 3 deletions

View file

@ -32,6 +32,7 @@ genfscon proc /timer_stats u:object_r:proc_timer:s0
genfscon proc /tty/drivers u:object_r:proc_tty_drivers:s0
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 /zoneinfo u:object_r:proc_zoneinfo:s0

View file

@ -4,14 +4,14 @@ type storaged_exec, exec_type, file_type;
init_daemon_domain(storaged)
# Write to /dev/kmsg (opened in init)
allow storaged kmsg_device:chr_file { write append };
# Read access to pseudo filesystems
r_dir_file(storaged, sysfs_type)
r_dir_file(storaged, proc_net)
r_dir_file(storaged, domain)
# Read /proc/uid_io/stats
allow storaged proc_uid_io_stats:file r_file_perms;
allow storaged self:capability { setgid setuid sys_nice sys_ptrace };
userdebug_or_eng(`
@ -22,6 +22,8 @@ userdebug_or_eng(`
# Binder permissions
allow storaged storaged_service:service_manager add;
allow storaged permission_service:service_manager find;
binder_use(storaged)
binder_call(storaged, system_server)

View file

@ -23,6 +23,7 @@ type proc_timer, fs_type;
type proc_tty_drivers, fs_type;
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_zoneinfo, fs_type;
type selinuxfs, fs_type, mlstrustedobject;