r/androidroot • • 12d ago

Discussion Selinux Enforcing Possible by Module?

Is there any module to make the selinux enforcing? Or emulate selinux enforcing? Can't find this kind of module anywhere

2 Upvotes

12 comments sorted by

2

u/Itz_Raj69_ 12d ago

KSUN has a toggle for it if i'm not mistaken

1

u/towfiqeee 12d ago

Anything for apatch?

2

u/47th-Element Android 16, KernelSU-Next 12d ago

sudo setenforce 1

1

u/towfiqeee 12d ago

Tried this many times. Doesn't work

1

u/47th-Element Android 16, KernelSU-Next 12d ago

What does it say? What's the output or the kernel logs?

1

u/towfiqeee 12d ago

I am doing this on termux. When getenforce given, it says permissive. Then after setenforce 1, it shows nothing. Checked again by getenforce. Still shows permissive. Used by SU in termux

1

u/47th-Element Android 16, KernelSU-Next 12d ago

How are you rooted? Temp root?

1

u/towfiqeee 12d ago

Rooted by aPatch

2

u/cykelstativet 11d ago

su

setenforce 1

1

u/towfiqeee 11d ago

aPatch showing selinux status - enforcing now

1

u/ohaiibuzzle 12d ago

When KernelSU loads it installs a module that spoof enforcing SELinux

1

u/towfiqeee 12d ago

Ksu doesn't supports my old kernel. Magisk and apatch only working