diff options
author | Frantisek Sumsal <frantisek@sumsal.cz> | 2022-11-07 15:43:54 +0100 |
---|---|---|
committer | Frantisek Sumsal <frantisek@sumsal.cz> | 2022-11-07 15:43:54 +0100 |
commit | 9bfd596674a5404c5c0fa7b9db3c52282e75d143 (patch) | |
tree | e2fa02199018fc6446d1fa3dcbd54092df517bee /src/basic/mountpoint-util.c | |
parent | test: compile test-utmp.c only if UTMP is enabled (diff) | |
download | systemd-9bfd596674a5404c5c0fa7b9db3c52282e75d143.tar.xz systemd-9bfd596674a5404c5c0fa7b9db3c52282e75d143.zip |
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
Diffstat (limited to 'src/basic/mountpoint-util.c')
-rw-r--r-- | src/basic/mountpoint-util.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/basic/mountpoint-util.c b/src/basic/mountpoint-util.c index 8292869e7c..dc682688a7 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"); } |