SamarV-121 / android_kernel_samsung_universal7904

Other
7 stars 20 forks source link

A40: Permissive kernel #1

Closed ponces closed 3 years ago

ponces commented 3 years ago

Hi,

First of all, thank you for your great work on this kernel! I was not able to run this kernel as enforcing, it seems that by default it is permissive. Is this normal? Is this supposed to be like this? Is there any way to force it to enforcing without resorting to setenforce commands?

last_kmsg.txt logcat.txt pmsg-ramoops-0.txt

SamarV-121 commented 3 years ago

welp, I've hardcoded SELinux to permissive on Non-OneUI variant https://github.com/SamarV-121/android_kernel_samsung_universal7904/commit/d32e21c9d25c2ce0f7cd9d664b073c99e9267ec9

ponces commented 3 years ago

Wasn't this commit reverted on b6d4e2b?

SamarV-121 commented 3 years ago

https://github.com/SamarV-121/android_kernel_samsung_universal7904/blob/fuse/build.sh#L42 https://github.com/SamarV-121/android_kernel_samsung_universal7904/blob/fuse/build.sh#L144

ponces commented 3 years ago

Ahhh understood... Is selinux blocking any kernel functionality?

SamarV-121 commented 3 years ago

what do you mean ?

ponces commented 3 years ago

Btw, thank you for the quick replies! Why did you need it to force it to permissive? Just trying to understand, don't get me wrong...

SamarV-121 commented 3 years ago

some GSIs doesn't boot with enforcing

ponces commented 3 years ago

As I'm using phhusson's GSI (enforcing), I don't need a permissive kernel. I'll build an enforcing version for me 👍 Thank you for your clarifications and help! Issue closed!