From d94db1166eb02214c975d50b19c2dcccaa1b3d73 Mon Sep 17 00:00:00 2001 From: "rick.chan" Date: Thu, 21 Jan 2021 19:45:14 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E6=A0=BC=E5=BC=8F.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: rick.chan --- .../OperatingSystem/Android/Android_开发简明实用技术.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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); ```