diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-09-16 18:28:16 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-09-16 18:28:16 +0000 |
commit | 6341b7a467c18d6e03bf56e32d516ed3dca6e80c (patch) | |
tree | 84262c0a568a2d869b75c0cf165969b6b0e6ca27 /src/test/test-rm-rf.c | |
parent | Adding debian version 256.5-2. (diff) | |
download | systemd-6341b7a467c18d6e03bf56e32d516ed3dca6e80c.tar.xz systemd-6341b7a467c18d6e03bf56e32d516ed3dca6e80c.zip |
Merging upstream version 256.6.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'src/test/test-rm-rf.c')
-rw-r--r-- | src/test/test-rm-rf.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/test/test-rm-rf.c b/src/test/test-rm-rf.c index 4c69bd2..e4a4263 100644 --- a/src/test/test-rm-rf.c +++ b/src/test/test-rm-rf.c @@ -89,6 +89,9 @@ static void test_rm_rf_chmod_inner(void) { TEST(rm_rf_chmod) { int r; + if (getuid() == 0 && userns_has_single_user()) + return (void) log_tests_skipped("running as root or in userns with single user"); + if (getuid() == 0) { /* This test only works unpriv (as only then the access mask for the owning user matters), * hence drop privs here */ |