1#  SPDX-License-Identifier: LGPL-2.1-or-later
2#
3#  This file is part of systemd.
4#
5#  systemd is free software; you can redistribute it and/or modify it
6#  under the terms of the GNU Lesser General Public License as published by
7#  the Free Software Foundation; either version 2.1 of the License, or
8#  (at your option) any later version.
9
10[Unit]
11Description=FUSE Control File System
12Documentation=https://www.kernel.org/doc/Documentation/filesystems/fuse.txt
13Documentation=https://www.freedesktop.org/wiki/Software/systemd/APIFileSystems
14DefaultDependencies=no
15ConditionPathExists=/sys/fs/fuse/connections
16ConditionCapability=CAP_SYS_ADMIN
17ConditionVirtualization=!private-users
18Before=sysinit.target
19
20# These dependencies are used to make certain that the module is fully
21# loaded. Indeed udev starts this unit when it receives an uevent for the
22# module but the kernel sends it too early, ie before the init() of the module
23# is fully operational and /sys/fs/fuse/connections is created, see issue#17586.
24
25After=modprobe@fuse.service
26Requires=modprobe@fuse.service
27
28[Mount]
29What=fusectl
30Where=/sys/fs/fuse/connections
31Type=fusectl
32Options=nosuid,nodev,noexec
33