Commit 8929e7a4 authored by Mister Oyster's avatar Mister Oyster Committed by fire855
Browse files

sepolicy: use set_prop() now

parent b5d9822f
Loading
Loading
Loading
Loading
+5 −7
Original line number Diff line number Diff line
@@ -17,13 +17,11 @@ allow ccci_mdinit sysfs_devinfo:file r_file_perms;
allow ccci_mdinit nvram_device:blk_file rw_file_perms;
allow ccci_mdinit mtk_md_prop:property_service set;

allow ccci_mdinit ctl_ccci_fsd_prop:property_service set;
allow ccci_mdinit ctl_gsm0710muxd_prop:property_service set;
allow ccci_mdinit ctl_rildaemon_prop:property_service set;
allow ccci_mdinit radio_prop:property_service set;
allow ccci_mdinit ril_mux_report_case_prop:property_service set;
set_prop(ccci_mdinit, ctl_ccci_fsd_prop)
set_prop(ccci_mdinit, ctl_gsm0710muxd_prop)
set_prop(ccci_mdinit, ctl_rildaemon_prop)
set_prop(ccci_mdinit, radio_prop)
set_prop(ccci_mdinit, ril_mux_report_case_prop)

allow ccci_mdinit mdlog_data_file:file r_file_perms;
allow ccci_mdinit mdlog_data_file:dir r_dir_perms;

unix_socket_connect(ccci_mdinit, property, init)
+1 −2
Original line number Diff line number Diff line
@@ -4,7 +4,6 @@ type conn_launcher, domain;
init_daemon_domain(conn_launcher)

allow conn_launcher stpwmt_device:chr_file rw_file_perms;
allow conn_launcher wmt_prop:property_service set;
allow conn_launcher vendor_file:dir r_file_perms;

unix_socket_connect(conn_launcher, property, init)
set_prop(conn_launcher, wmt_prop)
+1 −2
Original line number Diff line number Diff line
@@ -62,6 +62,5 @@ allow factory mnld_prop:property_service set;
# Other capabilities
allow factory self:capability { dac_override net_admin net_raw sys_nice sys_time };
allow factory self:process execmem;
allow factory audiohal_prop:property_service set;

unix_socket_connect(factory, property, init);
set_prop(factory, audiohal_prop)
+3 −5
Original line number Diff line number Diff line
@@ -11,8 +11,6 @@ allow gsm0710muxd self:capability { setuid fowner chown };
allow gsm0710muxd sysfs_ccci:dir search;
allow gsm0710muxd sysfs_ccci:file r_file_perms;

allow gsm0710muxd ctl_rildaemon_prop:property_service set;
allow gsm0710muxd radio_prop:property_service set;
allow gsm0710muxd ril_mux_report_case_prop:property_service set;

unix_socket_connect(gsm0710muxd, property, init)
set_prop(gsm0710muxd, ctl_rildaemon_prop)
set_prop(gsm0710muxd, radio_prop)
set_prop(gsm0710muxd, ril_mux_report_case_prop)
+1 −2
Original line number Diff line number Diff line
@@ -41,7 +41,6 @@ allow meta_tst node:tcp_socket node_bind;

allow meta_tst sysfs:file write;

allow meta_tst powerctl_prop:property_service set;
unix_socket_connect(meta_tst, property, init)
set_prop(meta_tst, powerctl_prop)

allow meta_tst self:capability { net_raw chown fsetid sys_nice net_admin fowner dac_override sys_admin };
Loading