summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVishal Mahaveer <vishalm@ti.com>2017-10-24 17:30:27 -0500
committerPraneeth Bajjuri <praneeth@ti.com>2017-10-24 17:31:13 -0500
commitbe72321df8a76512d59cb68d4915dc68e204a1c6 (patch)
tree4395ec97df24e3339f0c261b582b2c74b61507f5
parente85a467c73880934f9e28ba2e8e3f0c2f2aa4212 (diff)
downloadam57xevm-be72321df8a76512d59cb68d4915dc68e204a1c6.tar.gz
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 += \
libtiipcutils \
libtitransportrpmsg
+PRODUCT_PACKAGES += toybox_vendor
+
# Launcher3
PRODUCT_PACKAGES += Launcher3 \
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
on late-init
# Load modules
- exec u:r:modprobe:s0 -- /system/bin/modprobe -a -d \
+ exec u:r:modprobe:s0 -- /vendor/bin/modprobe -a -d \
/vendor/lib/modules scsi_mod.ko usb-storage.ko sd_mod.ko \
dra7-evm-encoder-tpd12s015.ko encoder-sii9022.ko encoder-tc358768.ko encoder-tpd12s015.ko \
ti-fpd3-serdes.ko \