Skip to content

Commit

Permalink
images: Remove security.selinux extended attributes on CentOS images (#…
Browse files Browse the repository at this point in the history
…285)

Removes xattr `security.selinux` on container CentOS 9-Stream images.

I've tried suggestion from @simondeziel with `+` at the end of the
`find` command to process files in bulk, but it always resulted in an
error - it may be that I've missed something. Feel free to improve.

Passing build on fork:
https://github.com/MusicDin/lxd-ci/actions/runs/10745316648/job/29804098029
  • Loading branch information
simondeziel authored Sep 6, 2024
2 parents a366532 + cf62534 commit a1345f7
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions images/centos.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -378,6 +378,16 @@ actions:
releases:
- 9-Stream

- trigger: post-unpack
action: |-
#!/bin/sh
# Remove security.selinux xattr.
find / -xdev -exec setfattr -x security.selinux {} 2>/dev/null \;
types:
- container
releases:
- 9-Stream

- trigger: post-packages
action: |-
#!/bin/sh
Expand Down

0 comments on commit a1345f7

Please sign in to comment.