Lines Matching refs:condition_new
44 condition = condition_new(CONDITION_PATH_EXISTS, "/bin/sh", false, false); in TEST()
49 condition = condition_new(CONDITION_PATH_EXISTS, "/bin/s?", false, false); in TEST()
54 condition = condition_new(CONDITION_PATH_EXISTS_GLOB, "/bin/s?", false, false); in TEST()
59 condition = condition_new(CONDITION_PATH_EXISTS_GLOB, "/bin/s?", false, true); in TEST()
64 condition = condition_new(CONDITION_PATH_EXISTS, "/thiscertainlywontexist", false, false); in TEST()
69 condition = condition_new(CONDITION_PATH_EXISTS, "/thiscertainlywontexist", false, true); in TEST()
74 condition = condition_new(CONDITION_PATH_IS_DIRECTORY, "/bin", false, false); in TEST()
79 condition = condition_new(CONDITION_DIRECTORY_NOT_EMPTY, "/bin", false, false); in TEST()
84 condition = condition_new(CONDITION_FILE_NOT_EMPTY, "/bin/sh", false, false); in TEST()
89 condition = condition_new(CONDITION_FILE_IS_EXECUTABLE, "/bin/sh", false, false); in TEST()
94 condition = condition_new(CONDITION_FILE_IS_EXECUTABLE, "/etc/passwd", false, false); in TEST()
99 condition = condition_new(CONDITION_PATH_IS_MOUNT_POINT, "/proc", false, false); in TEST()
104 condition = condition_new(CONDITION_PATH_IS_MOUNT_POINT, "/", false, false); in TEST()
109 condition = condition_new(CONDITION_PATH_IS_MOUNT_POINT, "/bin", false, false); in TEST()
114 condition = condition_new(CONDITION_PATH_IS_READ_WRITE, "/tmp", false, false); in TEST()
119 condition = condition_new(CONDITION_PATH_IS_ENCRYPTED, "/sys", false, false); in TEST()
124 condition = condition_new(CONDITION_PATH_IS_SYMBOLIC_LINK, "/dev/stdout", false, false); in TEST()
141 condition = condition_new(CONDITION_CONTROL_GROUP_CONTROLLER, "v1", false, false); in TEST()
146 condition = condition_new(CONDITION_CONTROL_GROUP_CONTROLLER, "v2", false, false); in TEST()
166 …condition = condition_new(CONDITION_CONTROL_GROUP_CONTROLLER, "thisisnotarealcontroller", false, f… in TEST()
171 …condition = condition_new(CONDITION_CONTROL_GROUP_CONTROLLER, "thisisnotarealcontroller", false, t… in TEST()
184 …condition = condition_new(CONDITION_CONTROL_GROUP_CONTROLLER, local_controller_name, false, false); in TEST()
189 … condition = condition_new(CONDITION_CONTROL_GROUP_CONTROLLER, local_controller_name, false, true); in TEST()
195 …condition = condition_new(CONDITION_CONTROL_GROUP_CONTROLLER, local_controller_name, false, false); in TEST()
200 … condition = condition_new(CONDITION_CONTROL_GROUP_CONTROLLER, local_controller_name, false, true); in TEST()
210 …condition = condition_new(CONDITION_CONTROL_GROUP_CONTROLLER, strempty(controller_name), false, fa… in TEST()
215 …condition = condition_new(CONDITION_CONTROL_GROUP_CONTROLLER, strempty(controller_name), false, tr… in TEST()
224 condition = condition_new(CONDITION_AC_POWER, "true", false, false); in TEST()
229 condition = condition_new(CONDITION_AC_POWER, "false", false, false); in TEST()
234 condition = condition_new(CONDITION_AC_POWER, "false", false, true); in TEST()
247 condition = condition_new(CONDITION_HOST, SD_ID128_TO_STRING(id), false, false); in TEST()
252 condition = condition_new(CONDITION_HOST, "garbage value jjjjjjjjjjjjjj", false, false); in TEST()
257 condition = condition_new(CONDITION_HOST, SD_ID128_TO_STRING(id), false, true); in TEST()
269 condition = condition_new(CONDITION_HOST, hostname, false, false); in TEST()
287 condition = condition_new(CONDITION_ARCHITECTURE, sa, false, false); in TEST()
292 condition = condition_new(CONDITION_ARCHITECTURE, "garbage value", false, false); in TEST()
297 condition = condition_new(CONDITION_ARCHITECTURE, sa, false, true); in TEST()
307 …condition = condition_new(CONDITION_KERNEL_COMMAND_LINE, "thisreallyshouldntbeonthekernelcommandli… in TEST()
315 condition = condition_new(CONDITION_KERNEL_COMMAND_LINE, "andthis=neither", false, false); in TEST()
326 …condition = condition_new(CONDITION_KERNEL_VERSION, "*thisreallyshouldntbeinthekernelversion*", fa… in TEST()
331 condition = condition_new(CONDITION_KERNEL_VERSION, "*", false, false); in TEST()
338 condition = condition_new(CONDITION_KERNEL_VERSION, "", false, false); in TEST()
345 condition = condition_new(CONDITION_KERNEL_VERSION, u.release, false, false); in TEST()
353 condition = condition_new(CONDITION_KERNEL_VERSION, u.release, false, false); in TEST()
359 condition = condition_new(CONDITION_KERNEL_VERSION, "> 0.1.2", false, false); in TEST()
364 condition = condition_new(CONDITION_KERNEL_VERSION, ">0.1.2", false, false); in TEST()
369 condition = condition_new(CONDITION_KERNEL_VERSION, "'>0.1.2' '<9.0.0'", false, false); in TEST()
374 condition = condition_new(CONDITION_KERNEL_VERSION, "> 0.1.2 < 9.0.0", false, false); in TEST()
379 condition = condition_new(CONDITION_KERNEL_VERSION, ">", false, false); in TEST()
384 condition = condition_new(CONDITION_KERNEL_VERSION, ">= 0.1.2", false, false); in TEST()
389 condition = condition_new(CONDITION_KERNEL_VERSION, "< 0.1.2", false, false); in TEST()
394 condition = condition_new(CONDITION_KERNEL_VERSION, "<= 0.1.2", false, false); in TEST()
399 condition = condition_new(CONDITION_KERNEL_VERSION, "= 0.1.2", false, false); in TEST()
405 condition = condition_new(CONDITION_KERNEL_VERSION, "< 4711.8.15", false, false); in TEST()
410 condition = condition_new(CONDITION_KERNEL_VERSION, "<= 4711.8.15", false, false); in TEST()
415 condition = condition_new(CONDITION_KERNEL_VERSION, "= 4711.8.15", false, false); in TEST()
420 condition = condition_new(CONDITION_KERNEL_VERSION, "> 4711.8.15", false, false); in TEST()
425 condition = condition_new(CONDITION_KERNEL_VERSION, ">= 4711.8.15", false, false); in TEST()
433 condition = condition_new(CONDITION_KERNEL_VERSION, v, false, false); in TEST()
439 condition = condition_new(CONDITION_KERNEL_VERSION, v, false, false); in TEST()
445 condition = condition_new(CONDITION_KERNEL_VERSION, v, false, false); in TEST()
451 condition = condition_new(CONDITION_KERNEL_VERSION, v, false, false); in TEST()
457 condition = condition_new(CONDITION_KERNEL_VERSION, v, false, false); in TEST()
467 condition = condition_new(CONDITION_CPU_FEATURE, "fpu", false, false); in TEST()
472 …condition = condition_new(CONDITION_CPU_FEATURE, "somecpufeaturethatreallydoesntmakesense", false,… in TEST()
477 condition = condition_new(CONDITION_CPU_FEATURE, "a", false, false); in TEST()
487 condition = condition_new(CONDITION_SECURITY, "garbage oifdsjfoidsjoj", false, false); in TEST()
492 condition = condition_new(CONDITION_SECURITY, "selinux", false, true); in TEST()
497 condition = condition_new(CONDITION_SECURITY, "apparmor", false, false); in TEST()
502 condition = condition_new(CONDITION_SECURITY, "tomoyo", false, false); in TEST()
507 condition = condition_new(CONDITION_SECURITY, "ima", false, false); in TEST()
512 condition = condition_new(CONDITION_SECURITY, "smack", false, false); in TEST()
517 condition = condition_new(CONDITION_SECURITY, "audit", false, false); in TEST()
522 condition = condition_new(CONDITION_SECURITY, "uefi-secureboot", false, false); in TEST()
545 condition = condition_new(CONDITION_VIRTUALIZATION, "garbage oifdsjfoidsjoj", false, false); in TEST()
554 condition = condition_new(CONDITION_VIRTUALIZATION, "container", false, false); in TEST()
561 condition = condition_new(CONDITION_VIRTUALIZATION, "vm", false, false); in TEST()
568 condition = condition_new(CONDITION_VIRTUALIZATION, "private-users", false, false); in TEST()
590 condition = condition_new(CONDITION_VIRTUALIZATION, virt, false, false); in TEST()
605 condition = condition_new(CONDITION_USER, "garbage oifdsjfoidsjoj", false, false); in TEST()
613 condition = condition_new(CONDITION_USER, uid, false, false); in TEST()
622 condition = condition_new(CONDITION_USER, uid, false, false); in TEST()
631 condition = condition_new(CONDITION_USER, uid, false, false); in TEST()
641 condition = condition_new(CONDITION_USER, username, false, false); in TEST()
650 condition = condition_new(CONDITION_USER, username, false, false); in TEST()
657 condition = condition_new(CONDITION_USER, "@system", false, false); in TEST()
676 condition = condition_new(CONDITION_GROUP, gid, false, false); in TEST()
685 condition = condition_new(CONDITION_GROUP, gid, false, false); in TEST()
704 condition = condition_new(CONDITION_GROUP, gid, false, false); in TEST()
715 condition = condition_new(CONDITION_GROUP, groupname, false, false); in TEST()
726 condition = condition_new(CONDITION_GROUP, gid, false, false); in TEST()
735 condition = condition_new(CONDITION_GROUP, groupname, false, false); in TEST()
749 condition = condition_new(CONDITION_CPUS, s, false, false); in test_condition_test_cpus_one()
810 condition = condition_new(CONDITION_MEMORY, s, false, false); in test_condition_test_memory_one()
870 condition = condition_new(CONDITION_ENVIRONMENT, s, false, false); in test_condition_test_environment_one()
904 …condition = condition_new(CONDITION_OS_RELEASE, "_THISHOPEFULLYWONTEXIST=01234 56789", false, fals… in TEST()
909 condition = condition_new(CONDITION_OS_RELEASE, "WRONG FORMAT", false, false); in TEST()
914 condition = condition_new(CONDITION_OS_RELEASE, "WRONG!<>=FORMAT", false, false); in TEST()
919 condition = condition_new(CONDITION_OS_RELEASE, "WRONG FORMAT=", false, false); in TEST()
924 condition = condition_new(CONDITION_OS_RELEASE, "WRONG =FORMAT", false, false); in TEST()
929 condition = condition_new(CONDITION_OS_RELEASE, "WRONG = FORMAT", false, false); in TEST()
934 condition = condition_new(CONDITION_OS_RELEASE, "WRONGFORMAT= ", false, false); in TEST()
939 condition = condition_new(CONDITION_OS_RELEASE, "WRO NG=FORMAT", false, false); in TEST()
944 condition = condition_new(CONDITION_OS_RELEASE, "", false, false); in TEST()
954 condition = condition_new(CONDITION_OS_RELEASE, key_value_pair, false, false); in TEST()
960 condition = condition_new(CONDITION_OS_RELEASE, key_value_pair, false, false); in TEST()
970 condition = condition_new(CONDITION_OS_RELEASE, key_value_pair, false, false); in TEST()
976 condition = condition_new(CONDITION_OS_RELEASE, key_value_pair, false, false); in TEST()
982 condition = condition_new(CONDITION_OS_RELEASE, key_value_pair, false, false); in TEST()
988 condition = condition_new(CONDITION_OS_RELEASE, key_value_pair, false, false); in TEST()
994 condition = condition_new(CONDITION_OS_RELEASE, key_value_pair, false, false); in TEST()
1000 condition = condition_new(CONDITION_OS_RELEASE, key_value_pair, false, false); in TEST()
1006 condition = condition_new(CONDITION_OS_RELEASE, key_value_pair, false, false); in TEST()
1012 condition = condition_new(CONDITION_OS_RELEASE, key_value_pair, false, false); in TEST()
1018 condition = condition_new(CONDITION_OS_RELEASE, key_value_pair, false, false); in TEST()
1024 condition = condition_new(CONDITION_OS_RELEASE, key_value_pair, false, false); in TEST()
1030 condition = condition_new(CONDITION_OS_RELEASE, key_value_pair, false, false); in TEST()
1044 condition = condition_new(CONDITION_MEMORY_PRESSURE, "", false, false); in TEST()
1049 condition = condition_new(CONDITION_CPU_PRESSURE, "sbarabau", false, false); in TEST()
1054 condition = condition_new(CONDITION_MEMORY_PRESSURE, "10%sbarabau", false, false); in TEST()
1059 condition = condition_new(CONDITION_CPU_PRESSURE, "10% sbarabau", false, false); in TEST()
1064 condition = condition_new(CONDITION_CPU_PRESSURE, "-10", false, false); in TEST()
1069 condition = condition_new(CONDITION_CPU_PRESSURE, "10%/10min", false, false); in TEST()
1074 condition = condition_new(CONDITION_CPU_PRESSURE, "10min/10%", false, false); in TEST()
1079 condition = condition_new(CONDITION_CPU_PRESSURE, "10% 5min", false, false); in TEST()
1084 condition = condition_new(CONDITION_CPU_PRESSURE, "/5min", false, false); in TEST()
1089 condition = condition_new(CONDITION_IO_PRESSURE, "10s / ", false, false); in TEST()
1094 condition = condition_new(CONDITION_MEMORY_PRESSURE, "100%", false, false); in TEST()
1099 condition = condition_new(CONDITION_MEMORY_PRESSURE, "0%", false, false); in TEST()
1104 condition = condition_new(CONDITION_MEMORY_PRESSURE, "0.0%", false, false); in TEST()
1109 condition = condition_new(CONDITION_CPU_PRESSURE, "100%", false, false); in TEST()
1114 condition = condition_new(CONDITION_CPU_PRESSURE, "0%", false, false); in TEST()
1119 condition = condition_new(CONDITION_CPU_PRESSURE, "0.0%", false, false); in TEST()
1124 condition = condition_new(CONDITION_CPU_PRESSURE, "0.01%", false, false); in TEST()
1129 condition = condition_new(CONDITION_CPU_PRESSURE, "0.0%/10sec", false, false); in TEST()
1134 condition = condition_new(CONDITION_CPU_PRESSURE, "100.0% / 1min", false, false); in TEST()
1139 condition = condition_new(CONDITION_IO_PRESSURE, "50.0% / 1min", false, false); in TEST()
1159 condition = condition_new(CONDITION_MEMORY_PRESSURE, " : / ", false, false); in TEST()
1164 …condition = condition_new(CONDITION_CPU_PRESSURE, "hopefullythisisnotarealone.slice:100% / 10sec",… in TEST()
1169 condition = condition_new(CONDITION_CPU_PRESSURE, "-.slice:100.0% / 1min", false, false); in TEST()
1174 condition = condition_new(CONDITION_MEMORY_PRESSURE, "-.slice:0.0%/5min", false, false); in TEST()
1179 condition = condition_new(CONDITION_MEMORY_PRESSURE, "-.slice:100.0%", false, false); in TEST()
1184 condition = condition_new(CONDITION_IO_PRESSURE, "-.slice:0.0%", false, false); in TEST()