Skip to content

Commit 4db70f7

Browse files
eparistorvalds
authored andcommitted
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>
1 parent 520fd84 commit 4db70f7

1 file changed

Lines changed: 15 additions & 14 deletions

File tree

‎fs/Kconfig‎

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,20 @@ config TMPFS
121121

122122
See <file:Documentation/filesystems/tmpfs.txt> for details.
123123

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+
124138
config TMPFS_XATTR
125139
bool "Tmpfs extended attributes"
126140
depends on TMPFS
@@ -133,22 +147,9 @@ config TMPFS_XATTR
133147
Currently this enables support for the trusted.* and
134148
security.* namespaces.
135149

136-
If unsure, say N.
137-
138150
You need this for POSIX ACL support on tmpfs.
139151

140-
config TMPFS_POSIX_ACL
141-
bool "Tmpfs POSIX Access Control Lists"
142-
depends on TMPFS_XATTR
143-
select GENERIC_ACL
144-
help
145-
POSIX Access Control Lists (ACLs) support permissions for users and
146-
groups beyond the owner/group/world scheme.
147-
148-
To learn more about Access Control Lists, visit the POSIX ACLs for
149-
Linux website <http://acl.bestbits.at/>.
150-
151-
If you don't know what Access Control Lists are, say N.
152+
If unsure, say N.
152153

153154
config HUGETLBFS
154155
bool "HugeTLB file system support"

0 commit comments

Comments
 (0)