Skip to content

Add minimal xattr support to squashfs#27

Open
lordwelch wants to merge 1 commit into
gokrazy:mainfrom
lordwelch:capabilities
Open

Add minimal xattr support to squashfs#27
lordwelch wants to merge 1 commit into
gokrazy:mainfrom
lordwelch:capabilities

Conversation

@lordwelch
Copy link
Copy Markdown

This is only implemented to support capabilities on installed go packages.
It should be fairly easy to extend support for xattrs from extra_files if desired
though it would be able to use up this implementations available space quickly.

Note that this does not write multiple metadata blocks to squashfs so ends up
limited on the number and size of xattrs it is capable of writing.
As the purpose was to support 2 executables with a single xattr each the limit of
around 64 unique groups is enough. Xattrs are de-duplicated by group so if any
files share the exact same list of xattrs they will all refer to a single written xattr.

This is only implemented to support capabilities on installed packages
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.

1 participant