summaryrefslogtreecommitdiff
path: root/src/journal/coredump.c
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2012-11-03 20:13:46 +0100
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2014-03-17 01:55:47 -0400
commitd18d46ecea80a7f07415edb9264af6a254fd70bb (patch)
tree4b4cc9f9b18d5a1d9421ca8c9b0361826cfbf515 /src/journal/coredump.c
parent63c8666b824e8762ffb73647e1caee165dfbc868 (diff)
journal: export valid_user_field and size defines
In preparation for use elsewhere.
Diffstat (limited to 'src/journal/coredump.c')
-rw-r--r--src/journal/coredump.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/journal/coredump.c b/src/journal/coredump.c
index 733373b307..29342de681 100644
--- a/src/journal/coredump.c
+++ b/src/journal/coredump.c
@@ -36,12 +36,14 @@
#include "mkdir.h"
#include "special.h"
#include "cgroup-util.h"
+#include "journald-native.h"
/* Few programs have less than 3MiB resident */
#define COREDUMP_MIN_START (3*1024*1024)
/* Make sure to not make this larger than the maximum journal entry
* size. See ENTRY_SIZE_MAX in journald-native.c. */
#define COREDUMP_MAX (767*1024*1024)
+assert_cc(COREDUMP_MAX <= ENTRY_SIZE_MAX);
enum {
ARG_PID = 1,