Sorry everyone for being so lazy and busy!!
I'm back after a very long holiday haha anyway here's my guide for converting stock kernel to SELinux Permissive
1. You'll need something like Android Kitchen or any other tool to unpack a boot.img
(
http://forum.xda-developers.com/showthread.php?t=633246)
2. Extract the kernel and ramdisk from the boot.img, you should be left with a folder containing a zImage file and a boot.img-ramdisk folder. You do not need to touch the zImage file, this is the actual kernel - the ramdisk is just instructions it follows while booting.
3.These are the edits you need to make:
default.prop
Code:
ro.secure=1 -----------------> ro.secure=0
ro.adb.secure=1 -----------------> ro.adb.secure=0
init.rc
Code:
setsebool debugfs 1 --------> setsebool debugfs 0
*ADD THIS LINE UNDERNEATH*
setenforce 0
setprop selinux.reload_policy 1 -------> setprop selinux.reload_policy 0
init.target.rc
Code:
setprop selinux.reload_policy 1 -----> setprop selinux.reload_policy 0
4.Repack and flash!