app-emulation/qemu: suidctl compat

Signed-off-by: Mike Gilbert <floppym@gentoo.org>
This commit is contained in:
Mike Gilbert 2025-11-24 14:33:12 -05:00
parent 6569dfbc10
commit 968a5d9ecd
No known key found for this signature in database
GPG Key ID: 7E58A298F42F9CCD
2 changed files with 8 additions and 2 deletions

View File

@ -900,6 +900,9 @@ src_install() {
pax-mark mr "${softmmu_bins[@]}" "${user_bins[@]}" # bug 575594
popd >/dev/null || die
# suid in src_install to allow FEATURES=suidctl to work properly
fperms u+s /usr/libexec/qemu-bridge-helper
# Install config file example for qemu-bridge-helper
insinto "/etc/qemu"
doins "${FILESDIR}/bridge.conf"
@ -963,7 +966,7 @@ pkg_postinst() {
xdg_icon_cache_update
[[ -z ${EPREFIX} ]] && [[ -f ${EROOT}/usr/libexec/qemu-bridge-helper ]] && \
fcaps -m u+s cap_net_admin "${EROOT}"/usr/libexec/qemu-bridge-helper
fcaps -M u-s cap_net_admin "${EROOT}"/usr/libexec/qemu-bridge-helper
DISABLE_AUTOFORMATTING=true
readme.gentoo_print_elog

View File

@ -899,6 +899,9 @@ src_install() {
pax-mark mr "${softmmu_bins[@]}" "${user_bins[@]}" # bug 575594
popd >/dev/null || die
# suid in src_install to allow FEATURES=suidctl to work properly
fperms u+s /usr/libexec/qemu-bridge-helper
# Install config file example for qemu-bridge-helper
insinto "/etc/qemu"
doins "${FILESDIR}/bridge.conf"
@ -962,7 +965,7 @@ pkg_postinst() {
xdg_icon_cache_update
[[ -z ${EPREFIX} ]] && [[ -f ${EROOT}/usr/libexec/qemu-bridge-helper ]] && \
fcaps -m u+s cap_net_admin "${EROOT}"/usr/libexec/qemu-bridge-helper
fcaps -M u-s cap_net_admin "${EROOT}"/usr/libexec/qemu-bridge-helper
DISABLE_AUTOFORMATTING=true
readme.gentoo_print_elog