Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

tmpfs: fix XATTR N overriding POSIX_ACL Y

Choosing TMPFS_XATTR default N was switching off TMPFS_POSIX_ACL,
even if it had been Y in oldconfig; and Linus reports that PulseAudio
goes subtly wrong unless it can use ACLs on /dev/shm.

Make TMPFS_POSIX_ACL select TMPFS_XATTR (and depend upon TMPFS),
and move the TMPFS_POSIX_ACL entry before the TMPFS_XATTR entry,
to avoid asking unnecessary questions then ignoring their answers.

Signed-off-by: Hugh Dickins <hughd@google.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

authored by

Eric Paris and committed by
Linus Torvalds
4db70f73 520fd845

+15 -14
+15 -14
fs/Kconfig
··· 121 121 122 122 See <file:Documentation/filesystems/tmpfs.txt> for details. 123 123 124 + config TMPFS_POSIX_ACL 125 + bool "Tmpfs POSIX Access Control Lists" 126 + depends on TMPFS 127 + select TMPFS_XATTR 128 + select GENERIC_ACL 129 + help 130 + POSIX Access Control Lists (ACLs) support permissions for users and 131 + groups beyond the owner/group/world scheme. 132 + 133 + To learn more about Access Control Lists, visit the POSIX ACLs for 134 + Linux website <http://acl.bestbits.at/>. 135 + 136 + If you don't know what Access Control Lists are, say N. 137 + 124 138 config TMPFS_XATTR 125 139 bool "Tmpfs extended attributes" 126 140 depends on TMPFS ··· 147 133 Currently this enables support for the trusted.* and 148 134 security.* namespaces. 149 135 150 - If unsure, say N. 151 - 152 136 You need this for POSIX ACL support on tmpfs. 153 137 154 - config TMPFS_POSIX_ACL 155 - bool "Tmpfs POSIX Access Control Lists" 156 - depends on TMPFS_XATTR 157 - select GENERIC_ACL 158 - help 159 - POSIX Access Control Lists (ACLs) support permissions for users and 160 - groups beyond the owner/group/world scheme. 161 - 162 - To learn more about Access Control Lists, visit the POSIX ACLs for 163 - Linux website <http://acl.bestbits.at/>. 164 - 165 - If you don't know what Access Control Lists are, say N. 138 + If unsure, say N. 166 139 167 140 config HUGETLBFS 168 141 bool "HugeTLB file system support"