Freescale / meta-freescale

Layer containing NXP hardware support metadata
Other
172 stars 257 forks source link

upower package now requires the CONFIG_USER_NS kernel option to be included in config #1211

Closed bmx666 closed 2 years ago

bmx666 commented 2 years ago

Due to recent updates, upower.service no longer works if the kernel does not support CONFIG_USER_NS. From a security point of view - this option is dangerous and should be disabled, but the upower maintainers decided to enable it... What do you think about that?

https://linuxfromscratch.org/blfs/view/systemd/general/upower.html

otavio commented 2 years ago

Why is this a dangerous option to enable?

bmx666 commented 2 years ago

@otavio main reason - user_namespaces - overview of Linux user namespaces

Links about CONFIG_USER_NS:

many embedded devices doesn't include security audit or selinux and this kernel option opens a lot of opportunity for exploits year by year.

otavio commented 2 years ago

I don't see those as a massive issue for the default setting, as I expect that someone developing a product should worry about it.

I believe we ought to enable it, as onboarding is easy when trying it. The security review is something the user should do.