summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVishal Mahaveer2017-10-24 17:30:27 -0500
committerPraneeth Bajjuri2017-10-24 17:31:13 -0500
commitbe72321df8a76512d59cb68d4915dc68e204a1c6 (patch)
tree4395ec97df24e3339f0c261b582b2c74b61507f5
parente85a467c73880934f9e28ba2e8e3f0c2f2aa4212 (diff)
downloaddevice-ti-am57xevm-be72321df8a76512d59cb68d4915dc68e204a1c6.tar.gz
device-ti-am57xevm-be72321df8a76512d59cb68d4915dc68e204a1c6.tar.xz
device-ti-am57xevm-be72321df8a76512d59cb68d4915dc68e204a1c6.zip
am57xevm: use vendor modprobe for loading modules
Use modprobe from vendor parition for loading modules in vendor partition. This fixes the selinux errors like below, [ 5.231785] audit: type=1400 audit(5.229:3): avc: denied { module_load } for pid=136 comm="modprobe" path="/vendor/lib/modules/wlcore.ko" dev="mmcblk0p11" ino=169 scontext=u:r:modprobe:s0 tcontext=u:object_r:vendor_file:s0 tclass=system permissive=1 Signed-off-by: Vishal Mahaveer <vishalm@ti.com> [port http://review.omapzoom.org/#/c/38623/1 to am57xevm device project] Signed-off-by: Praneeth Bajjuri <praneeth@ti.com> Change-Id: I843e1ecf1531a99bac80ef5b92e9f05568e724ed
-rw-r--r--device.mk2
-rw-r--r--init.am57xevmboard.rc2
2 files changed, 3 insertions, 1 deletions
diff --git a/device.mk b/device.mk
index 231fac7..05b716c 100644
--- a/device.mk
+++ b/device.mk
@@ -154,6 +154,8 @@ PRODUCT_PACKAGES += \
154 libtiipcutils \ 154 libtiipcutils \
155 libtitransportrpmsg 155 libtitransportrpmsg
156 156
157PRODUCT_PACKAGES += toybox_vendor
158
157# Launcher3 159# Launcher3
158PRODUCT_PACKAGES += Launcher3 \ 160PRODUCT_PACKAGES += Launcher3 \
159 WallpaperPicker 161 WallpaperPicker
diff --git a/init.am57xevmboard.rc b/init.am57xevmboard.rc
index f4e24dd..d3c93cc 100644
--- a/init.am57xevmboard.rc
+++ b/init.am57xevmboard.rc
@@ -46,7 +46,7 @@ on fs
46 46
47on late-init 47on late-init
48# Load modules 48# Load modules
49 exec u:r:modprobe:s0 -- /system/bin/modprobe -a -d \ 49 exec u:r:modprobe:s0 -- /vendor/bin/modprobe -a -d \
50 /vendor/lib/modules scsi_mod.ko usb-storage.ko sd_mod.ko \ 50 /vendor/lib/modules scsi_mod.ko usb-storage.ko sd_mod.ko \
51 dra7-evm-encoder-tpd12s015.ko encoder-sii9022.ko encoder-tc358768.ko encoder-tpd12s015.ko \ 51 dra7-evm-encoder-tpd12s015.ko encoder-sii9022.ko encoder-tc358768.ko encoder-tpd12s015.ko \
52 ti-fpd3-serdes.ko \ 52 ti-fpd3-serdes.ko \