Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorEli Schwartz <eschwartz@archlinux.org>2021-02-07 19:55:17 -0500
committerAllan McRae <allan@archlinux.org>2021-02-08 14:23:45 +1000
commit3a23abb2ec0c99d74719f97dcc9d097a105fe42b (patch)
tree8c7e687444030ce68b0bd061e9e9a7e70e536e60 /lib
parent88d054093c1c99a697d95b26bd9aad5bc4d8e170 (diff)
support xattr when extracting packages
This permits storing the result of setcap during package() and applying the resulting capabilities to the installed program. Formerly, it was necessary to edit the binary after the fact (and thus dirty the file according to -Qkk) by using an install scriptlet. One problem that needs to be solved before this is useful, is preventing the strip routine from destroying xattrs. This is taken care of in the previous patch. Signed-off-by: Eli Schwartz <eschwartz@archlinux.org> Signed-off-by: Allan McRae <allan@archlinux.org>
Diffstat (limited to 'lib')
-rw-r--r--lib/libalpm/add.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/libalpm/add.c b/lib/libalpm/add.c
index db0dba68..53368b47 100644
--- a/lib/libalpm/add.c
+++ b/lib/libalpm/add.c
@@ -119,6 +119,7 @@ static int perform_extraction(alpm_handle_t *handle, struct archive *archive,
ARCHIVE_EXTRACT_PERM |
ARCHIVE_EXTRACT_TIME |
ARCHIVE_EXTRACT_UNLINK |
+ ARCHIVE_EXTRACT_XATTR |
ARCHIVE_EXTRACT_SECURE_SYMLINKS;
archive_entry_set_pathname(entry, filename);