]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
nspawn: --private-users-ownership= value is called 'chown', not 'own'
authorLennart Poettering <lennart@poettering.net>
Wed, 13 Nov 2024 11:14:53 +0000 (12:14 +0100)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Thu, 28 Nov 2024 14:00:40 +0000 (15:00 +0100)
(cherry picked from commit bae936b418e08063b68c95f4df53c3cd4f70e881)

src/nspawn/nspawn.c

index d1bc827ce94e76f69fbf1c270b861b38047b424d..a8d2c8a3a43d96bcaf09146529b73a0dec16132f 100644 (file)
@@ -481,7 +481,8 @@ static int custom_mount_check_all(void) {
                 if (path_equal(m->destination, "/") && arg_userns_mode != USER_NAMESPACE_NO) {
                         if (arg_userns_ownership != USER_NAMESPACE_OWNERSHIP_OFF)
                                 return log_error_errno(SYNTHETIC_ERRNO(EINVAL),
-                                                       "--private-users-ownership=own may not be combined with custom root mounts.");
+                                                       "--private-users-ownership=%s may not be combined with custom root mounts.",
+                                                       user_namespace_ownership_to_string(arg_userns_ownership));
                         if (arg_uid_shift == UID_INVALID)
                                 return log_error_errno(SYNTHETIC_ERRNO(EINVAL),
                                                        "--private-users with automatic UID shift may not be combined with custom root mounts.");