Skip to content

Bug: nydus-image create does not work when ACLs are set #1394

@dhbaird

Description

@dhbaird

Additional Information

Version of nydus being used (nydusd --version)

nydus-image --version
# >>>
Version:   v2.2.2
Git Commit:     19d5b12bb0ca58d0474861416e91961169235114
Build Time:     2023-07-17T04:12:08.369576349Z
Profile:   release
Rustc:     rustc 1.66.1 (90743e729 2023-01-10)

Details about issue

To reproduce:

mkdir blobs
install -D /dev/null files/file_with_acl
setfacl -m user:root:rwx files/file_with_acl
xattr files/file_with_acl  # >>> system.posix_acl_access
nydus-image create -t dir-rafs -D blobs files
# >>>
# [2023-08-07 16:06:23.603097 -04:00] ERROR [/src/error.rs:22] Error:
#  "invalid xattr key"
#  at rafs/src/metadata/layout/mod.rs:268
#  note: enable `RUST_BACKTRACE=1` env to display a backtrace
# Error: build failed
#
# Caused by:
#     0: failed to create node "files/file_with_acl"
#     1: failed to build inode
#     2: Invalid argument (os error 22)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions