Merge "ashmem: expand app access"
This commit is contained in:
commit
e8cb09db42
4 changed files with 4 additions and 4 deletions
|
@ -65,7 +65,7 @@ can_profile_heap(ephemeral_app)
|
|||
allow ephemeral_app system_server:udp_socket {
|
||||
connect getattr read recvfrom sendto write getopt setopt };
|
||||
|
||||
allow ephemeral_app ashmem_device:chr_file { getattr read write ioctl };
|
||||
allow ephemeral_app ashmem_device:chr_file { getattr read ioctl lock map append write };
|
||||
|
||||
###
|
||||
### neverallow rules
|
||||
|
|
|
@ -64,7 +64,7 @@ unix_socket_connect(isolated_app, traced_producer, traced)
|
|||
# debuggable.
|
||||
can_profile_heap(isolated_app)
|
||||
|
||||
allow isolated_app ashmem_device:chr_file { getattr read write ioctl };
|
||||
allow isolated_app ashmem_device:chr_file { getattr read ioctl lock map append write };
|
||||
|
||||
#####
|
||||
##### Neverallow
|
||||
|
|
|
@ -43,4 +43,4 @@ allowxperm mediaprovider functionfs:file ioctl FUNCTIONFS_ENDPOINT_DESC;
|
|||
set_prop(mediaprovider, ffs_prop)
|
||||
set_prop(mediaprovider, exported_ffs_prop)
|
||||
|
||||
allow mediaprovider ashmem_device:chr_file { getattr read write ioctl };
|
||||
allow mediaprovider ashmem_device:chr_file { getattr read ioctl lock map append write };
|
||||
|
|
|
@ -188,4 +188,4 @@ userdebug_or_eng(`
|
|||
|
||||
# Allow access to ashmemd to request /dev/ashmem fds.
|
||||
binder_call(untrusted_app_all, ashmemd)
|
||||
allow untrusted_app_all ashmem_device:chr_file { getattr read write ioctl };
|
||||
allow untrusted_app_all ashmem_device:chr_file { getattr read ioctl lock map append write };
|
||||
|
|
Loading…
Reference in a new issue