]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
machine: add a comment to clarify that root_directory is informational only
authorLuca Boccassi <luca.boccassi@gmail.com>
Tue, 16 Sep 2025 14:51:08 +0000 (15:51 +0100)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 7 Oct 2025 09:48:58 +0000 (11:48 +0200)
To avoid any possible mistakes in the future, add a comment in the
object declaration

(cherry picked from commit 8324f9351c5d22fa49fa59d1ec3f71afa9408143)

src/machine/machine.h

index bf265143f03be37abc0ac2a9455a5e04cb2eff5a..0dd923fc0565baf6f433b4fb689a3afd2742e16c 100644 (file)
@@ -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;