service firewalldaemon /vendor/bin/firewalldaemon class main user system group system inet net_admin disabled capabilities NET_ADMIN NET_RAW socket firewall stream 0660 root system
msmnile_gvmq:/ # dmesg|grep -ie firewall dmesg|grep -ie firewall [ 6592.467286] init: Received control message 'start' for 'firewalldaemon' from pid: 29798 (setprop ctl.start firewalldaemon) [ 6592.467412] init: Could not ctl.start for service firewalldaemon: File /vendor/bin/firewalldaemon(labeled "u:object_r:vendor_file:s0") has incorrect label or no domain transition from u:r:init:s0 to another SELinux domain defined. Have you configured your service correctly? https://source.android.com/security/selinux/device-policy#label_new_services_and_address_denials
# firewalldaemon service type firewalldaemon, domain; type firewalldaemon_exec, vendor_file_type, exec_type, file_type;
init_daemon_domain(firewalldaemon)
step 3: 在init.target.rc中添加需要启动的服务
1 2 3 4 5 6 7 8 9
//device/qcom/msmnile_gvmq/init.target.rc
service firewalldaemon /vendor/bin/firewalldaemon class main user system group system inet net_admin disabled capabilities NET_ADMIN NET_RAW socket tsfirewall stream 0660 root system
重新编译系统并且烧写img
2.4 编译问题
1 2
// 编译日志输出: make -j4 2>&1 | tee android_build_log.txt