Merge "Revert "Enforce RTM_GETLINK restrictions on all 3p apps""
This commit is contained in:
commit
d083d24c0d
4 changed files with 15 additions and 1 deletions
|
@ -117,7 +117,12 @@ neverallow all_untrusted_apps *:{
|
|||
} *;
|
||||
|
||||
# Disallow sending RTM_GETLINK messages on netlink sockets.
|
||||
neverallow all_untrusted_apps domain:netlink_route_socket { bind nlmsg_readpriv };
|
||||
neverallow {
|
||||
all_untrusted_apps
|
||||
-untrusted_app_25
|
||||
-untrusted_app_27
|
||||
-untrusted_app_29
|
||||
} domain:netlink_route_socket { bind nlmsg_readpriv };
|
||||
|
||||
# Do not allow untrusted apps access to /cache
|
||||
neverallow { all_untrusted_apps -mediaprovider } { cache_file cache_recovery_file }:dir ~{ r_dir_perms };
|
||||
|
|
|
@ -48,3 +48,6 @@ auditallow untrusted_app_25 ashmem_device:chr_file open;
|
|||
|
||||
# Read /mnt/sdcard symlink.
|
||||
allow untrusted_app_25 mnt_sdcard_file:lnk_file r_file_perms;
|
||||
|
||||
# allow binding to netlink route sockets and sending RTM_GETLINK messages.
|
||||
allow untrusted_app_25 self:netlink_route_socket { bind nlmsg_readpriv };
|
||||
|
|
|
@ -36,3 +36,6 @@ auditallow untrusted_app_27 ashmem_device:chr_file open;
|
|||
|
||||
# Read /mnt/sdcard symlink.
|
||||
allow untrusted_app_27 mnt_sdcard_file:lnk_file r_file_perms;
|
||||
|
||||
# allow binding to netlink route sockets and sending RTM_GETLINK messages.
|
||||
allow untrusted_app_27 self:netlink_route_socket { bind nlmsg_readpriv };
|
||||
|
|
|
@ -14,3 +14,6 @@ app_domain(untrusted_app_29)
|
|||
untrusted_app_domain(untrusted_app_29)
|
||||
net_domain(untrusted_app_29)
|
||||
bluetooth_domain(untrusted_app_29)
|
||||
|
||||
# allow binding to netlink route sockets and sending RTM_GETLINK messages.
|
||||
allow untrusted_app_29 self:netlink_route_socket { bind nlmsg_readpriv };
|
||||
|
|
Loading…
Reference in a new issue