diff options
| author | Christian Breunig <christian@breunig.cc> | 2026-10-31 10:04:11 +0000 |
|---|---|---|
| committer | Christian Breunig <christian@breunig.cc> | 2026-11-01 06:53:43 +0000 |
| commit | 4cfde2bafb79e54ffdb3cb1e5f93c5cd37aa8ad7 (patch) | |
| tree | ea32de7a3bcbe5cdced187d12365a37412a370b8 /scripts/package-build/linux-kernel/config/90-debug.config | |
| parent | 140b1c1a89431f28ee2401255e006d1f4f516af2 (diff) | |
| download | vyos-build-4cfde2bafb79e54ffdb3cb1e5f93c5cd37aa8ad7.tar.gz vyos-build-4cfde2bafb79e54ffdb3cb1e5f93c5cd37aa8ad7.zip | |
hooks: T9553: drop file capabilities while running live-build chroot hooks
vyos-1x grants cap_sys_module to kmod and cap_sys_time to date. In a build
container whose capability bounding set lacks these (e.g. a default Proxmox
LXC), the kernel refuses to execute both binaries, even as root. mkinitramfs
ignores the failing modprobe calls and silently produces an initrd without
any kernel modules - the ISO builds fine but cannot find its boot medium.
The capabilities are now removed while the chroot hooks run and restored
afterwards. The initramfs is regenerated before restoring them and live-build
is told to skip its own final regeneration, which would otherwise run with
the capabilities back in place. The build now fails if the initrd lacks the
squashfs module.
Diffstat (limited to 'scripts/package-build/linux-kernel/config/90-debug.config')
0 files changed, 0 insertions, 0 deletions
