diff options
author | Lennart Poettering <lennart@poettering.net> | 2012-03-14 03:39:15 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2012-03-14 03:39:15 +0100 |
commit | 2d44fc7ba5aaf700672baa7b0697caefddafdc53 (patch) | |
tree | fba2229996d880a4fe490ba25885c9fc27520a54 /src/journal | |
parent | 77b088c211a0939cb94969b487e5746bb05d12ae (diff) |
journald: allocate PAGE_SIZE bytes for selinux label length
As suggested in https://bugzilla.redhat.com/show_bug.cgi?id=798760
Diffstat (limited to 'src/journal')
-rw-r--r-- | src/journal/journald.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/journal/journald.c b/src/journal/journald.c index e9c00b443c..ad7c655ff4 100644 --- a/src/journal/journald.c +++ b/src/journal/journald.c @@ -29,6 +29,7 @@ #include <sys/ioctl.h> #include <linux/sockios.h> #include <sys/statvfs.h> +#include <sys/user.h> #include <systemd/sd-journal.h> #include <systemd/sd-login.h> @@ -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; |