Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,804,524 Members 42,946 Now Online
XDA Developers Android and Mobile Development Forum

[SCRIPT] [INIT.D] Permissive SELinux on Stock Kernels [08/21/2014]

Tip us?
 
hsbadr
Old
(Last edited by hsbadr; 3rd September 2014 at 10:27 PM.)
#1  
hsbadr's Avatar
Senior Member - OP
Thanks Meter 4,616
Posts: 1,328
Join Date: May 2014

 
DONATE TO ME
Post [SCRIPT] [INIT.D] Permissive SELinux on Stock Kernels [08/21/2014]

"As part of the Android security model, Android uses Security-Enhanced Linux (SELinux) to enforce Mandatory Access Control (MAC) over all processes, even processes running with root/superuser privileges (a.k.a. Linux capabilities). SELinux can operate in one of two global modes: permissive mode, in which permission denials are logged but not enforced, and enforcing mode, in which permission denials are both logged and enforced." Read more here...


Requirements:
Quote:
- Rooted Device
- Root/FS/ES Explorer
- busybox & init.d support

How to:
Quote:
- Add the 01selinux script to /system/etc/init.d
- Set file permissions to 775 (rwx r-x r-x)
- Power off, wait for a few seconds & power on
If you'd like to add this script to your ROM, just copy 01selinux script to /system/etc/init.d !


Downloads:
Quote:
[08/21/2014] Permissive SELinux v1.0: 01selinux

Status:
Quote:
- Fully working on NC4 Kernel - Verizon Samsung Galaxy Note 3 (N900V)
- Not working on NCG/NE9 Kernel - Verizon Samsung Galaxy S5 (G900V)

...


Verizon Samsung Galaxy Note 3 (N900V)



Hit thanks, follow the thread & add a 5-star review... Donations are always appreciated!
The Following 3 Users Say Thank You to hsbadr For This Useful Post: [ Click to Expand ]
 
ncdub
Old
#2  
ncdub's Avatar
Senior Member
Thanks Meter 48
Posts: 146
Join Date: Apr 2010
Location: Greensboro
Again, @hsbadr with something new and amazingly useful for our Note 3's! You're the man!

Sent from my SM-N900V using Tapatalk
Sent over the Ninja Network from my THUNDERBOLT
The Following User Says Thank You to ncdub For This Useful Post: [ Click to Expand ]
 
ironfisted
Old
#3  
ironfisted's Avatar
Senior Member
Thanks Meter 33
Posts: 261
Join Date: Aug 2011
What will this get us?
 
hsbadr
Old
#4  
hsbadr's Avatar
Senior Member - OP
Thanks Meter 4,616
Posts: 1,328
Join Date: May 2014

 
DONATE TO ME
Quote:
Originally Posted by ironfisted View Post
What will this get us?

Permissive SELinux on NC4 kernel Read OP introduction!
...


Verizon Samsung Galaxy Note 3 (N900V)



Hit thanks, follow the thread & add a 5-star review... Donations are always appreciated!
 
ironfisted
Old
#5  
ironfisted's Avatar
Senior Member
Thanks Meter 33
Posts: 261
Join Date: Aug 2011
Quote:
Originally Posted by hsbadr View Post
Permissive SELinux on NC4 kernel Read OP introduction!
Is that getting us closer to aosp or deep sleep issues fix?
 
krazy_smokezalot
Old
#6  
krazy_smokezalot's Avatar
Senior Member
Thanks Meter 1,069
Posts: 2,149
Join Date: Sep 2010
Location: Washington DC
Quote:
Originally Posted by ironfisted View Post
Is that getting us closer to aosp or deep sleep issues fix?
Yeah I had the same question. Will this move us in the right direction? Just curious that's all
Quote:
Originally Posted by 1313SAM
Please don't encourage dirty flashing. Dirty flashing is like unprotected sex. Yes it may feel better and take less work, but who knows what may happens later. Even though sometimes you still get surprises when you do things right. At least you know you took precautions and where to look for problems
 
Nightmare_24_7
Old
#7  
Nightmare_24_7's Avatar
Member
Thanks Meter 14
Posts: 85
Join Date: Oct 2012
Quote:
Originally Posted by krazy_smokezalot View Post
Yeah I had the same question. Will this move us in the right direction? Just curious that's all
I'm not an expert or developer by no means but I would say this has no effect on getting closer to having true aosp simply because until the nc4 update the selinux status has been permissive and we didn't get it then. Just my 2 cents.
 
Joe92T
Old
#8  
Senior Member
Thanks Meter 12
Posts: 419
Join Date: Aug 2009
Location: New Hampshire
Is there any advantage using the NC4 Kernel over the NC2 Kernel ?

I know right now if you are on NC4 and want a custom rom you have to flash the rom file itself and then flash the NC2 kernel to go with it or it will not work.

You saying now with this we can have custom Roms and keep NC4 Kernel without having to do the firmware flash as well?
Verizon Wireless
Samsung Galaxy Note 3 w/ Gear
 
tpike
Old
#9  
tpike's Avatar
Senior Member
Thanks Meter 191
Posts: 953
Join Date: Jan 2011
Nc2 is permissive.
 
RomsWell
Old
#10  
RomsWell's Avatar
Senior Member
Thanks Meter 917
Posts: 1,480
Join Date: Jul 2011
Location: Venice
Quote:
Originally Posted by Joe92T View Post
Is there any advantage using the NC4 Kernel over the NC2 Kernel ?

I know right now if you are on NC4 and want a custom rom you have to flash the rom file itself and then flash the NC2 kernel to go with it or it will not work.

You saying now with this we can have custom Roms and keep NC4 Kernel without having to do the firmware flash as well?
You only have to flash the nc2 kernel if you took the nc4 ota. If you flashed the patched nc4 firmware that beans whipped up you dont need to swap kernels.

Tags
init.d, permissive, script, selinux
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes