diff --git a/private/domain.te b/private/domain.te index 66fb640240f58cb1368ef0c4a03425b1a899afb6..ec34213997ae0d3987b6fda1e1714a840a45a870 100644 --- a/private/domain.te +++ b/private/domain.te @@ -27,7 +27,6 @@ full_treble_only(` -dumpstate -platform_app -priv_app - -shell -system_app -vold -vendor_init diff --git a/public/shell.te b/public/shell.te index 3ef14866c9f057d08dc931434d3642b7d3bc4df5..cac84d42b8d132669e06fb770a9703e05cca345e 100644 --- a/public/shell.te +++ b/public/shell.te @@ -107,16 +107,21 @@ hwbinder_use(shell) allow shell hwservicemanager:hwservice_manager list; # allow shell to look through /proc/ for lsmod, ps, top, netstat. -r_dir_file(shell, proc) r_dir_file(shell, proc_net) -allow shell proc_filesystems:file r_file_perms; -allow shell proc_interrupts:file r_file_perms; -allow shell proc_meminfo:file r_file_perms; -allow shell proc_modules:file r_file_perms; -allow shell proc_stat:file r_file_perms; -allow shell proc_timer:file r_file_perms; -allow shell proc_version:file r_file_perms; -allow shell proc_zoneinfo:file r_file_perms; + +allow shell { + proc_asound + proc_filesystems + proc_interrupts + proc_meminfo + proc_modules + proc_stat + proc_timer + proc_uptime + proc_version + proc_zoneinfo +}:file r_file_perms; + r_dir_file(shell, cgroup) allow shell domain:dir { search open read getattr }; allow shell domain:{ file lnk_file } { open read getattr };