Skip to content

Commit

Permalink
postprocess: Also pick up user.pax.flags
Browse files Browse the repository at this point in the history
This is in use by [PaX](https://en.wikipedia.org/wiki/PaX); see also
the [Arch Linux wiki](https://wiki.archlinux.org/index.php/PaX).

Closes: coreos#412
  • Loading branch information
cgwalters committed Jul 29, 2016
1 parent b3c3c02 commit 99598b4
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/libpriv/rpmostree-postprocess.c
Original file line number Diff line number Diff line change
Expand Up @@ -1711,8 +1711,11 @@ read_xattrs_cb (OstreeRepo *repo,
gpointer user_data)
{
int rootfs_fd = GPOINTER_TO_INT (user_data);
/* Hardcoded at the moment, we're only taking file caps */
static const char *accepted_xattrs[] = { "security.capability" };
/* If you have a use case for something else, file an issue */
static const char *accepted_xattrs[] =
{ "security.capability", /* https://lwn.net/Articles/211883/ */
"user.pax.flags" /* https://github.com/projectatomic/rpm-ostree/issues/412 */
};
guint i;
g_autoptr(GVariant) existing_xattrs = NULL;
gs_free_variant_iter GVariantIter *viter = NULL;
Expand Down

0 comments on commit 99598b4

Please sign in to comment.