Skip to content

Bug: xattr security.capability missing on docker image for shadow-utils #114

@meeuw

Description

@meeuw

xattr security.capability missing on docker image.

How to reproduce:

Step 1, run image:

podman run --rm -ti fedora:39

Step 2, install attr (for getfattr below)

dnf install -y attr

Step 3, check xattrs for /usr/bin/newgidmap

getfattr -d -m - usr/bin/newgidmap

Expected result:

# file: usr/bin/newgidmap
security.capability=0sAQAAAkAAAAAAAAAAAAAAAAAAAAA=
security.selinux="system_u:object_r:container_file_t:s0:c375,c964"

Actual result:

# file: usr/bin/newgidmap
security.selinux="system_u:object_r:container_file_t:s0:c375,c964"

Work around:

dnf reinstall shadow-utils

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions