From: Luca Boccassi Date: Tue, 16 Sep 2025 14:51:08 +0000 (+0100) Subject: machine: add a comment to clarify that root_directory is informational only X-Git-Tag: v257.10~57 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b9293b392508506c1d959217c6c1f7aa49151e5a;p=thirdparty%2Fsystemd.git machine: add a comment to clarify that root_directory is informational only To avoid any possible mistakes in the future, add a comment in the object declaration (cherry picked from commit 8324f9351c5d22fa49fa59d1ec3f71afa9408143) --- diff --git a/src/machine/machine.h b/src/machine/machine.h index bf265143f03..0dd923fc056 100644 --- a/src/machine/machine.h +++ b/src/machine/machine.h @@ -43,6 +43,8 @@ struct Machine { char *state_file; char *service; + /* Note that the root directory is accepted as-is from the caller, including unprivileged users, so + * do not use it for anything but informational purposes. */ char *root_directory; char *unit;