[PATCH] Revert "tests: add test case for UMask=+BindPaths= combination"

This test currently fails inside privileged LXD containers (LP: #1959013)

This reverts commit ae53f4b5e48860b473c4d05958486a77f84ecc6d.

Gbp-Pq: Name 0001-Revert-tests-add-test-case-for-UMask-BindPaths-combi.patch
This commit is contained in:
Lukas Märdian 2022-01-25 16:13:22 +01:00 committed by liaoxianfu
parent 980bb35a9b
commit cfe94d168d
2 changed files with 0 additions and 23 deletions

View File

@ -1147,16 +1147,6 @@ static void test_exec_condition(Manager *m) {
test_service(m, "exec-condition-skip.service", SERVICE_SKIP_CONDITION);
}
static void test_exec_umask_namespace(Manager *m) {
/* exec-specifier-credentials-dir.service creates /run/credentials and enables implicit
* InaccessiblePath= for the directory for all later services with mount namespace. */
if (!is_inaccessible_available()) {
log_notice("Testing without inaccessible, skipping %s", __func__);
return;
}
test(m, "exec-umask-namespace.service", can_unshare ? 0 : EXIT_NAMESPACE, CLD_EXITED);
}
typedef struct test_entry {
test_function_t f;
const char *name;
@ -1239,7 +1229,6 @@ int main(int argc, char *argv[]) {
entry(test_exec_specifier),
entry(test_exec_execsearchpath_specifier),
entry(test_exec_systemcallfilter_system),
entry(test_exec_umask_namespace),
{},
};
int r;

View File

@ -1,12 +0,0 @@
# SPDX-License-Identifier: LGPL-2.1-or-later
[Unit]
Description=Test for UMask= + namespacing
[Service]
ExecStart=/bin/ls -lahd /tmp/subdir
Type=oneshot
User=65534
Group=65534
TemporaryFileSystem=/tmp:ro
BindPaths=/etc:/tmp/subdir/subsub
UMask=0007