mirror of
https://github.com/morgan9e/systemd
synced 2026-04-14 08:25:20 +09:00
Sincec5de7b14aefile searching implies a new mount api syscall by default, to trigger automounts. But, this is not necessary in most cases, e.g. when chasing syspath in sd-device (actually this causes regression in umockdev, see https://github.com/martinpitt/umockdev/issues/271). Another example is reading unit files, especially .network files, as automount may trigger mounting network filesystems... Also, when this is used in NSS plugins, programs that load the plugins may fail because of spuriously configured seccomp. See #38565. Let's not trigger automount by default, and do only when explicitly requested. This introduces CHASE_TRIGGER_AUTOFS, and use it in - service manager, - bootctl and finding ESP/xbootldr, - sysupdate, - mountfsd, - systemd-mount. There may be several more places we should trigger automount, but let's do that later. Follow-up forc5de7b14ae. Fixes #38565. Replaces #38569. Co-authored-by: Luca Boccassi <luca.boccassi@gmail.com>