sys-apps/systemd: allow @mount syscalls for systemd-udevd.service

In Flatcar we are using modprobe helpers that run depmod in temporary
overlay. systemd-udevd.service may try to load drivers for some block
devices (e.g. ZFS), which ends up calling our helpers, which invoke
mount command. The mount syscalls are forbidden by the default
systemd-udevd syscall filter.

Signed-off-by: Daniel Zatovic <daniel.zatovic@gmail.com>
This commit is contained in:
Daniel Zatovic 2025-10-09 16:09:29 +02:00
parent 125a96c6e2
commit 8e94ac029b
3 changed files with 13 additions and 0 deletions

View File

@ -11,3 +11,16 @@ After=ensure-sysext.service
EOF
popd
}
cros_post_src_install_udev() {
insinto "$(systemd_get_systemunitdir)/systemd-udevd.service.d"
newins - flatcar.conf <<EOF
# In Flatcar we are using modprobe helpers that run depmod in temporary
# overlay. systemd-udevd.service may try to load drivers for some block devices
# (e.g. ZFS), which ends up calling our helpers, which invoke mount command.
# The mount syscalls are forbidden by the default systemd-udevd syscall filter.
[Service]
SystemCallFilter=@mount
EOF
}