Skip to content
Snippets Groups Projects
Commit 456fa279 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Allow access to /proc/config.gz for priv_app and recovery" into oc-dev

parents 67f40ec5 04654427
No related branches found
No related tags found
No related merge requests found
...@@ -82,6 +82,9 @@ r_dir_file(priv_app, sysfs_type) ...@@ -82,6 +82,9 @@ r_dir_file(priv_app, sysfs_type)
r_dir_file(priv_app, proc) r_dir_file(priv_app, proc)
r_dir_file(priv_app, rootfs) r_dir_file(priv_app, rootfs)
# Allow GMS core to open kernel config for OTA matching through libvintf
allow priv_app config_gz:file { open read getattr };
# access the mac address # access the mac address
allowxperm priv_app self:udp_socket ioctl SIOCGIFHWADDR; allowxperm priv_app self:udp_socket ioctl SIOCGIFHWADDR;
......
...@@ -51,6 +51,9 @@ recovery_only(` ...@@ -51,6 +51,9 @@ recovery_only(`
# Write to /proc/sys/vm/drop_caches # Write to /proc/sys/vm/drop_caches
allow recovery proc_drop_caches:file w_file_perms; allow recovery proc_drop_caches:file w_file_perms;
# Read kernel config through libvintf for OTA matching
allow recovery config_gz:file { open read getattr };
# Write to /sys/class/android_usb/android0/enable. # Write to /sys/class/android_usb/android0/enable.
# TODO: create more specific label? # TODO: create more specific label?
allow recovery sysfs:file w_file_perms; allow recovery sysfs:file w_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