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/shared/condition.h | |
parent | 89fe653544a310a9bbc2689c464a1cdd92bb71a2 (diff) | |
download | systemd-7f19247b5e583e508a4eca7d5455cd590cc8e71e.tar.gz |
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/shared/condition.h')
-rw-r--r-- | src/shared/condition.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/shared/condition.h b/src/shared/condition.h index 84322e7425..6064ccdaed 100644 --- a/src/shared/condition.h +++ b/src/shared/condition.h @@ -28,6 +28,7 @@ typedef enum ConditionType { CONDITION_PATH_IS_SYMBOLIC_LINK, CONDITION_PATH_IS_MOUNT_POINT, CONDITION_PATH_IS_READ_WRITE, + CONDITION_PATH_IS_ENCRYPTED, CONDITION_DIRECTORY_NOT_EMPTY, CONDITION_FILE_NOT_EMPTY, CONDITION_FILE_IS_EXECUTABLE, @@ -96,6 +97,7 @@ static inline bool condition_takes_path(ConditionType t) { CONDITION_PATH_IS_SYMBOLIC_LINK, CONDITION_PATH_IS_MOUNT_POINT, CONDITION_PATH_IS_READ_WRITE, + CONDITION_PATH_IS_ENCRYPTED, CONDITION_DIRECTORY_NOT_EMPTY, CONDITION_FILE_NOT_EMPTY, CONDITION_FILE_IS_EXECUTABLE, |