diff --git a/Software/Development/OperatingSystem/Android/Android_开发简明实用技术.md b/Software/Development/OperatingSystem/Android/Android_开发简明实用技术.md index 464dff5..3a517fe 100644 --- a/Software/Development/OperatingSystem/Android/Android_开发简明实用技术.md +++ b/Software/Development/OperatingSystem/Android/Android_开发简明实用技术.md @@ -229,11 +229,12 @@ type demo, domain; type demo_exec, exec_type, vendor_file_type, file_type; init_daemon_domain(demo) +net_domain(demo) +unix_socket_connect(demo, netd, netd) + allow demo self:capability { net_admin net_raw net_bind_service }; allow demo device:dir { create open read write ioctl }; allow demo self:tcp_socket { create connect name_connect lock append bind name_bind listen accept recvfrom sendto read write getattr setattr getopt setopt }; allow demo port:tcp_socket { create connect name_connect lock append bind name_bind listen accept recvfrom sendto read write getattr setattr getopt setopt }; allow demo fwmarkd_socket:sock_file { write }; -net_domain(demo) -unix_socket_connect(demo, netd, netd); ```