From: Lennart Poettering Date: Wed, 14 Mar 2012 02:39:15 +0000 (+0100) Subject: journald: allocate PAGE_SIZE bytes for selinux label length X-Git-Tag: v44~38 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2d44fc7ba5aaf700672baa7b0697caefddafdc53;p=systemd journald: allocate PAGE_SIZE bytes for selinux label length As suggested in https://bugzilla.redhat.com/show_bug.cgi?id=798760 --- diff --git a/src/journal/journald.c b/src/journal/journald.c index e9c00b44..ad7c655f 100644 --- a/src/journal/journald.c +++ b/src/journal/journald.c @@ -29,6 +29,7 @@ #include #include #include +#include #include #include @@ -2133,7 +2134,7 @@ static int process_event(Server *s, struct epoll_event *ev) { uint8_t buf[CMSG_SPACE(sizeof(struct ucred)) + CMSG_SPACE(sizeof(struct timeval)) + CMSG_SPACE(sizeof(int)) + - CMSG_SPACE(LINE_MAX)]; /* selinux label */ + CMSG_SPACE(PAGE_SIZE)]; /* selinux label */ } control; ssize_t n; int v;