summaryrefslogtreecommitdiff
path: root/src/basic/fileio.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2020-07-17 11:53:22 +0200
committerLennart Poettering <lennart@poettering.net>2020-07-21 09:56:44 +0200
commitf294470262fed5dffbfd055b0054370dc3021662 (patch)
treea08028360228fe13ee7fb8708d0dd55611778e47 /src/basic/fileio.h
parent2e3e2750bb85239aad2a02b5f6afa26f1588f5f7 (diff)
downloadsystemd-f294470262fed5dffbfd055b0054370dc3021662.tar.gz
fileio: add explicit flag for generating world executable warning when reading file
Diffstat (limited to 'src/basic/fileio.h')
-rw-r--r--src/basic/fileio.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/basic/fileio.h b/src/basic/fileio.h
index e2830b7963..4ce5126515 100644
--- a/src/basic/fileio.h
+++ b/src/basic/fileio.h
@@ -32,9 +32,10 @@ typedef enum {
} WriteStringFileFlags;
typedef enum {
- READ_FULL_FILE_SECURE = 1 << 0,
- READ_FULL_FILE_UNBASE64 = 1 << 1,
- READ_FULL_FILE_UNHEX = 1 << 2,
+ READ_FULL_FILE_SECURE = 1 << 0,
+ READ_FULL_FILE_UNBASE64 = 1 << 1,
+ READ_FULL_FILE_UNHEX = 1 << 2,
+ READ_FULL_FILE_WARN_WORLD_READABLE = 1 << 3,
} ReadFullFileFlags;
int fopen_unlocked(const char *path, const char *options, FILE **ret);