-/* $OpenBSD: control.c,v 1.25 2017/01/17 22:10:55 krw Exp $ */
+/* $OpenBSD: control.c,v 1.26 2018/08/06 06:30:06 mestre Exp $ */
/*
* Copyright (c) 2010-2013 Reyk Floeter <reyk@openbsd.org>
/*
* pledge in the control process:
* stdio - for malloc and basic I/O including events.
- * cpath - for unlinking the control socket.
* unix - for the control socket.
*/
- if (pledge("stdio cpath unix", NULL) == -1)
+ if (pledge("stdio unix", NULL) == -1)
fatal("pledge");
}
return (0);
}
-void
-control_cleanup(struct control_sock *cs)
-{
- if (cs->cs_name == NULL)
- return;
- event_del(&cs->cs_ev);
- event_del(&cs->cs_evt);
- (void)unlink(cs->cs_name);
-}
-
/* ARGSUSED */
void
control_accept(int listenfd, short event, void *arg)
-/* $OpenBSD: iked.h,v 1.118 2018/03/16 12:31:09 mpi Exp $ */
+/* $OpenBSD: iked.h,v 1.119 2018/08/06 06:30:06 mestre Exp $ */
/*
* Copyright (c) 2010-2013 Reyk Floeter <reyk@openbsd.org>
pid_t control(struct privsep *, struct privsep_proc *);
int control_init(struct privsep *, struct control_sock *);
int control_listen(struct control_sock *);
-void control_cleanup(struct control_sock *);
/* config.c */
struct iked_policy *
-/* $OpenBSD: proc.c,v 1.30 2017/01/09 14:49:21 reyk Exp $ */
+/* $OpenBSD: proc.c,v 1.31 2018/08/06 06:30:06 mestre Exp $ */
/*
* Copyright (c) 2010 - 2014 Reyk Floeter <reyk@openbsd.org>
{
struct privsep *ps = p->p_ps;
- if (p->p_id == PROC_CONTROL && ps)
- control_cleanup(&ps->ps_csock);
-
if (p->p_shutdown != NULL)
(*p->p_shutdown)();