Change SELinux status to Permissive

Walter.White

Senior Member
Nov 28, 2013
1,273
2,062
0
Here is a way for us to change the SELinux status to Permissive on our ATT N3.

Prerequisites
1. Busybox must be installed.
2. Have to be on NC2 or MLG Kernel. If not then download it from here (http://d-h.st/lBR) and flash it using Odin (select PDA). (You DON'T have to upgrade your BL to NC2. Just the kernel. I'm still on MLG BL, so I can still roll back to 4.3 if I wanted).
3. Most importantly. Have to be on SuperSU 2.13 http://d-h.st/afU

Instructions: (only if you plan on applying manually after every reboot)
1. Download http://www78.zippyshare.com/v/1605705/file.html
2. Move the file to /data/local/tmp/
3. Change Permission to 0755 (-rwxr-xr-x)
3. Open up the Terminal Emulator and type the following.
Code:
su -c /data/local/tmp/SE_Status_Change_via_kmem.sh
4. Enjoy.

OR

Instructions: (to apply automatically at reboot)
1. Download http://www78.zippyshare.com/v/1605705/file.html
2. Change its name from "SE_Status_Change_via_kmem.sh" to "SE_Status_Change_via_kmem"
3. Move that file to /system/etc/init.d/
4. Change permission to 0777 (-rwxrwxrwx)
5. Reboot.

Proof.
 
Last edited:

Dirtburgler

Senior Member
Apr 4, 2011
353
115
0
Bay City, MI
Not sure what I'm missing but mine stays enforced, I've tried using terminal and it runs but remains enforced. What I'm doing wrong?

Sent from my SM-N900A using XDA Premium HD app
 

gangpe

Senior Member
Aug 20, 2010
350
84
0
+1. Tried both methods above, and I also tried using script manager to run the script. Would love to get this working; NTFS mounting through Total Commander is a bit annoying....
Not sure what I'm missing but mine stays enforced, I've tried using terminal and it runs but remains enforced. What I'm doing wrong?

Sent from my SM-N900A using XDA Premium HD app
 

Dirtburgler

Senior Member
Apr 4, 2011
353
115
0
Bay City, MI
Yo Heisenberg! I may be doing something wrong, everytime I run the shell I see the permission goes from enforced to enforced.

Sent from my SM-G900A using XDA Free mobile app
+1 Same for me.

---------- Post added at 01:01 PM ---------- Previous post was at 12:05 PM ----------

I wonder if it's staying enforced because I do not have killer kat installed on the stock rom slot.
 

gangpe

Senior Member
Aug 20, 2010
350
84
0
Nah, don't think that's it. I'm currently using the stock slot, and nothing has changed. Crossing my fingers that this can be straightened out...
+1 Same for me.

---------- Post added at 01:01 PM ---------- Previous post was at 12:05 PM ----------

I wonder if it's staying enforced because I do not have killer kat installed on the stock rom slot.
 

gangpe

Senior Member
Aug 20, 2010
350
84
0
Weird. I took a look at the script, and it mentioned busybox. It turns out that for some reason I lost busybox, and I am going to try this again and let you guys know if this is working on my end.
Ya I just booted into stock slot and tried it and got the same result.


---------- Post added at 12:50 PM ---------- Previous post was at 12:44 PM ----------

Looks like I'm seeing the script run now, but I am getting the whole SELinux has been set to Enforcing. Here's to hoping this gets fixed...
Weird. I took a look at the script, and it mentioned busybox. It turns out that for some reason I lost busybox, and I am going to try this again and let you guys know if this is working on my end.
 

K-alz

Senior Member
Jun 7, 2013
6,113
3,770
253
Is there any other benefit than the possibility of flashing custom kernels when changing to "permissive"? If not, why am I changing it?