freebsd-skq/sbin/hastd
Pawel Jakub Dawidek f431ab182a Unlink UNIX domain socket file only if:
1. The descriptor is the one we are listening on (not the one when we connect
   as a client and not the one which is created on accept(2)).
2. Descriptor was created by us (PID matches with the PID stored on bind(2)).

Reported by:	Mikolaj Golub <to.my.trociny@gmail.com>
MFC after:	1 week
2011-02-08 23:08:20 +00:00
..
activemap.c
activemap.h
control.c Setup another socketpair between parent and child, so that primary sandboxed 2011-02-03 11:39:49 +00:00
control.h Don't open configuration file from worker process. Handle SIGHUP in the 2011-01-24 15:04:15 +00:00
ebuf.c Fix typos. 2010-06-14 21:44:58 +00:00
ebuf.h
event.c Forgot to add event.c and event.h in r212038. 2010-08-31 09:38:43 +00:00
event.h Forgot to add event.c and event.h in r212038. 2010-08-31 09:38:43 +00:00
hast_proto.c Constify arguments we can constify. 2010-08-30 22:26:42 +00:00
hast_proto.h Constify arguments we can constify. 2010-08-30 22:26:42 +00:00
hast.conf.5 Execute hook when connection between the nodes is established or lost. 2010-08-30 00:31:30 +00:00
hast.h Setup another socketpair between parent and child, so that primary sandboxed 2011-02-03 11:39:49 +00:00
hastd.8 mdoc: move remaining sections into consistent order 2010-05-13 12:08:11 +00:00
hastd.c Now that we break the loop on fstat(2) failure we no longer need to satisfy 2011-02-06 14:17:08 +00:00
hastd.h Add function to assert that the only descriptors we have open are the ones 2011-01-28 21:56:47 +00:00
hooks.c execve(2), not fork(2) resets signal handler to the default value (if it isn't 2011-01-12 16:16:54 +00:00
hooks.h hook_check() is now only used to report about long-running hooks, so the 2010-10-04 21:43:06 +00:00
Makefile Don't generate input() since it's not used. 2010-11-22 14:16:22 +00:00
metadata.c Plug memory leaks. 2010-06-14 21:25:20 +00:00
metadata.h
nv.c Add nv_assert() which allows to assert that the given name exists. 2011-01-22 22:38:18 +00:00
nv.h Add nv_assert() which allows to assert that the given name exists. 2011-01-22 22:38:18 +00:00
parse.y Detect when resource is configured more than once. 2010-12-26 19:08:41 +00:00
pjdlog.c Rename pjdlog_verify() to pjdlog_abort() as it better describes what the 2011-01-31 15:52:00 +00:00
pjdlog.h Rename pjdlog_verify() to pjdlog_abort() as it better describes what the 2011-01-31 15:52:00 +00:00
primary.c Setup another socketpair between parent and child, so that primary sandboxed 2011-02-03 11:39:49 +00:00
proto_common.c - Rename proto_descriptor_{send,recv}() functions to 2011-02-02 15:53:09 +00:00
proto_impl.h - Rename proto_descriptor_{send,recv}() functions to 2011-02-02 15:53:09 +00:00
proto_socketpair.c - Rename proto_descriptor_{send,recv}() functions to 2011-02-02 15:53:09 +00:00
proto_tcp4.c - Rename proto_descriptor_{send,recv}() functions to 2011-02-02 15:53:09 +00:00
proto_uds.c Unlink UNIX domain socket file only if: 2011-02-08 23:08:20 +00:00
proto.c - Rename proto_descriptor_{send,recv}() functions to 2011-02-02 15:53:09 +00:00
proto.h - Rename proto_descriptor_{send,recv}() functions to 2011-02-02 15:53:09 +00:00
rangelock.c
rangelock.h
secondary.c Setup another socketpair between parent and child, so that primary sandboxed 2011-02-03 11:39:49 +00:00
subr.c Let the caller log info about successful privilege drop. 2011-02-03 10:37:44 +00:00
subr.h Implement function that drops privileges by: 2011-01-28 22:33:47 +00:00
synch.h Plug memory leaks. 2010-10-24 15:41:23 +00:00
token.l Allow to execute specified program on various HAST events. 2010-08-27 15:16:52 +00:00