summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVishal Mahaveer2017-10-06 09:45:38 -0500
committerVishal Mahaveer2017-10-06 09:45:38 -0500
commit5006e23360412a85c6f564f58d23457463969ace (patch)
tree5c32ce69794f3bb425232ec6680c910eeaff9cbf
parent39ccc7699884ad8e6895b134f20d984110cc193a (diff)
downloaddevice-ti-jacinto6evm-5006e23360412a85c6f564f58d23457463969ace.tar.gz
device-ti-jacinto6evm-5006e23360412a85c6f564f58d23457463969ace.tar.xz
device-ti-jacinto6evm-5006e23360412a85c6f564f58d23457463969ace.zip
jacinto6evm: 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 Change-Id: Idae31f9802426651340b3535cbadef347ad4cca0 Signed-off-by: Vishal Mahaveer <vishalm@ti.com>
-rw-r--r--device.mk2
-rw-r--r--init.jacinto6evmboard.rc2
2 files changed, 3 insertions, 1 deletions
diff --git a/device.mk b/device.mk
index 0e68e57..c3830c3 100644
--- a/device.mk
+++ b/device.mk
@@ -174,6 +174,8 @@ PRODUCT_PACKAGES += \
174 libtiipcutils \ 174 libtiipcutils \
175 libtitransportrpmsg 175 libtitransportrpmsg
176 176
177PRODUCT_PACKAGES += toybox_vendor
178
177# Launcher3 179# Launcher3
178PRODUCT_PACKAGES += Launcher3 \ 180PRODUCT_PACKAGES += Launcher3 \
179 WallpaperPicker 181 WallpaperPicker
diff --git a/init.jacinto6evmboard.rc b/init.jacinto6evmboard.rc
index cce2f33..ebb2e00 100644
--- a/init.jacinto6evmboard.rc
+++ b/init.jacinto6evmboard.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:vendor_modprobe:s0 -- /vendor/bin/modprobe -a -d \
50 /vendor/lib/modules wl18xx.ko wlcore.ko wlcore_sdio.ko \ 50 /vendor/lib/modules wl18xx.ko wlcore.ko wlcore_sdio.ko \
51 scsi_mod.ko usb-storage.ko sd_mod.ko \ 51 scsi_mod.ko usb-storage.ko sd_mod.ko \
52 dra7-evm-encoder-tpd12s015.ko encoder-sii9022.ko encoder-tc358768.ko encoder-tpd12s015.ko \ 52 dra7-evm-encoder-tpd12s015.ko encoder-sii9022.ko encoder-tc358768.ko encoder-tpd12s015.ko \