* [PATCH] libvirt: Add setuid permission to virt-login-shell
@ 2020-04-02 6:03 He Zhe
2020-04-06 2:17 ` [meta-virtualization] " Bruce Ashfield
0 siblings, 1 reply; 3+ messages in thread
From: He Zhe @ 2020-04-02 6:03 UTC (permalink / raw)
To: meta-virtualization
From: He Zhe <zhe.he@windriver.com>
virt-login-shell asks for setuid permission as follow.
"virt-login-shell: must be run as setuid root"
Signed-off-by: He Zhe <zhe.he@windriver.com>
---
recipes-extended/libvirt/libvirt_6.1.0.bb | 3 +++
1 file changed, 3 insertions(+)
diff --git a/recipes-extended/libvirt/libvirt_6.1.0.bb b/recipes-extended/libvirt/libvirt_6.1.0.bb
index 7b10920..9aa78b7 100644
--- a/recipes-extended/libvirt/libvirt_6.1.0.bb
+++ b/recipes-extended/libvirt/libvirt_6.1.0.bb
@@ -368,6 +368,9 @@ do_install_append() {
# Force the connection to be tls.
sed -i -e 's/^\(listen_tls\ =\ .*\)/#\1/' -e 's/^\(listen_tcp\ =\ .*\)/#\1/' ${D}/etc/libvirt/libvirtd.conf
fi
+
+ # virt-login-shell needs to run with setuid permission
+ chmod 4755 ${D}${bindir}/virt-login-shell
}
EXTRA_OECONF += " \
--
2.7.4
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [meta-virtualization] [PATCH] libvirt: Add setuid permission to virt-login-shell
2020-04-02 6:03 [PATCH] libvirt: Add setuid permission to virt-login-shell He Zhe
@ 2020-04-06 2:17 ` Bruce Ashfield
0 siblings, 0 replies; 3+ messages in thread
From: Bruce Ashfield @ 2020-04-06 2:17 UTC (permalink / raw)
To: He Zhe; +Cc: meta-virtualization
merged.
Bruce
In message: [meta-virtualization] [PATCH] libvirt: Add setuid permission to virt-login-shell
on 02/04/2020 He Zhe wrote:
> From: He Zhe <zhe.he@windriver.com>
>
> virt-login-shell asks for setuid permission as follow.
> "virt-login-shell: must be run as setuid root"
>
> Signed-off-by: He Zhe <zhe.he@windriver.com>
> ---
> recipes-extended/libvirt/libvirt_6.1.0.bb | 3 +++
> 1 file changed, 3 insertions(+)
>
> diff --git a/recipes-extended/libvirt/libvirt_6.1.0.bb b/recipes-extended/libvirt/libvirt_6.1.0.bb
> index 7b10920..9aa78b7 100644
> --- a/recipes-extended/libvirt/libvirt_6.1.0.bb
> +++ b/recipes-extended/libvirt/libvirt_6.1.0.bb
> @@ -368,6 +368,9 @@ do_install_append() {
> # Force the connection to be tls.
> sed -i -e 's/^\(listen_tls\ =\ .*\)/#\1/' -e 's/^\(listen_tcp\ =\ .*\)/#\1/' ${D}/etc/libvirt/libvirtd.conf
> fi
> +
> + # virt-login-shell needs to run with setuid permission
> + chmod 4755 ${D}${bindir}/virt-login-shell
> }
>
> EXTRA_OECONF += " \
> --
> 2.7.4
>
>
^ permalink raw reply [flat|nested] 3+ messages in thread
* [meta-virtualization][PATCH] libvirt: Add setuid permission to virt-login-shell
@ 2020-04-02 6:03 He Zhe
0 siblings, 0 replies; 3+ messages in thread
From: He Zhe @ 2020-04-02 6:03 UTC (permalink / raw)
To: meta-virtualization
From: He Zhe <zhe.he@windriver.com>
virt-login-shell asks for setuid permission as follow.
"virt-login-shell: must be run as setuid root"
Signed-off-by: He Zhe <zhe.he@windriver.com>
---
recipes-extended/libvirt/libvirt_6.1.0.bb | 3 +++
1 file changed, 3 insertions(+)
diff --git a/recipes-extended/libvirt/libvirt_6.1.0.bb b/recipes-extended/libvirt/libvirt_6.1.0.bb
index 7b10920..9aa78b7 100644
--- a/recipes-extended/libvirt/libvirt_6.1.0.bb
+++ b/recipes-extended/libvirt/libvirt_6.1.0.bb
@@ -368,6 +368,9 @@ do_install_append() {
# Force the connection to be tls.
sed -i -e 's/^\(listen_tls\ =\ .*\)/#\1/' -e 's/^\(listen_tcp\ =\ .*\)/#\1/' ${D}/etc/libvirt/libvirtd.conf
fi
+
+ # virt-login-shell needs to run with setuid permission
+ chmod 4755 ${D}${bindir}/virt-login-shell
}
EXTRA_OECONF += " \
--
2.7.4
^ permalink raw reply related [flat|nested] 3+ messages in thread
end of thread, other threads:[~2020-04-06 2:17 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-04-02 6:03 [PATCH] libvirt: Add setuid permission to virt-login-shell He Zhe
2020-04-06 2:17 ` [meta-virtualization] " Bruce Ashfield
2020-04-02 6:03 [meta-virtualization][PATCH] " He Zhe
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.