Skip to content
Snippets Groups Projects
Commit f5ea6145 authored by Jeff Vander Stoep's avatar Jeff Vander Stoep
Browse files

Shell: grant permission to run lsmod

lsmod needs access to /proc/modules

Test: build, run lsmod
Change-Id: Icb6ea6ce791cc6a22c89aa8e90c44749497c8468
parent d5678c11
No related branches found
No related tags found
No related merge requests found
...@@ -106,12 +106,13 @@ allow shell dumpstate:binder call; ...@@ -106,12 +106,13 @@ allow shell dumpstate:binder call;
hwbinder_use(shell) hwbinder_use(shell)
allow shell hwservicemanager:hwservice_manager list; allow shell hwservicemanager:hwservice_manager list;
# allow shell to look through /proc/ for ps, top, netstat # allow shell to look through /proc/ for lsmod, ps, top, netstat.
r_dir_file(shell, proc) r_dir_file(shell, proc)
r_dir_file(shell, proc_net) r_dir_file(shell, proc_net)
allow shell proc_filesystems:file r_file_perms; allow shell proc_filesystems:file r_file_perms;
allow shell proc_interrupts:file r_file_perms; allow shell proc_interrupts:file r_file_perms;
allow shell proc_meminfo: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_stat:file r_file_perms;
allow shell proc_timer:file r_file_perms; allow shell proc_timer:file r_file_perms;
allow shell proc_zoneinfo:file r_file_perms; allow shell proc_zoneinfo:file r_file_perms;
......
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