[MOD][P905] selinux permissive on stock kernel LTE QUALCOMM ONLY!

mame82

Member
Oct 30, 2008
22
9
0
Hi esgie,

I'm using a SM-P605 with rooted Stock KK-Rom. To get rid of "Enforcing" I first tried to modify the default.prop and init.rc of the ramdisk
as stated http://forum.xda-developers.com/showthread.php?t=2487089&page=10 by akshizzle. After reading yout Posts, I commented out the "/dev/mem" and "/dev/kmem" lines from "/file_contexts". After repacking and flashing the boot.img the changes are visible in "/file_contexts", but after running your kmem-script selinux stays on "enforce". I'm not sure if it has to do with the permission-problem on "/dev/kmem", because I don't see any errors (I'm no Linux geek).

The problem I have is mainly the same as on P905, there's no valid kernel-source published for the stock KK rom (P605XXUCNE2 by the way).

Maybe it's a problem with the other ramdisk-changes to init.rc / default.prop, which I didn't revert when editing /file_contexts. Or has there more to be done than commenting out the 2 lines.

With best regards

MaMe82
 
Last edited:

ziotom2

Senior Member
Jul 22, 2008
300
96
58
Milano
Hi esgie,

I'm using a SM-P605 with rooted Stock KK-Rom. To get rid of "Enforcing" I first tried to modify the default.prop and init.rc of the ramdisk
as stated http://forum.xda-developers.com/showthread.php?t=2487089&page=10 by akshizzle. After reading yout Posts, I commented out the "/dev/mem" and "/dev/kmem" lines from "/file_contexts". After repacking and flashing the boot.img the changes are visible in "/file_contexts", but after running your kmem-script selinux stays on "enforce". I'm not sure if it has to do with the permission-problem on "/dev/kmem", because I don't see any errors (I'm no Linux geek).

The problem I have is mainly the same as on P905, there's no valid kernel-source published for the stock KK rom (P605XXUCNE2 by the way).

Maybe it's a problem with the other ramdisk-changes to init.rc / default.prop, which I didn't revert when editing /file_contexts. Or has there more to be done than commenting out the 2 lines.

With best regards

MaMe82
now is published on samsung open sources.

Inviato dal mio SM-P605 utilizzando Tapatalk
 

ziotom2

Senior Member
Jul 22, 2008
300
96
58
Milano
Stock P605XXUCNE2 Kernel, SELinux switchable ("setenforce 0" from Terminal or "SELinuxModeChanger" from play), NTFS enabled.

Set ro.securestorage.support from true to false in /system/build.prop and reboot,if wifi passwords don't get rembered.

Link: odin flashable tar only for sm-p605 on p605xxucne2
confirm permissive. it works perfectly compliments. I linked your thread from the note 10.1 stream.
 

shardsx

Senior Member
Apr 23, 2013
76
14
28
First of all, a big thank you goes out to Mame82 for compiling his SELinux permissive kernel.

I've tried to use esgie's SELinux permissive kernel before, and while I do confirm that kernel is SELinux permissive with that particular kernel, I was not able to install Linux using the "Linux Deploy" app from Google Play. The first step of the installation is updating the environment for Linux and it fails right away.

Can someone using Mame82's SELinux permissive kernel also try to install Linux through the "Linux Deploy" app and let me know how it goes? The reason for using Linux Deploy and not the other alternative Linux installers is that I want to try and use Linux in framebuffer mode.

Thanks.
 

mame82

Member
Oct 30, 2008
22
9
0
First of all, a big thank you goes out to Mame82 for compiling his SELinux permissive kernel.

I've tried to use esgie's SELinux permissive kernel before, and while I do confirm that kernel is SELinux permissive with that particular kernel, I was not able to install Linux using the "Linux Deploy" app from Google Play. The first step of the installation is updating the environment for Linux and it fails right away.

Can someone using Mame82's SELinux permissive kernel also try to install Linux through the "Linux Deploy" app and let me know how it goes? The reason for using Linux Deploy and not the other alternative Linux installers is that I want to try and use Linux in framebuffer mode.

Thanks.
Hi shardsx,

please be careful with the kernel cause its a build for p605 and a bit misplaced in this thread. Anyway I gave Linux Deploy a try and ubuntu runs with success. The problem is, that I'm forced to use vnc, framebuffer is not working. Although /dev/graphics/fb0 is present, "cat /dev/graphics/fb0" gives no such device. I checked the compile options and fb support is checked, msm fb support (snapdragon), too. So anybody who could give a hint what to do here is welcome.

Thanks in advance
 
Our Apps
Get our official app!
The best way to access XDA on your phone
Nav Gestures
Add swipe gestures to any Android
One Handed Mode
Eases uses one hand with your phone