commit - e52ef5961a61537e4875f7060cf3bb68c1fd16cd
commit + f13e3a2b334c49b82283aa98d7b0dcc3f9b990d6
blob - 2e8ffa00c0207ab069f054d2e0969bc8c3131c05
blob + a97f89935b64e35507abe857e5432c61dace37d4
--- thingsd/thingsd.c
+++ thingsd/thingsd.c
sockets_shutdown },
};
-/* For the privileged process */
-static struct privsep_proc *proc_priv = &procs[0];
-static struct passwd proc_privpw;
-
int
thingsd_dispatch_control(int fd, struct privsep_proc *p, struct imsg *imsg)
{
if ((ps->ps_pw = getpwnam(THINGSD_USER)) == NULL)
fatal("unknown user %s", THINGSD_USER);
-
- /* First proc runs as root without pledge but in default chroot */
- proc_priv->p_pw = &proc_privpw; /* initialized to all 0 */
- proc_priv->p_chroot = ps->ps_pw->pw_dir; /* from THINGSD_USER */
-
/* Configure the control socket */
ps->ps_csock.cs_name = THINGSD_SOCKET;