aboutgitcodebugslistschat
diff options
context:
space:
mode:
authorStefano Brivio <sbrivio@redhat.com>2024-05-22 16:54:03 +0200
committerStefano Brivio <sbrivio@redhat.com>2024-05-23 16:40:33 +0200
commit45b8632dcc0edcc60e17a2d068b433eaf82fdf82 (patch)
tree93438a98bfd37dfbe4f753ed1d2048df43e89003
parent3f917b326b1a29a8dad85031e268616e8f06d6e2 (diff)
downloadpasst-45b8632dcc0edcc60e17a2d068b433eaf82fdf82.tar
passt-45b8632dcc0edcc60e17a2d068b433eaf82fdf82.tar.gz
passt-45b8632dcc0edcc60e17a2d068b433eaf82fdf82.tar.bz2
passt-45b8632dcc0edcc60e17a2d068b433eaf82fdf82.tar.lz
passt-45b8632dcc0edcc60e17a2d068b433eaf82fdf82.tar.xz
passt-45b8632dcc0edcc60e17a2d068b433eaf82fdf82.tar.zst
passt-45b8632dcc0edcc60e17a2d068b433eaf82fdf82.zip
conf: Don't lecture user about starting us as root
libguestfs tools have a good reason to run as root: if the guest image is owned by root, it would be counterproductive to encourage users to invoke them as non-root, as it would require changing permissions or ownership of the image file. And if they run as root, we'll start as root, too. Warn users we'll switch to 'nobody', but don't tell them what to do. Reported-by: Richard W.M. Jones <rjones@redhat.com> Signed-off-by: Stefano Brivio <sbrivio@redhat.com> Reviewed-by: David Gibson <david@gibson.dropbear.id.au> Reviewed-by: Richard W.M. Jones <rjones@redhat.com>
-rw-r--r--conf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/conf.c b/conf.c
index 21d46fe..2e0d909 100644
--- a/conf.c
+++ b/conf.c
@@ -1093,7 +1093,7 @@ static void conf_ugid(char *runas, uid_t *uid, gid_t *gid)
return;
/* ...otherwise use nobody:nobody */
- warn("Don't run as root. Changing to nobody...");
+ warn("Started as root. Changing to nobody...");
{
#ifndef GLIBC_NO_STATIC_NSS
const struct passwd *pw;