Closed Biosias closed 4 months ago
Sourcing is what we also do for install.conf
, this is copied from systemd's kernel-install
[1]. As I understand it, this file is meant to be sourced, like other environment files.
os-release
is a file installed by sys-apps/baselayout
, it is owned by root and only writeable by root. If you can write something malicious to it, then you are already in a situation where you can write something malicious to the hooks or even /sbin/installkernel
directly. So I don't think sourcing is a security risk.
Yeah, you are right. I that case, thanks!
Hello again,
I was just thinking about sourcing information from
/etc/os-release
and I don't think doing it like this is a good idea:if some got a way to append some command to it, installkernel and also uefi-mkconfig would run it as root.
example: