]> git.ipfire.org Git - thirdparty/systemd.git/commit
udev: set fewer process properties 16120/head
authorLennart Poettering <lennart@poettering.net>
Tue, 9 Jun 2020 13:40:20 +0000 (15:40 +0200)
committerLennart Poettering <lennart@poettering.net>
Tue, 9 Jun 2020 13:40:20 +0000 (15:40 +0200)
commit6b2229c6c60d0486f5eb9ed3088f9c780d7c0233
tree39585811747c2898e699f05294da8dccf8ca5667
parentfe56acd8e0ef83f8b69aa21cbf74fd25215997be
udev: set fewer process properties

On systemd systems we generally don't need to chdir() to root, we don't
need to setup /dev/ ourselves (as PID 1 does that during earliest boot),
and we don't need to set the OOM adjustment values, as that's done via
unit files.

Hence, drop this. if people want to use udev from other init systems
they should do this on their own, I am very sure it's a good thing to do
it from outside of udevd, so that fewer privileges are required by udevd. In
particular the dev_setup() stuff is something that people who build
their own non-systemd distros want to set up themselves anyway, in
particular as they already have to mount devtmpfs themselves anyway.

Note that this only drops stuff that isn't really necessary for testing
stuff, i.e. process properties and settings that don't matter if you
quickly want to invoke udev from a terminal session to test something.
src/udev/udevd.c