]> git.ipfire.org Git - thirdparty/systemd.git/commit
udev: try to reload selinux label database less frequently
authorYu Watanabe <watanabe.yu+github@gmail.com>
Sat, 12 Mar 2022 19:45:08 +0000 (04:45 +0900)
committerLennart Poettering <lennart@poettering.net>
Thu, 24 Mar 2022 15:20:42 +0000 (16:20 +0100)
commitc02fb80479b23e70f4ad6f7717eec5c9444aa7f4
treec3936cd759528a5e90d6454034f5278ce7b0513f
parent2d40f02ee4317233365f53c85234be3af6b000a6
udev: try to reload selinux label database less frequently

Previously, `event_run()` was called repeatedly in one `event_queue_start()`
invocation. Hence, the SELinux label database is reloaded many times needlessly.
Other settings, e.g. udev rules or hwdata, are tried to be reloaded in the
beginning of `event_queue_start()`. Let's also do so for the SELinux database.
src/udev/udevd.c