diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2012-11-03 20:13:46 +0100 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2014-03-17 01:55:47 -0400 |
commit | d18d46ecea80a7f07415edb9264af6a254fd70bb (patch) | |
tree | 4b4cc9f9b18d5a1d9421ca8c9b0361826cfbf515 /src/journal/journald-native.h | |
parent | 63c8666b824e8762ffb73647e1caee165dfbc868 (diff) |
journal: export valid_user_field and size defines
In preparation for use elsewhere.
Diffstat (limited to 'src/journal/journald-native.h')
-rw-r--r-- | src/journal/journald-native.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/journal/journald-native.h b/src/journal/journald-native.h index 16c09f523e..bf02fee576 100644 --- a/src/journal/journald-native.h +++ b/src/journal/journald-native.h @@ -23,6 +23,13 @@ #include "journald-server.h" +/* Make sure not to make this smaller than the maximum coredump + * size. See COREDUMP_MAX in coredump.c */ +#define ENTRY_SIZE_MAX (1024*1024*768) +#define DATA_SIZE_MAX (1024*1024*768) + +bool valid_user_field(const char *p, size_t l, bool allow_protected); + void server_process_native_message(Server *s, const void *buffer, size_t buffer_size, struct ucred *ucred, struct timeval *tv, const char *label, size_t label_len); void server_process_native_file(Server *s, int fd, struct ucred *ucred, struct timeval *tv, const char *label, size_t label_len); |