Skip to content
This repository has been archived by the owner on Apr 25, 2019. It is now read-only.

Commit

Permalink
Set kernel module selinux context on install
Browse files Browse the repository at this point in the history
They weren't loading on enforcing kernels, hopefully
this should help. I was contemplating using a restorecon
recursive but was unsure if all these TWRPs had proper
contexts included in them.

Signed-off-by: James Christopher Adduono <jc@adduono.com>
  • Loading branch information
jcadduono committed Nov 25, 2016
1 parent f1b4907 commit 2be1d36
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions nethunter-installer/boot-patcher/patch.d/03-kernel-modules
Expand Up @@ -57,5 +57,6 @@ while read -r kmod; do
done < modules.layout

setperm 0755 0644 /system/lib/modules
chcon -R -h "u:object_r:system_file:s0" /system/lib/modules

exit 0

0 comments on commit 2be1d36

Please sign in to comment.