NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: bin/57952 (dhcpcd(8) inexplicably terminated in the night)
The following reply was made to PR bin/57952; it has been noted by GNATS.
From: mlelstv%serpens.de@localhost (Michael van Elst)
To: gnats-bugs%netbsd.org@localhost
Cc:
Subject: Re: bin/57952 (dhcpcd(8) inexplicably terminated in the night)
Date: Sat, 24 Feb 2024 07:46:29 -0000 (UTC)
riastradh%NetBSD.org@localhost (Taylor R Campbell) writes:
> <daemon.err>Feb 23 23:21:35 nanocons dhcpcd[5931]: ps_inet_dodispatch: Co=
>nnection reset by peer
> <daemon.err>Feb 23 23:21:35 nanocons dhcpcd[5931]: control_free: No such =
>file or directory
> <daemon.err>Feb 23 23:21:35 nanocons dhcpcd[5931]: ps_sendpsmmsg: Destina=
>tion address required
> <daemon.err>Feb 23 23:21:35 nanocons dhcpcd[5931]: ps_dostop: Destination=
> address required
>So I infer that the network proxy must have crashed, in my original
>case. But I don't see how to trigger a core dump.
Try with kern.coredump.setid.dump=1 and kern.coredump.setid.path.
change_root()
{
...
/* Broadcast our credentials to the process and other LWPs. */
proc_crmod_leave(ncred, p->p_cred, true);
}
void
proc_crmod_leave(kauth_cred_t scred, kauth_cred_t fcred, bool sugid)
{
...
if (sugid) {
/*
* Mark process as having changed credentials, stops
* tracing etc.
*/
p->p_flag |= PK_SUGID;
}
...
}
static int
coredump(struct lwp *l, const char *pattern)
{
...
/*
* Make sure the process has not set-id, to prevent data leaks,
* unless it was specifically requested to allow set-id coredumps.
*/
if (p->p_flag & PK_SUGID) {
if (!security_setidcore_dump) {
error = EPERM;
goto release;
}
pattern = security_setidcore_path;
}
}
Home |
Main Index |
Thread Index |
Old Index