mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2025-12-08 00:05:33 +03:00
app-emulation/qemu: suidctl compat
Signed-off-by: Mike Gilbert <floppym@gentoo.org>
This commit is contained in:
parent
6569dfbc10
commit
968a5d9ecd
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user