From: Frantisek Sumsal Date: Mon, 7 Nov 2022 14:43:54 +0000 (+0100) Subject: Revert "mountpoint-util: tmpfs supports uid=/gid= mount options" X-Git-Tag: v253-rc1~581^2~1 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=9bfd596674a5404c5c0fa7b9db3c52282e75d143;p=thirdparty%2Fsystemd.git Revert "mountpoint-util: tmpfs supports uid=/gid= mount options" This reverts commit 7d4f00c88c65532bf66d20b3ec498b5bfaa621d2. fstype_can_uid_gid() is about fixating all files to the specified uid/gid. tmpfs does not qualify. The uid/gid parameter there is simply about the default uid/gid for the root inode of the tmpfs, it allows setting uids/gid arbirarily for all inodes after that. This distinction matters: for file systems this function returns true for we can use this in place of uidmapped mounts. But for tmpfs this is not going to work, given inodes on that fs can end up having arbitrary uid/gid. See: https://github.com/systemd/systemd/pull/25284#issue-1438427144 --- diff --git a/src/basic/mountpoint-util.c b/src/basic/mountpoint-util.c index 8292869e7c9..dc682688a7c 100644 --- a/src/basic/mountpoint-util.c +++ b/src/basic/mountpoint-util.c @@ -480,7 +480,6 @@ bool fstype_can_uid_gid(const char *fstype) { "iso9660", "msdos", "ntfs", - "tmpfs", "vfat"); }