diff options
author | Eli Schwartz <eschwartz@archlinux.org> | 2021-02-08 01:55:17 +0100 |
---|---|---|
committer | Allan McRae <allan@archlinux.org> | 2021-02-08 05:23:45 +0100 |
commit | 3a23abb2ec0c99d74719f97dcc9d097a105fe42b (patch) | |
tree | 8c7e687444030ce68b0bd061e9e9a7e70e536e60 /lib/libalpm | |
parent | 88d054093c1c99a697d95b26bd9aad5bc4d8e170 (diff) | |
download | pacman-3a23abb2ec0c99d74719f97dcc9d097a105fe42b.tar.gz pacman-3a23abb2ec0c99d74719f97dcc9d097a105fe42b.tar.xz |
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/libalpm')
-rw-r--r-- | lib/libalpm/add.c | 1 |
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); |