Samsung made Permissive seLinux Impossible - Galaxy S6 Q&A, Help & Troubleshooting

They made it impossible to set selinux to permissive mode. I have tried every possible way to set it to permissive but getenforce always returns "Enforcing"
I dislike the extra overhead selinux brings. I like every bit of performance.
Does anyone know a way to do this without flashing a kernel?
I am running Cleanrom on Verizon.

luv2increase said:
They made it impossible to set selinux to permissive mode. I have tried every possible way to set it to permissive but getenforce always returns "Enforcing"
I dislike the extra overhead selinux brings. I like every bit of performance.
Does anyone know a way to do this without flashing a kernel?
I am running Cleanrom on Verizon.
Click to expand...
Click to collapse
Same damn problem on Note 4.. But no solution?!!

luv2increase said:
They made it impossible to set selinux to permissive mode. I have tried every possible way to set it to permissive but getenforce always returns "Enforcing"
I dislike the extra overhead selinux brings. I like every bit of performance.
Does anyone know a way to do this without flashing a kernel?
I am running Cleanrom on Verizon.
Click to expand...
Click to collapse
No, stock kernel has it enabled always. You need a custom kernel for this, I am currently using arter97's, which have it set to permissive.

Related

SELinuxModeChanger

Good day , I remember that some time ago there was an app in playstore to change the linux mode to permissive, cant find it now and was wondering if anyone knows of something like this to change the mode to permissive on a sm-p900 running lollipop.
Thanks a lot.
I suggest that you try changing your kernel to a kernel like civz or pacman which have permissive mode. Thank you for reading, Hope it helps.

Stock non-rooted ROM with SELinux set to permissive

Hello,
I'm not even sure this is possible but- is there one out there or a way to have a non-rooted stock rom with SELinux set to permissive? I'm hoping to be able to run both Viper4Android and Pokemon Go. When I rooted using Magisk I wasn't able to get SELinux Mode Changer to work so I'm hoping there's another option out there.
HappyPessimist said:
Hello,
I'm not even sure this is possible but- is there one out there or a way to have a non-rooted stock rom with SELinux set to permissive? I'm hoping to be able to run both Viper4Android and Pokemon Go. When I rooted using Magisk I wasn't able to get SELinux Mode Changer to work so I'm hoping there's another option out there.
Click to expand...
Click to collapse
This one worked for me, my stock EMUI MM kernel doesn't have init.d support.
https://forum.xda-developers.com/g2...w-to-set-selinux-to-permissive-t3329439/page4

[Q] how do i set SE for Android status to Permissive so Viper4android works correctly

i can't seem to get viper4android to work it must be the permissive rights? or can it work even if its enforcing?
I've tried many things and so far I've learned that you can't set it to permissive without giving up internal encryption. So if you have a stock kernel, you will lose all your data trying to install a custom permissive kernel that makes Viper work. The workarounds haven't yielded anything for me yet.
funeralcrows said:
I've tried many things and so far I've learned that you can't set it to permissive without giving up internal encryption. So if you have a stock kernel, you will lose all your data trying to install a custom permissive kernel that makes Viper work. The workarounds haven't yielded anything for me yet.
Click to expand...
Click to collapse
im not sure what i did but it now works even with enforcing on weird =/
RaW D Coy said:
im not sure what i did but it now works even with enforcing on weird =/
Click to expand...
Click to collapse
same here, I installed it as a user app, flashed it as a system app, tried switching to permissive and running viper in compatibility mode. Eventually it ended up working but for the life of me I don't know which one did it... Also I appear to be back on enforcing mode now.

set permissive ?

hi guys,
is there way to perform force permissive ?
I been trying but no luck. everytime exit the Magisk , it change back to SELinux.
any old MM rom would work ?
pnjboyzz said:
hi guys,
is there way to perform force permissive ?
I been trying but no luck. everytime exit the Magisk , it change back to SELinux.
any old MM rom would work ?
Click to expand...
Click to collapse
There are a couple MM roms in the threads that have permissive already. You can also use a magical script to force permissive. Don't know if it will work for you:
https://forum.xda-developers.com/apps/magisk/module-magisk-selinux-permissive-script-t3577549
I don't know if any old selinux mode changers in the past will work with Nougat. Best of luck. Also, when you say it changes back to selinux what do you mean? Does it say enforcing or permissive?

Is there an A8 kernel available with SELINUX in enforced mode for custom roms?

Are there any suggestions or working weblinks for a (quantum) kernel which has the option to run it in SELINUX enforced mode? Or has anyone been able to run the A8 on Android 11 or 12 in enforced mode? If so which ROM/kernel did you use?
I'm looking for quite some time, tried various kernels and selinux switches but till now I'm unable to find one. All the ones I'm able to find only work in permissive mode I'm unable to switch them to enforcing.
I've trebled my phone (a530f) and I want to use it with a custom ROM like CRDROID or any other GSI.
Looking forward for some inputs!

Categories

Resources