Skip to content

Conversation

mrstux
Copy link

@mrstux mrstux commented May 27, 2025

NFS4v2 supports user.xattrs, and can be used with Incus via the dir driver, but image unpacking will fail when the container image uses non-user xattrs such as security.xattr

This fix will skip extraction of security.xattrs when extracting to an NFS hosted directory

The fix is not specific to the dir driver, and could benefit a future NFS driver (#2025)

In my testing, privileged containers can successfully be started from NFS hosted dir storage pools.

@mrstux mrstux requested a review from stgraber as a code owner May 27, 2025 05:15
NFS4v2 supports user.xattr, and can be used with Incus via the dir driver,
but image unpacking will fail when the container image uses non-user xattrs
such as security.xattr

This fix will skip extraction of security.xattrs when extracting to an NFS
hosted directory

The fix is not specific to the dir driver, and could benefit a future NFS
driver too.

Signed-off-by: Stuart Espey <[email protected]>
@stgraber
Copy link
Member

Superseded by #2149. I'd normally push minor fixes directly to the branch but that doesn't typically work when the origin repository belongs to an organization (as is the case here with truenas).

@stgraber stgraber closed this May 27, 2025
@Foxboron
Copy link
Contributor

Ah, thanks for this fix. It's what originally pushed me to look at an nfs storage driver.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants