Add rule to allow access qvr to use tcp/udp socket

Change-Id: Ib3ac662addc1f651aa210403d154be3ed1dc5b79
(cherry picked from commit b54fcb5bd0a21d20223dd4eda792b93c0826c15b)
This commit is contained in:
Samyak Jain 2022-02-22 12:03:44 +05:30 committed by shrkum
parent 9df2d4be70
commit f56136939e

View file

@ -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;