mirror of
https://github.com/flatcar/scripts.git
synced 2025-11-06 19:22:17 +01:00
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:
parent
125a96c6e2
commit
8e94ac029b
@ -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
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user