mirror of
https://github.com/systemd/systemd.git
synced 2024-11-01 17:51:22 +03:00
b878b618ad
The mount fails, even though CAP_SYS_ADMIN is granted. Only file systems with FU_USERNS_MOUNT in .fs_flags may be mounted in userns, and the patch to add that fusectl was rejected [1]. It would be nice if we could check if the kernel has FU_USERNS_MOUNT for a given fs type, since this could change over time, but this information doesn't seem to be exported. So let's just skip this mount in userns to avoid an error during boot. [1] https://patchwork.kernel.org/patch/2828269/
23 lines
754 B
SYSTEMD
23 lines
754 B
SYSTEMD
# This file is part of systemd.
|
|
#
|
|
# systemd is free software; you can redistribute it and/or modify it
|
|
# under the terms of the GNU Lesser General Public License as published by
|
|
# the Free Software Foundation; either version 2.1 of the License, or
|
|
# (at your option) any later version.
|
|
|
|
[Unit]
|
|
Description=FUSE Control File System
|
|
Documentation=https://www.kernel.org/doc/Documentation/filesystems/fuse.txt
|
|
Documentation=http://www.freedesktop.org/wiki/Software/systemd/APIFileSystems
|
|
DefaultDependencies=no
|
|
ConditionPathExists=/sys/fs/fuse/connections
|
|
ConditionCapability=CAP_SYS_ADMIN
|
|
ConditionVirtualization=!private-users
|
|
After=systemd-modules-load.service
|
|
Before=sysinit.target
|
|
|
|
[Mount]
|
|
What=fusectl
|
|
Where=/sys/fs/fuse/connections
|
|
Type=fusectl
|