labeled-squashfs

command module
v0.0.0-...-abff95d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 27, 2026 License: MPL-2.0 Imports: 11 Imported by: 0

Documentation

Overview

Package main builds a SELinux-labeled squashfs image without requiring fakeroot or write access to security.* xattrs on the source tree.

It walks the source rootfs, looks up each path's SELinux context against the supplied file_contexts, and emits a mksquashfs pseudo-file definition list. mksquashfs is then invoked with -xattrs-exclude '.*' so it ignores any xattrs on the source filesystem and -pf <pseudo> so it embeds the SELinux labels directly into the image.

This is the equivalent, for the rootfs build, of what siderolabs/talos PR #13075 did for extension compression.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL