summaryrefslogtreecommitdiff
blob: e91935004bd913e90bfbc72d8b76b32c104e06c8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
Enable XATTR_USER_PREFIX extended attribute namespace for tmpfs

For XATTR_PAX_FLAGS markings to work on a tmpfs filesystem, we
need to accept XATTR_USER_PREFIX extended attribute namespace
as valid.  In Gentoo and other distros that make use of tmpfs
for their packaging systems, this makes it possible to pax mark
executables built in tmpfs before being tarred or otherwised
packaged.

X-Gentoo-Bug: 432434
X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=432434
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
---

diff --git a/mm/shmem.c b/mm/shmem.c
--- a/mm/shmem.c
+++ b/mm/shmem.c
@@ -1815,7 +1815,8 @@
 #endif
 
 		{ XATTR_SECURITY_PREFIX, XATTR_SECURITY_PREFIX_LEN },
-		{ XATTR_TRUSTED_PREFIX, XATTR_TRUSTED_PREFIX_LEN }
+		{ XATTR_TRUSTED_PREFIX, XATTR_TRUSTED_PREFIX_LEN },
+		{ XATTR_USER_PREFIX, XATTR_USER_PREFIX_LEN }
 	};
 	int i;