summaryrefslogtreecommitdiff
path: root/src/shared/condition.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2020-05-14 18:30:23 +0200
committerLennart Poettering <lennart@poettering.net>2020-05-15 15:50:09 +0200
commit7f19247b5e583e508a4eca7d5455cd590cc8e71e (patch)
tree21d3b645e8344b937f81005e0077fa397516eaca /src/shared/condition.h
parent89fe653544a310a9bbc2689c464a1cdd92bb71a2 (diff)
downloadsystemd-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.h2
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,