summaryrefslogtreecommitdiff
authorweifang.liu <weifang.liu@amlogic.com>2020-11-25 02:54:14 (GMT)
committer weifang.liu <weifang.liu@amlogic.com>2020-11-25 02:54:14 (GMT)
commit68511703b401b4dd80ba9bd9448f8f8e248d84f1 (patch)
tree3d7a55b74c6f312b142ac41b6a8c481ec45b6d82
parentee7d4be778d4de815a3cf986a8bdfd2c959cc9ce (diff)
downloadcommon-68511703b401b4dd80ba9bd9448f8f8e248d84f1.zip
common-68511703b401b4dd80ba9bd9448f8f8e248d84f1.tar.gz
common-68511703b401b4dd80ba9bd9448f8f8e248d84f1.tar.bz2
vts:{Vts}{VTS}netd_integration_test 1fail[1/1]
PD#SWPL-37171 Problem: NetdSELinuxTest#CheckProperMTULabels test fail,in 11_R2 this test expect /sys/class/net/*/mtu domian should be u:object_r:sysfs_net:s0 Solution: use regular expression to match kernel 5.4 devices /sys/devices/platform/soc/[0-9a-z]*\.ethernet/net/eth0(/.*)? /sys/devices/platform/soc/[0-9a-z]*\.sdio/mmc_host/mmc0/mmc0:0001/mmc0:0001:[1-2]/net/wlan[0-1](/.*)? /sys/devices/platform/soc/[0-9a-z]*\.sdio/mmc_host/mmc0/mmc0:0001/mmc0:0001:[1-2]/net/p2p[0-1](/.*)? domian u:object_r:sysfs_net:s0 Verify: ohm 5.4 Change-Id: I10b66bbd82a6041d66e09726f5331a1125d67c08
Diffstat
-rw-r--r--sepolicy/file_contexts10
1 files changed, 10 insertions, 0 deletions
diff --git a/sepolicy/file_contexts b/sepolicy/file_contexts
index fdebf7b..c1cb3a9 100644
--- a/sepolicy/file_contexts
+++ b/sepolicy/file_contexts
@@ -208,6 +208,7 @@
/sys/module/dhd/parameters/firmware_path u:object_r:sysfs_wifi:s0
/sys/module/bcmdhd/parameters/firmware_path u:object_r:sysfs_wifi:s0
+#for kernel 4.9
/sys/devices/platform/[0-9a-z]*\.ethernet/net/eth0(/.*)? u:object_r:sysfs_net:s0
/sys/devices/platform/[0-9a-z]*\.sd2/mmc_host/sdio/sdio:0001/sdio:0001:[1-2]/net/wlan[0-1](/.*)? u:object_r:sysfs_net:s0
/sys/devices/platform/[0-9a-z]*\.sdio/mmc_host/sdio/sdio:0001/sdio:0001:[1-2]/net/wlan[0-1](/.*)? u:object_r:sysfs_net:s0
@@ -217,6 +218,15 @@
/sys/devices/platform(/.*)?\.emmc/mmc_host/emmc/emmc:0001/block/mmcblk0(/.*)? u:object_r:sysfs_devices_block:s0
/sys/devices/platform/soc(/.*)?\.mmc/mmc_host/mmc1/mmc1:0001/block/mmcblk1(/.*)? u:object_r:sysfs_devices_block:s0
+
+#add start by weifang.liu
+#for kernel 5.4
+#for jira SWPL-37171 NetdSELinuxTest#CheckProperMTULabels
+/sys/devices/platform/soc/[0-9a-z]*\.ethernet/net/eth0(/.*)? u:object_r:sysfs_net:s0
+/sys/devices/platform/soc/[0-9a-z]*\.sdio/mmc_host/mmc0/mmc0:0001/mmc0:0001:[1-2]/net/wlan[0-1](/.*)? u:object_r:sysfs_net:s0
+/sys/devices/platform/soc/[0-9a-z]*\.sdio/mmc_host/mmc0/mmc0:0001/mmc0:0001:[1-2]/net/p2p[0-1](/.*)? u:object_r:sysfs_net:s0
+#add end by weifang.liu
+
/sys/devices/virtual/net(/.*)? u:object_r:sysfs_net:s0
/sys/class/hdmirx/hdmirx0/edid u:object_r:sysfs_cec:s0
/sys/devices/platform/ffd26000.hdmirx/hdmirx/hdmirx0/edid u:object_r:sysfs_cec:s0