From 3a23abb2ec0c99d74719f97dcc9d097a105fe42b Mon Sep 17 00:00:00 2001 From: Eli Schwartz Date: Sun, 7 Feb 2021 19:55:17 -0500 Subject: 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 Signed-off-by: Allan McRae --- lib/libalpm/add.c | 1 + 1 file changed, 1 insertion(+) 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); -- cgit v1.2.3-54-g00ecf