1
0
mirror of https://github.com/systemd/systemd.git synced 2025-01-07 21:18:41 +03:00

Compare commits

..

3 Commits

Author SHA1 Message Date
Yu Watanabe
59241327ac core/namespace: replace MOUNT_PRIVATE_TMP_READ_ONLY with MOUNT_PRIVATE_TMP with .read_only = true 2024-10-22 06:33:17 +09:00
Yu Watanabe
e94a2d242d core/namespace: coding style cleanups 2024-10-22 06:33:17 +09:00
Yu Watanabe
77a52d980e test-execute: check ProtectHome=tmpfs makes /home and friends read-only
This also adds test for MountAPIVFS=yes.

For issue #34825.
2024-10-22 06:33:10 +09:00

View File

@ -757,9 +757,7 @@ static int find_libraries(const char *exec, char ***ret) {
#endif
static void test_exec_mount_apivfs(Manager *m) {
test(m, "exec-mount-apivfs-yes.service",
MANAGER_IS_SYSTEM(m) || VIRTUALIZATION_IS_CONTAINER(detect_container()) ? 0 : EXIT_NAMESPACE,
CLD_EXITED);
test(m, "exec-mount-apivfs-yes.service", 0, CLD_EXITED);
#if !HAS_FEATURE_ADDRESS_SANITIZER
_cleanup_free_ char *fullpath_touch = NULL, *fullpath_test = NULL, *data = NULL;