diff options
author | Lennart Poettering <lennart@poettering.net> | 2020-05-14 18:30:23 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2020-05-15 15:50:09 +0200 |
commit | 7f19247b5e583e508a4eca7d5455cd590cc8e71e (patch) | |
tree | 21d3b645e8344b937f81005e0077fa397516eaca /src/test | |
parent | network: Add support to group links. (diff) | |
download | systemd-7f19247b5e583e508a4eca7d5455cd590cc8e71e.tar.xz systemd-7f19247b5e583e508a4eca7d5455cd590cc8e71e.zip |
condition: add ConditionPathIsEncrypted=
It's easy to add, and should be pretty useful, in particular as in
AssertPathIsEncrypted= as it can be used for checking that
some path is encrypted before some service is invoked that might want to
place secure material there.
Diffstat (limited to 'src/test')
-rw-r--r-- | src/test/test-condition.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/test/test-condition.c b/src/test/test-condition.c index 8c48518774..0c78194185 100644 --- a/src/test/test-condition.c +++ b/src/test/test-condition.c @@ -112,6 +112,11 @@ static void test_condition_test_path(void) { assert_se(condition_test(condition) > 0); condition_free(condition); + condition = condition_new(CONDITION_PATH_IS_ENCRYPTED, "/sys", false, false); + assert_se(condition); + assert_se(condition_test(condition) == 0); + condition_free(condition); + condition = condition_new(CONDITION_PATH_IS_SYMBOLIC_LINK, "/dev/stdout", false, false); assert_se(condition); assert_se(condition_test(condition) > 0); |