Add rule to allow access qvr to use tcp/udp socket
Change-Id: Ib3ac662addc1f651aa210403d154be3ed1dc5b79 (cherry picked from commit b54fcb5bd0a21d20223dd4eda792b93c0826c15b)
This commit is contained in:
parent
9df2d4be70
commit
f56136939e
1 changed files with 9 additions and 1 deletions
10
qva/vendor/common/qvrd_vndr.te
vendored
10
qva/vendor/common/qvrd_vndr.te
vendored
|
@ -30,9 +30,12 @@ type vendor_qvrd_vndr_exec, vendor_file_type, exec_type, file_type;
|
|||
|
||||
init_daemon_domain(vendor_qvrd_vndr)
|
||||
|
||||
#Inherit base network permissions from netd
|
||||
net_domain(vendor_qvrd_vndr)
|
||||
|
||||
binder_service(vendor_qvrd_vndr)
|
||||
|
||||
hal_server_domain(vendor_qvrd_vndr, vendor_hal_qvrservice_qti)
|
||||
hal_server_domain_bypass(vendor_qvrd_vndr, vendor_hal_qvrservice_qti)
|
||||
binder_call(vendor_hal_qvrservice_qti_client, vendor_hal_qvrservice_qti_server)
|
||||
binder_call(vendor_hal_qvrservice_qti_server, vendor_hal_qvrservice_qti_client)
|
||||
hal_attribute_service(vendor_hal_qvrservice_qti, vendor_hal_qvrd_service)
|
||||
|
@ -133,6 +136,11 @@ get_prop(vendor_qvrd_vndr, vendor_qvr_persist_prop)
|
|||
get_prop(vendor_qvrd_vndr, vendor_qvrd_persist_prop)
|
||||
allow vendor_qvrd_vndr video_device:chr_file w_file_perms;
|
||||
|
||||
#Allow udp socket
|
||||
allow vendor_qvrd_vndr self:udp_socket create_socket_perms_no_ioctl;
|
||||
|
||||
allow vendor_qvrd_vndr self:netlink_route_socket create_socket_perms_no_ioctl;
|
||||
|
||||
#allow qvrd_vndr to access hid event
|
||||
allow vendor_qvrd_vndr vendor_sysfs_usb_node:dir r_dir_perms;
|
||||
allow vendor_qvrd_vndr vendor_sysfs_usb_node:file rw_file_perms;
|
||||
|
|
Loading…
Reference in a new issue