diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2023-06-05 07:18:47 +0200 |
---|---|---|
committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2024-10-22 13:14:33 +0200 |
commit | c443f6924fa3b02113da2536dd816a15ee708510 (patch) | |
tree | 7f77f1e61f7d748019ce4853ec2a6787feb7043f /src/test | |
parent | Merge pull request #34761 from ikruglov/ikruglov/io-systemd-Machine-GetAddresses (diff) | |
download | systemd-c443f6924fa3b02113da2536dd816a15ee708510.tar.xz systemd-c443f6924fa3b02113da2536dd816a15ee708510.zip |
test-execute: update permission of credstore
Follow-up for 40fb9eebbc075ce1e63100386d2c5f177ad7d738.
Diffstat (limited to 'src/test')
-rw-r--r-- | src/test/test-execute.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/test/test-execute.c b/src/test/test-execute.c index 9e3288b7a9..95ccf5490d 100644 --- a/src/test/test-execute.c +++ b/src/test/test-execute.c @@ -353,8 +353,8 @@ static void test_exec_cpuaffinity(Manager *m) { static void test_exec_credentials(Manager *m) { test(m, "exec-set-credential.service", 0, CLD_EXITED); - test(m, "exec-load-credential.service", MANAGER_IS_SYSTEM(m) ? 0 : EXIT_CREDENTIALS, CLD_EXITED); - test(m, "exec-credentials-dir-specifier.service", MANAGER_IS_SYSTEM(m) ? 0 : EXIT_CREDENTIALS, CLD_EXITED); + test(m, "exec-load-credential.service", 0, CLD_EXITED); + test(m, "exec-credentials-dir-specifier.service", 0, CLD_EXITED); } static void test_exec_workingdirectory(Manager *m) { @@ -1498,8 +1498,8 @@ static int prepare_ns(const char *process_name) { /* Prepare credstore like tmpfiles.d/credstore.conf for LoadCredential= tests. */ FOREACH_STRING(p, "/run/credstore", "/run/credstore.encrypted") { - ASSERT_OK(mkdir_p(p, 0)); - ASSERT_OK(mount_nofollow_verbose(LOG_DEBUG, "tmpfs", p, "tmpfs", MS_NOSUID|MS_NODEV, "mode=0000")); + ASSERT_OK(mkdir_p(p, 0700)); + ASSERT_OK(mount_nofollow_verbose(LOG_DEBUG, "tmpfs", p, "tmpfs", MS_NOSUID|MS_NODEV, "mode=0700")); } ASSERT_OK(write_string_file("/run/credstore/test-execute.load-credential", "foo", WRITE_STRING_FILE_CREATE)); |