]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
machine: add a comment to clarify that root_directory is informational only 38911/head
authorLuca Boccassi <luca.boccassi@gmail.com>
Tue, 16 Sep 2025 14:51:08 +0000 (15:51 +0100)
committerLuca Boccassi <luca.boccassi@gmail.com>
Tue, 16 Sep 2025 14:58:28 +0000 (15:58 +0100)
To avoid any possible mistakes in the future, add a comment in the
object declaration

src/machine/machine.h

index 8f1a044f7a09fca583b87f8a163bc66b282b65ae..4bdb049c5fb2b3ef83f49a624917dc1e8ac30e28 100644 (file)
@@ -45,6 +45,8 @@ typedef 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;