Skip to content

Make pax vendor record policy more flexible - #103

Merged
woodruffw merged 3 commits into
mainfrom
ww/flexible-pax-vendor-policy
Jul 31, 2026
Merged

Make pax vendor record policy more flexible#103
woodruffw merged 3 commits into
mainfrom
ww/flexible-pax-vendor-policy

Conversation

@woodruffw

Copy link
Copy Markdown
Member

Closes #102.

Signed-off-by: William Woodruff <william@yossarian.net>
/// Construct an allowlist with [`PaxVendorExtensionPolicy::ignore`].
#[derive(Clone, Debug, Eq, PartialEq)]
pub struct PaxVendorExtensionAllowlist {
keywords: HashSet<&'static str>,

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

NB: I don't think it's worth it for now, but in principle this should be something like HashSet<Namespaced> where Namespaced is:

struct Namespaced {
    namespace: Arc<str>,
    name: Arc<str>,
}

...and then we could reuse our PaxRecord::parse_namespaced machinery.

@woodruffw
woodruffw marked this pull request as ready for review July 31, 2026 17:56
Signed-off-by: William Woodruff <william@yossarian.net>
Signed-off-by: William Woodruff <william@yossarian.net>
@woodruffw
woodruffw merged commit 6ed04c2 into main Jul 31, 2026
5 checks passed
@woodruffw
woodruffw deleted the ww/flexible-pax-vendor-policy branch July 31, 2026 18:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Provide a more nuanced pax vendor policy

1 participant