Skip to content
Snippets Groups Projects
Commit 93760664 authored by Nick Kralevich's avatar Nick Kralevich Committed by android-build-merger
Browse files

Make /proc/sys/kernel/random available to everyone

am: 9d9c370f

Change-Id: I9499a44812b32f7f2cde3d069722d442d21ad6da
parents 497e7aeb 9d9c370f
No related branches found
No related tags found
No related merge requests found
...@@ -77,6 +77,8 @@ allow { domain -servicemanager -vndservicemanager -isolated_app } hwbinder_devic ...@@ -77,6 +77,8 @@ allow { domain -servicemanager -vndservicemanager -isolated_app } hwbinder_devic
allow domain ptmx_device:chr_file rw_file_perms; allow domain ptmx_device:chr_file rw_file_perms;
allow domain alarm_device:chr_file r_file_perms; allow domain alarm_device:chr_file r_file_perms;
allow domain random_device:chr_file rw_file_perms; allow domain random_device:chr_file rw_file_perms;
allow domain proc_random:dir r_dir_perms;
allow domain proc_random:file r_file_perms;
allow domain properties_device:dir { search getattr }; allow domain properties_device:dir { search getattr };
allow domain properties_serial:file r_file_perms; allow domain properties_serial:file r_file_perms;
......
...@@ -38,9 +38,8 @@ allow update_engine_common shell_exec:file rx_file_perms; ...@@ -38,9 +38,8 @@ allow update_engine_common shell_exec:file rx_file_perms;
# Allow update_engine_common to suspend, resume and kill the postinstall program. # Allow update_engine_common to suspend, resume and kill the postinstall program.
allow update_engine_common postinstall:process { signal sigstop sigkill }; allow update_engine_common postinstall:process { signal sigstop sigkill };
# access /proc/cmdline and /proc/sys/kernel/random/ # access /proc/cmdline
allow update_engine_common proc_cmdline:file r_file_perms; allow update_engine_common proc_cmdline:file r_file_perms;
r_dir_file(update_engine_common, proc_random)
# Read files in /sys/firmware/devicetree/base/firmware/android/ # Read files in /sys/firmware/devicetree/base/firmware/android/
r_dir_file(update_engine_common, sysfs_dt_firmware_android) r_dir_file(update_engine_common, sysfs_dt_firmware_android)
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