1
0
mirror of https://github.com/systemd/systemd synced 2025-11-19 08:44:44 +01:00

Compare commits

..

3 Commits

Author SHA1 Message Date
Michal Sekletar
28e62e684b coredump: handle ENOBUFS and EMSGSIZE the same way
Depending on the runtime configuration, e.g. sysctls
net.core.wmem_default= and net.core.rmem_default and on the actual
message size, sendmsg() can fail also with ENOBUFS. E.g. alloc_skb()
failure caused by net.core.[rw]mem_default=64MiB and huge fdinfo list
from process that has 90k opened FDs.

We should handle this case in the same way as EMSGSIZE and drop part of
the message.
2025-10-24 15:23:09 +01:00
Daan De Meyer
7a18a538ef mkosi: Stop installing devel packages
These aren't required for tests and pull in a bunch of dependencies,
so let's not install them into the final image.
2025-10-24 12:59:11 +01:00
Thomas Blume
4c7e30c4e0 test: add policy packages for TEST-06-SELINUX in openSUSE 2025-10-24 12:58:32 +01:00
4 changed files with 4 additions and 5 deletions

View File

@ -9,7 +9,6 @@ PrepareScripts=systemd.prepare
VolatilePackages= VolatilePackages=
systemd systemd
systemd-container systemd-container
systemd-devel
systemd-journal-remote systemd-journal-remote
systemd-libs systemd-libs
systemd-networkd systemd-networkd

View File

@ -12,10 +12,8 @@ VolatilePackages=
libnss-resolve libnss-resolve
libnss-systemd libnss-systemd
libpam-systemd libpam-systemd
libsystemd-dev
libsystemd-shared libsystemd-shared
libsystemd0 libsystemd0
libudev-dev
systemd systemd
systemd-container systemd-container
systemd-coredump systemd-coredump

View File

@ -17,7 +17,6 @@ VolatilePackages=
libudev1 libudev1
systemd systemd
systemd-container systemd-container
systemd-devel
systemd-doc systemd-doc
systemd-experimental systemd-experimental
systemd-homed systemd-homed
@ -71,6 +70,7 @@ Packages=
pam pam
patterns-base-minimal_base patterns-base-minimal_base
perf perf
policycoreutils
pkgconf pkgconf
procps4 procps4
psmisc psmisc
@ -81,6 +81,8 @@ Packages=
quota quota
rsync rsync
sed sed
selinux-policy
selinux-policy-targeted
shadow shadow
softhsm softhsm
squashfs squashfs

View File

@ -45,7 +45,7 @@ int coredump_send(const struct iovec_wrapper *iovw, int input_fd, PidRef *pidref
if (sendmsg(fd, &mh, MSG_NOSIGNAL) >= 0) if (sendmsg(fd, &mh, MSG_NOSIGNAL) >= 0)
break; break;
if (errno == EMSGSIZE && mh.msg_iov[0].iov_len > 0) { if (IN_SET(errno, EMSGSIZE, ENOBUFS) && mh.msg_iov[0].iov_len > 0) {
/* This field didn't fit? That's a pity. Given that this is /* This field didn't fit? That's a pity. Given that this is
* just metadata, let's truncate the field at half, and try * just metadata, let's truncate the field at half, and try
* again. We append three dots, in order to show that this is * again. We append three dots, in order to show that this is