[gnome-build-meta/valentindavid/qemu-bridge-helper-suid] core-deps/qemu.bst: Fix suid for qemu-bridge-helper
- From: Valentin David <valentindavid src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-build-meta/valentindavid/qemu-bridge-helper-suid] core-deps/qemu.bst: Fix suid for qemu-bridge-helper
- Date: Sat, 26 Feb 2022 22:10:45 +0000 (UTC)
commit d043ba8ef2c1fb13517b36565536279b2f853dbb
Author: Valentin David <me valentindavid com>
Date: Sat Feb 26 23:05:03 2022 +0100
core-deps/qemu.bst: Fix suid for qemu-bridge-helper
Setuid for qemu-bridge-helper is required to make `-netdev bridge`
work for user, if allowd by `/etc/qemu/bridge.conf`.
elements/core-deps/qemu.bst | 8 ++++++++
1 file changed, 8 insertions(+)
---
diff --git a/elements/core-deps/qemu.bst b/elements/core-deps/qemu.bst
index 91174144f..995c131e4 100644
--- a/elements/core-deps/qemu.bst
+++ b/elements/core-deps/qemu.bst
@@ -71,3 +71,11 @@ variables:
--build=%{triplet}
%{conf-extra}
%{conf-local}
+
+public:
+ initial-script:
+ script: |
+ #!/bin/bash
+ set -eu
+ sysroot="${1}"
+ chmod 4755 "${sysroot}%{libexecdir}/qemu-bridge-helper"
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]