49 Commits

Author SHA1 Message Date
4a74b5bcfc Nitori Engineering 2025-04-17 20:33:16 -03:00
Mike Belopuhov
9336c3bb36 typo 2017-08-28 16:49:01 +02:00
Mike Belopuhov
4c0746156e setusercontext(3) conflicts with rc.d framework 2017-08-24 19:45:05 +02:00
Tim Kuijsten
411aa630ac pledge icbd and it's logger process 2016-09-21 21:37:26 +02:00
Tim Kuijsten
67f3e6099f restrict when in foreground mode as well
/var/crash/icbd and kern.nosuidcoredump=3 can be used in order to
debug core dumps.
2016-09-21 19:51:22 +02:00
Mike Belopuhov
3347cd91c6 Make packet dump in debug mode more readable 2015-06-14 01:25:37 +02:00
Mike Belopuhov
863edf17b7 Zero out the input buffer after icb_input and on drops 2015-05-24 23:25:34 +02:00
Mike Belopuhov
940d2b5a11 Don't attempt to drain the output buffer on drop 2015-05-24 23:25:34 +02:00
Mike Belopuhov
176b6efc59 Use new tokenizer to parse ICB commands 2015-04-22 19:28:54 +02:00
Mike Belopuhov
677a45b096 Remove group passwords and introduce new tokenizer 2015-04-22 19:28:48 +02:00
Mike Belopuhov
d27dc1edd6 fixup signal and MAXPATHLEN include fallout 2015-01-18 22:59:35 +01:00
Florian Obser
e68221bca4 Check that the reverse resolved hostname resolves back to the
connecting IP.
2014-06-23 15:02:33 +02:00
Mike Belopuhov
120eedde50 prevent icbd_drop from freeing an icb session while dns is in progress 2014-06-17 13:46:35 +02:00
Mike Belopuhov
94404148eb check that reverse dns entry can be resolved 2014-06-17 13:33:22 +02:00
Mike Belopuhov
d45051e8e7 make sure to abort bufferevent processing after icbd_drop was called 2014-06-17 13:31:02 +02:00
Florian Obser
cdd2ff5fd2 Opportunisticly chdir to "core" (should be writeable by _icbd) after
chroot to get working core dumps.
2014-03-14 22:37:05 +01:00
Mike Belopuhov
ad8b08d940 Chdir to /core after start 2014-03-14 22:22:54 +01:00
Mike Belopuhov
de862308b5 Don't forget to subtract the amount of what's already read from the
total length.
2014-03-14 20:57:31 +01:00
Mike Belopuhov
7882a6f262 Get rid of the icbd callbacks interface
I believe the idea was initially to have both icb and irc in one
daemon but that's not going to happen.
2014-03-10 13:13:22 +01:00
Mike Belopuhov
dcbd425530 Remove the session tree 2014-03-09 16:10:52 +01:00
Mike Belopuhov
e87ab6d0e4 Convert DNS code to use ASR 2014-03-09 16:09:45 +01:00
Mike Belopuhov
709589d8fd A couple of fixups for icbd_modupdate 2014-03-09 14:58:22 +01:00
Mike Belopuhov
82d3c1fc7b stat(2) the modtab every time pass is requested
plus some minor style changes
2014-03-07 18:37:37 +01:00
Mike Belopuhov
2cdab10177 Reset modtabcnt each time we (re)load modtab 2014-03-07 17:32:09 +01:00
Mike Belopuhov
bacf9da559 line break 2014-03-07 17:24:57 +01:00
Mike Belopuhov
a2fadb4bf6 Get rid of ICB_MSGSIZE+1, fix various off-by-ones and do some truncation
where necessary.
2014-03-07 16:21:30 +01:00
Florian Obser
270fd23c1f Move modtab into the chroot and make it reloadable by SIGHUB
input mikeb, manpage bits benno
2014-03-07 16:20:42 +01:00
Mike Belopuhov
e13307d836 Move icbd_ioerr before the dispatch 2014-03-07 15:16:04 +01:00
Mike Belopuhov
460786f474 Add command line switch '-n' to disable DNS 2014-03-06 16:30:44 +01:00
Sebastian Benoit
6e89d69069 accept throttling on EM/ENFILE, add checks for other errnos 2014-03-06 12:34:15 +01:00
Stuart Henderson
e54f151f05 chdir(/) immediately after chroot 2014-03-05 21:48:17 +00:00
Mike Belopuhov
3dba97de1d Add a logging switch toggle and a prefix for a nicer chroot 2014-03-05 22:41:56 +01:00
Mike Belopuhov
55923b7428 Add some basic logger framework 2014-03-05 16:37:31 +01:00
Mike Belopuhov
c9402c337d Rework bufferevent read code 2014-03-05 11:42:33 +01:00
Mike Belopuhov
8ef8c4edc1 Set SO_KEEPALIVE on the client socket, not on the server one 2014-03-04 12:30:49 +01:00
Stuart Henderson
0c4d8fce53 enable tcp keepalives to help clear out dead connections 2014-03-04 12:17:15 +01:00
Mike Belopuhov
b4049f9ba8 Rewrite DNS resolver to do things truly asynchronously 2014-03-04 11:34:57 +01:00
Mike Belopuhov
fa271b86eb Introduce session IDs and associated tree linkage 2014-03-04 11:34:15 +01:00
Mike Belopuhov
1d2125a078 Add support for the moderator table that specifies (currently up
to 50) users that are allowed to become moderators.
2014-03-02 02:50:57 +01:00
Mike Belopuhov
d55422352e setusercontext(3) does it's own syslogging 2014-03-02 02:50:57 +01:00
Mike Belopuhov
2e37e9fb53 Return EX_USAGE instead of EX_CONFIG when both -4 and -6 are specified 2014-03-02 02:50:56 +01:00
Mike Belopuhov
0b802fa46d OpenBSD now ships with bufferevent_setwatermark prototype defined 2010-09-10 11:12:56 +02:00
Mike Belopuhov
c8c9ccfb43 set tos bits to low delay, remove excessive logging in dns resolver 2010-04-11 13:37:57 +02:00
Mike Belopuhov
c45628b246 describe -S option in the manual page; sync usage 2010-01-08 14:27:28 +01:00
Mike Belopuhov
a785c27223 allow specifying a server name; do hostname evaluation only once 2010-01-08 14:16:34 +01:00
Mike Belopuhov
8bf5a0a81c no need for preprocessor here; add a comment also 2010-01-08 13:55:08 +01:00
Mike Belopuhov
1a5d69e083 add a bufferevent_setwatermark prototype, so it compiles on OpenBSD fine; small correction in the README 2010-01-08 13:49:14 +01:00
Mike Belopuhov
e3a7f9bdf8 drop rcsids 2010-01-08 12:22:40 +01:00
Mike Belopuhov
cd7b81d00d move it to the github 2010-01-08 12:20:28 +01:00