SELinux permissions issue

  
 

This article mainly records the method of modifying selinux permissions

Permission modification#

Method 1: adb online modification seLinux#

Enforcing (indicating opened), Permissive( Indicates closed ()

getenforce; //Get the current seLinux state setenforce 1; //Open seLinuxsetenforce 0; //close seLinux

Method 2: Close completely from kernel#

Modify LINUX/android/kernel/arch/arm64/configs/xxx_defconfig file (xxx is generally the name of the mobile phone product), remove the configuration item of CONFIG_SECURITY_SELINUX=y

Method 3: Add permission in sepolicy#

• modify the basis, by the command cat /proc/kmsg

Copyright © Windows knowledge All Rights Reserved