1
0
mirror of https://github.com/systemd/systemd.git synced 2025-03-19 22:50:17 +03:00

core/taint: we know we're always running on cgv2 now

This commit is contained in:
Mike Yuan 2025-03-09 15:39:33 +01:00
parent 1aa77b3a1b
commit 6e7f8644a5
No known key found for this signature in database
GPG Key ID: 417471C0A40F58B3
3 changed files with 0 additions and 20 deletions

View File

@ -52,9 +52,6 @@ char** taint_strv(void) {
if (readlink_malloc("/var/run", &var_run) < 0 || !PATH_IN_SET(var_run, "../run", "/run"))
stage[n++] = "var-run-bad";
if (cg_all_unified() == 0)
stage[n++] = "cgroupsv1";
if (clock_is_localtime(NULL) > 0)
stage[n++] = "local-hwclock";

View File

@ -540,9 +540,6 @@ executables += [
'dependencies' : [threads, libblkid],
'parallel' : false,
},
core_test_template + {
'sources' : files('test-taint.c'),
},
core_test_template + {
'sources' : files('test-namespace.c'),
'dependencies' : [

View File

@ -1,14 +0,0 @@
/* SPDX-License-Identifier: LGPL-2.1-or-later */
#include "taint.h"
#include "tests.h"
TEST(taint_string) {
_cleanup_free_ char *a = taint_string();
assert_se(a);
log_debug("taint string: '%s'", a);
assert_se(!!strstr(a, "cgroupsv1") == (cg_all_unified() == 0));
}
DEFINE_TEST_MAIN(LOG_DEBUG);