diff --git a/sepolicy/ohos_policy/arkXtest/arkXtest/system/type.te b/sepolicy/ohos_policy/arkXtest/arkXtest/system/type.te index 90b2f66f371a2a6484fe0723d8065b20dc77a1da..a40bcec47a2146a98ebbbbd7ae92e873cd9aa126 100644 --- a/sepolicy/ohos_policy/arkXtest/arkXtest/system/type.te +++ b/sepolicy/ohos_policy/arkXtest/arkXtest/system/type.te @@ -50,6 +50,7 @@ developer_only(` allow uitest hdcd:fifo_file { read write ioctl }; allow uitest hdcd:fd { use }; allow uitest hdcd:unix_stream_socket { read write }; + allow hdcd uitest:unix_stream_socket { connectto read write }; allowxperm uitest hdcd:fifo_file ioctl { 0x5413 }; allow uitest samgr:binder { call }; allow uitest sh:fd { use }; diff --git a/sepolicy/whitelist/hdcd.baseline b/sepolicy/whitelist/hdcd.baseline index ef488c5fc722b812e9ee33837b5943c209148318..3875c6c74435497c2014a0b4c67aca1c2ed7fab9 100644 --- a/sepolicy/whitelist/hdcd.baseline +++ b/sepolicy/whitelist/hdcd.baseline @@ -19,6 +19,7 @@ developer_only(` (allow hdcd dev_at_file (chr_file (open read write )) (allow hdcd dev_unix_file (sock_file (write)) (allow hdcd hidebug_private_param (file (map open read )) +(allow hdcd uitest (unix_stream_socket (write read connectto))) (allow hdcd dev_at_file (chr_file ())) (allow hdcd dev_encaps (chr_file (read open)))