diff options
| -rw-r--r-- | meta-oe/recipes-core/systemd/systemd/0001-Revert-journald-allocate-PAGE_SIZE-bytes-for-selinux.patch | 34 | ||||
| -rw-r--r-- | meta-oe/recipes-core/systemd/systemd_git.bb | 5 |
2 files changed, 37 insertions, 2 deletions
diff --git a/meta-oe/recipes-core/systemd/systemd/0001-Revert-journald-allocate-PAGE_SIZE-bytes-for-selinux.patch b/meta-oe/recipes-core/systemd/systemd/0001-Revert-journald-allocate-PAGE_SIZE-bytes-for-selinux.patch new file mode 100644 index 0000000000..9c74f67c20 --- /dev/null +++ b/meta-oe/recipes-core/systemd/systemd/0001-Revert-journald-allocate-PAGE_SIZE-bytes-for-selinux.patch | |||
| @@ -0,0 +1,34 @@ | |||
| 1 | From 9d3226c3a3dd34e7299aa693544e45b8ebe9410b Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Koen Kooi <koen@dominion.thruhere.net> | ||
| 3 | Date: Sun, 18 Mar 2012 09:18:39 +0100 | ||
| 4 | Subject: [PATCH] Revert "journald: allocate PAGE_SIZE bytes for selinux label length" | ||
| 5 | |||
| 6 | This reverts commit 2d44fc7ba5aaf700672baa7b0697caefddafdc53. | ||
| 7 | --- | ||
| 8 | src/journal/journald.c | 3 +-- | ||
| 9 | 1 files changed, 1 insertions(+), 2 deletions(-) | ||
| 10 | |||
| 11 | diff --git a/src/journal/journald.c b/src/journal/journald.c | ||
| 12 | index baad3ab..3dde891 100644 | ||
| 13 | --- a/src/journal/journald.c | ||
| 14 | +++ b/src/journal/journald.c | ||
| 15 | @@ -29,7 +29,6 @@ | ||
| 16 | #include <sys/ioctl.h> | ||
| 17 | #include <linux/sockios.h> | ||
| 18 | #include <sys/statvfs.h> | ||
| 19 | -#include <sys/user.h> | ||
| 20 | |||
| 21 | #include <systemd/sd-journal.h> | ||
| 22 | #include <systemd/sd-login.h> | ||
| 23 | @@ -2144,7 +2143,7 @@ static int process_event(Server *s, struct epoll_event *ev) { | ||
| 24 | uint8_t buf[CMSG_SPACE(sizeof(struct ucred)) + | ||
| 25 | CMSG_SPACE(sizeof(struct timeval)) + | ||
| 26 | CMSG_SPACE(sizeof(int)) + | ||
| 27 | - CMSG_SPACE(PAGE_SIZE)]; /* selinux label */ | ||
| 28 | + CMSG_SPACE(LINE_MAX)]; /* selinux label */ | ||
| 29 | } control; | ||
| 30 | ssize_t n; | ||
| 31 | int v; | ||
| 32 | -- | ||
| 33 | 1.7.2.5 | ||
| 34 | |||
diff --git a/meta-oe/recipes-core/systemd/systemd_git.bb b/meta-oe/recipes-core/systemd/systemd_git.bb index e99be88f8d..a32029911d 100644 --- a/meta-oe/recipes-core/systemd/systemd_git.bb +++ b/meta-oe/recipes-core/systemd/systemd_git.bb | |||
| @@ -14,13 +14,14 @@ inherit gitpkgv | |||
| 14 | PKGV = "v${GITPKGVTAG}" | 14 | PKGV = "v${GITPKGVTAG}" |
| 15 | 15 | ||
| 16 | PV = "git" | 16 | PV = "git" |
| 17 | PR = "r22" | 17 | PR = "r23" |
| 18 | 18 | ||
| 19 | inherit useradd pkgconfig autotools vala perlnative | 19 | inherit useradd pkgconfig autotools vala perlnative |
| 20 | 20 | ||
| 21 | SRCREV = "03f38e74984d93aa83c056893d414a5e3eac5763" | 21 | SRCREV = "5ebff5337594d690b322078c512eb222d34aaa82" |
| 22 | 22 | ||
| 23 | SRC_URI = "git://anongit.freedesktop.org/systemd/systemd;protocol=git \ | 23 | SRC_URI = "git://anongit.freedesktop.org/systemd/systemd;protocol=git \ |
| 24 | file://0001-Revert-journald-allocate-PAGE_SIZE-bytes-for-selinux.patch \ | ||
| 24 | file://0002-systemd-logind-don-t-kill-user-processes-on-exit.patch \ | 25 | file://0002-systemd-logind-don-t-kill-user-processes-on-exit.patch \ |
| 25 | ${UCLIBCPATCHES} \ | 26 | ${UCLIBCPATCHES} \ |
| 26 | " | 27 | " |
