Skip to content

config: enable EROFS xattr and security support on x86_64#119

Merged
slp merged 1 commit into
libkrun:mainfrom
appcypher:appcypher/enable-erofs-xattr-x86_64
May 5, 2026
Merged

config: enable EROFS xattr and security support on x86_64#119
slp merged 1 commit into
libkrun:mainfrom
appcypher:appcypher/enable-erofs-xattr-x86_64

Conversation

@appcypher
Copy link
Copy Markdown
Contributor

Hey, I noticed that the x86_64 kernel config is missing CONFIG_EROFS_FS_XATTR and CONFIG_EROFS_FS_SECURITY, even though both aarch64 and riscv64 already have them enabled.

This means EROFS on x86_64 can't handle extended attributes, specifically trusted.overlay.* xattrs that overlayfs uses for opaque directory markers, and security.* xattrs.

This came up while working on a project that uses EROFS as the rootfs backing for VM-based containers.

The fix is just adding the two missing config lines to config-libkrunfw_x86_64 to match what the other architectures already have.

@ggoodman
Copy link
Copy Markdown

@appcypher not a maintainer but you need to sign your commit or it won't even be considered.

@appcypher
Copy link
Copy Markdown
Contributor Author

appcypher commented Apr 16, 2026

it is signed.

@nohajc
Copy link
Copy Markdown
Contributor

nohajc commented Apr 16, 2026

git commit -s

It will show an extra line at the bottom reading Signed-off-by: Your Name <email>

Add CONFIG_EROFS_FS_XATTR and CONFIG_EROFS_FS_SECURITY to the x86_64
kernel config, aligning it with aarch64 and riscv64 which already have
these enabled.

Required for trusted.overlay.opaque xattr (used by overlayfs for opaque
directory markers) and security.* xattrs on EROFS filesystems.

Signed-off-by: Stephen Akinyemi <appcypher@outlook.com>
@appcypher appcypher force-pushed the appcypher/enable-erofs-xattr-x86_64 branch from 1354e32 to 25dc715 Compare April 16, 2026 23:25
Copy link
Copy Markdown

@hsiangkao hsiangkao left a comment

Choose a reason for hiding this comment

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

Won't libkrunfw enable "default y" configurations? if not, it makes sense to me.

@slp
Copy link
Copy Markdown
Collaborator

slp commented May 5, 2026

LGTM, thanks!

@slp slp merged commit 3a424fd into libkrun:main May 5, 2026
6 checks passed
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.

5 participants