Skip to content

Extended attributes are not preserved when installing a bundle from a tar archive #1714

@hacel

Description

@hacel

Describe the bug
When installing a bundle containing a tar archive, extended file attributes like security.capability are not preserved.

Background information
I'm using RAUC version v1.13 and the bundle is a simple tar gzipped archive of the filesystem installed on a ext4 slot on Debian 12.

To Reproduce
Steps to reproduce the behavior:

  1. Assume mountpoint is where the desired filesystem for the bundle is mounted at.
  2. Choose a file that has extended attributes and ensure that they are there with the command getcap mountpoint/bin/ping. On Debian 12, you should see cap_net_raw=ep in the output of the previous command.
  3. Create a tar archive of the desired filesystem using the command tar --xattrs -cf image.tar.gz -C mountpoint .
  4. Create a bundle from the tar archive
  5. Install the bundle on a machine
  6. Boot into or simply just mount the freshly installed bundle
  7. Check if extended file attributes were preserved by running for example getcap /bin/ping inside the newly installed bundle.

Expected behavior
I expect the extended attributes to be preserved on installation of the bundle.

Logs
N/A

Additional context
N/A

Metadata

Metadata

Assignees

No one assigned

    Labels

    RFERequest for Enhancement

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions