mirror of
https://github.com/systemd/systemd.git
synced 2025-01-09 01:18:19 +03:00
nspawn: --private-users-ownership= value is called 'chown', not 'own'
(cherry picked from commit bae936b418
)
This commit is contained in:
parent
cf7b3cc182
commit
bdf3f9b8f2
@ -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.");
|
||||
|
Loading…
Reference in New Issue
Block a user