From: Frantisek Sumsal Date: Sun, 6 Nov 2022 21:49:47 +0000 (+0100) Subject: mountpoint-util: tmpfs supports uid=/gid= mount options X-Git-Tag: v253-rc1~588^2~1 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=7d4f00c88c65532bf66d20b3ec498b5bfaa621d2;p=thirdparty%2Fsystemd.git mountpoint-util: tmpfs supports uid=/gid= mount options As tmpfs(5) says, both uid= and gid= are supported since kernel 2.5.7 and the mount utility seems to agree: ``` # stat -c "%U:%G" mnt root:root # mount -o uid=testuser,gid=testuser -t tmpfs tmpfs mnt # stat -c "%U:%G" mnt testuser:testuser ``` However, systemd-mount currently complains: ``` # systemd-mount --owner testuser -t tmpfs tmpfs mnt File system type tmpfs is not known to support uid=/gid=, refusing. ``` --- diff --git a/src/basic/mountpoint-util.c b/src/basic/mountpoint-util.c index dc682688a7c..8292869e7c9 100644 --- a/src/basic/mountpoint-util.c +++ b/src/basic/mountpoint-util.c @@ -480,6 +480,7 @@ bool fstype_can_uid_gid(const char *fstype) { "iso9660", "msdos", "ntfs", + "tmpfs", "vfat"); }