test: don't expect that clone() always makes it to the kernel
We might get EPERM on certain clone() flag combinations. Apparently in Docker for example. Prompted by: https://github.com/systemd/systemd/pull/19800#issuecomment-854196491
This commit is contained in:
@@ -316,7 +316,7 @@ static void test_raw_clone(void) {
|
||||
|
||||
errno = 0;
|
||||
assert_se(raw_clone(CLONE_FS|CLONE_NEWNS) == -1);
|
||||
assert_se(errno == EINVAL);
|
||||
assert_se(errno == EINVAL || ERRNO_IS_PRIVILEGE(errno)); /* Certain container environments prohibit namespaces to us, don't fail in that case */
|
||||
}
|
||||
|
||||
static void test_physical_memory(void) {
|
||||
|
||||
Reference in New Issue
Block a user