0

When I boot into TWRP Recovery, it says,

RECOVERY IS NOT SEANDROID ENFORCING

but when I run sestatus, it tells me

SELinux status:                 enabled
SELinuxfs mount:                /sys/fs/selinux
Current mode:                   permissive
Mode from config file:          permissive
Policy version:                 26
Policy from config file:        sepolicy

How do I set the SEANDROID ENFORCING?

  • 1
    This warning seems to be Samsung devices specific mostly. – Firelord Dec 5 '18 at 2:19
0

I believe that what that warning is referring too is the SEAndroid ENFORCING, you can change that with setenforce

$ setenforce Enforcing
$ sestatus
SELinux status:                 enabled
SELinuxfs mount:                /sys/fs/selinux
Current mode:                   enforcing
Mode from config file:          enforcing
Policy version:                 26
Policy from config file:        sepolicy

You can also test this with getenforce

$ getenforce 
Enforcing
  • 2
    I reckon that this doesn't change SEA status permanently and hence will not eliminate the warning on boot? – Andy Yan Dec 5 '18 at 1:41
  • @AndyYan no, it will not. While that's another question I have, I'm inclined to think persistence is different and a follow up. – Evan Carroll Dec 5 '18 at 1:43
  • 1
    Whatever applies to the recovery has nothing to do with the main OS. If you hit a bootloop/stuck with the OS then no point in messing with the recovery itself. – Andy Yan Dec 5 '18 at 1:44
  • 1
    All Samsung devices I've played with have non-SEA-enforcing recoveries and that doesn't affect how they work. In fact I'm guessing that they work well precisely because SEA-permissive means lax security measures and grants it full capability of tampering with the device (though I've never seen an official confirmation of this). – Andy Yan Dec 5 '18 at 3:07
  • 1
    source.android.com/security/selinux first has several tutorials this is the overview. More info in menu the left and several resources at the bottom su.chainfire.eu/#selinux this is interesting the battle between the two – Bo Lawson Dec 5 '18 at 3:28

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.