[Q] SELinux from enforcing to permissive why? - Galaxy S 5 Q&A, Help & Troubleshooting

What are the benefits of changing selinux from enforcing to permissive?
Thank you

As the name suggests, more latitude in how you can configure your phone since you are not longer restricted by SELinux policy. There are dozens of threads about this and you could easily find extended discussions of this with a search.
.

Alright, forgive me
I wont make the same mistake again.
And thank you for your answer
Sent from my SM-G900F using XDA Free mobile app

Related

[Bounty] SM-P605 permissive SElinux

I'm willing to pledge $20 USD for the development of a permissive SELinux kernel for the LTE version of this tab.
If anyone else is interested in pledging, post below.
hmmm... what is a permissive selinux?...
micro17 said:
hmmm... what is a permissive selinux?...
Click to expand...
Click to collapse
Opposed to an enforcing selinux kernel, it allows you true root access.
An enforcing selinux kernel prevents the user from performing certain tasks
such as installing Linux on the device.
Refer here for more detailed information:
https://wiki.gentoo.org/wiki/SELinux/Tutorials/Permissive_versus_enforcing
Maybe this thread for the old note 10.1 will give you a better idea:
http://forum.xda-developers.com/showthread.php?t=2471416

[Request] S5 SM-G900H Kernel Enable Permissive SELinux

Known that most of Galaxy S5 SM-G900H Exynos users has come to Lollipop. But due to some reason I need a custom kernel to set SElinux mode from Enforcing to Permissive.
I wrote this thread is to ask a favor, if anyone has or want to do a similar thing, please share your work, experiences for everyone who has same demand/needed.
Million Thanks
I too need the Permissive mode. I tried SELinuxModeChanger, as suggested by others and also Synapse but they don't do anything. You can change it in the app from Enforcing to Permissive but as soon as you close the app or click on the apply it jumps back to Enforce mode.....
Me too...
Frann7824 said:
Me too...
Click to expand...
Click to collapse
Have you tried one of these kernels?
https://forum.xda-developers.com/ga...opment-exynos/kernel-crazyaquakernel-t3668606
https://forum.xda-developers.com/ga...lopment-exynos/kernel-duki994-kernel-t3427167
They are for android MM.

How can I set SELinux to be in Permissive mode permanently?

I need to put SELinux in permissive mode permanently for a few things. Can someone tell me the best way to do this for this device?
Thanks
You need root for sure. Then there is an apk floating around xda that will switch permissive after reboot. Also kernel adiutor has a plug in that will do the same. Hope that helps.
Sent from my XT1575 using Tapatalk
Thanks! Any idea what the APK is closed? SELinux Mode Changer doesn't seem to stick on reboot. Also who makes kernel adiutor?
Edit: I found it. Testing it now
Edit 2: Will kernel adiutor be enough for XPosed or do I need to disable in a more permanent way for that?
Thanks so much!
I'm pretty sure as long as you use the plugin it should be OK.
Sent from my XT1575 using Tapatalk
Awesome. I'll back it up and give it a shot. Thanks
fbiryujin said:
I need to put SELinux in permissive mode permanently for a few things. Can someone tell me the best way to do this for this device?
Thanks
Click to expand...
Click to collapse
This one https://forum.xda-developers.com/g2...w-to-set-selinux-to-permissive-t3329439/page4

Viper4Android not working on new TW firmwares

Does anybody know a way to make Viper4Android work on roms with new firmware like XXUHPF1. I'm using MBP V5 by melekbarca on the i9500. I already have try unchecking the mount separate option in super su but didn't work. Also tried this in other roms like albe95 and inferno but no luck.
I apologize for my English and my lack of experience.
Because, most probably, the selinux is set to enforcing. Viper4Android needs to to be permissive.
GDReaper said:
Because, most probably, the selinux is set to enforcing. Viper4Android needs to to be permissive.
Click to expand...
Click to collapse
Thank you for your answer but I don't think that's the problem cause I have try using Setlinux mode changer and also had try with versions of viper that don't require permissive kernell and nothing works.
GDReaper said:
Because, most probably, the selinux is set to enforcing. Viper4Android needs to to be permissive.
Click to expand...
Click to collapse
Well actually it seems you were right. I try installing different kernels but had no luck; till I installed stock Permissive Kernel By @AL_IRAQI (http://forum.xda-developers.com/showpost.php?p=59507846&postcount=4860) and untick the separate mount option in super su. Now it works :laugh: . Thanks for the answer
Good to know you solved your problem.
To be noted that stock Samsung kernel is always enforcing, even after you use SELinux mode changer to change your SELinux status.
Sent from my ASUS_Z00AD using XDA Labs

Custom roms

Most of us using custom roms, it will be helpful for me if anyone can suggest me some roms which has Permissive selinux status.
Having some problems with enforcing and problems still remains even after changing selinux.
that's why I'm stucked in a rom and can't shift because most roms comes with enforcing selinux.
tested so many roms but can't solve audio problem that's why need some rom that comes with permissive selinux by default.
any one facing same problem?
Everything working fine with enforcing selinux for me. Perhaps a complete clean flash with latest firmware might fix your problem. Otherwise you can use permissive selinux module.
farhanshaikh671 said:
Everything working fine with enforcing selinux for me. Perhaps a complete clean flash with latest firmware might fix your problem. Otherwise you can use permissive selinux module.
Click to expand...
Click to collapse
as i told tried every single solutions I got from here and there, also this solution but not worked. now I'm kind of hopeless and searching for roms that comes with permissive.
DinIslamJoy said:
as i told tried every single solutions I got from here and there, also this solution but not worked. now I'm kind of hopeless and searching for roms that comes with permissive.
Click to expand...
Click to collapse
you can try borets rom. It has an option to manually enable/disable enforcing selinux.
farhanshaikh671 said:
you can try borets rom. It has an option to manually enable/disable enforcing selinux.
Click to expand...
Click to collapse
thanks a lot
Which custom will better then stock rom for my XOOTD device.
pls suggest me.
Official Lineage OS 16 released for our device. It theoretically should give better performance than stock.
You may consider installing latest colt rom. Not only it meets your requirements but also can be used as a daily driver.
Use nxp.zip and get audio problem fixed

Categories

Resources