127 Commits

Author SHA1 Message Date
Mike Belopuhov
4c0746156e setusercontext(3) conflicts with rc.d framework 2017-08-24 19:45:05 +02:00
Mike Belopuhov
c6e00b99fc Split long open and private messages 2017-08-24 16:41:37 +02:00
Mike Belopuhov
c3f5bda7d7 Merge pull request #5 from sthen/ismod_inline
don't inline icb_ismod
2017-04-11 12:42:35 +02:00
Stuart Henderson
1c7657c76e don't inline icb_ismod 2017-04-11 11:23:09 +01:00
Mike Belopuhov
36f8e7c53b Merge pull request #4 from timkuijsten/manpage
modtab is not reread on SIGHUP
2016-09-21 22:54:47 +02:00
Mike Belopuhov
6f076e75ae Merge pull request #3 from timkuijsten/pledge
pledge icbd and it's logger process
2016-09-21 22:45:32 +02:00
Tim Kuijsten
5ea93bcb1d modtab is not reread on SIGHUP
Every time modtab is needed it's mtime is stored and compared to the
previously stored mtime. If newer, the file is automatically reread.
2016-09-21 22:12:20 +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
e47285c3e7 Minor documentation fixes 2016-02-23 22:49:58 +01:00
Mike Belopuhov
ec3eb38640 Bitch if trying to beep yourself 2015-10-08 12:50:10 +02:00
Mike Belopuhov
8bcfd5086a 'w' has been available for quite some time 2015-10-08 12:46:16 +02:00
Mike Belopuhov
b8da4b3f04 Callbacks are long gone 2015-10-08 12:44:37 +02:00
Mike Belopuhov
61fdba7f29 Allow to beep chaps lurking in different groups 2015-09-03 19:54:33 +02:00
Mike Belopuhov
3347cd91c6 Make packet dump in debug mode more readable 2015-06-14 01:25:37 +02:00
Mike Belopuhov
a56efea756 Private messages got limited to 160 bytes by accident 2015-06-14 01:22:08 +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
e22d747f2b Improve groups list declaration 2015-04-24 16:41:02 +02:00
Mike Belopuhov
8b1683ee0a Zero out buffers before passing them to the tokenizer 2015-04-22 19:38:18 +02:00
Mike Belopuhov
65b48eef8e Improve [v]snprintf return value handling 2015-04-22 19:29:05 +02:00
Mike Belopuhov
7ff6405014 Better error messages for invalid groups 2015-04-22 19:28:59 +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
5dfeb4cfe6 move invariant out of the loop 2015-04-22 19:28:42 +02:00
Mike Belopuhov
cba908b565 defgrp is const 2015-04-22 19:28:27 +02:00
Mike Belopuhov
f73b386eea oops, fixup paste errors so that it compiles now 2015-01-18 23:43:41 +01:00
Mike Belopuhov
8d30e02557 icb_vis improvements
- don't allow trailing single percentage signs;
- properly handle snprintf return value;
2015-01-18 23:38:34 +01:00
Mike Belopuhov
d27dc1edd6 fixup signal and MAXPATHLEN include fallout 2015-01-18 22:59:35 +01:00
Mike Belopuhov
4c2a775e0d Do comparison before decrementing one of the operands.
Move invariant out of the conditional block.
2015-01-18 21:46:13 +01:00
Mike Belopuhov
cb7c49446c use ICB_MAXGRPLEN for the lenght of the group name 2015-01-18 21:46:13 +01:00
Mike Belopuhov
0519a8785b param.h and MAXHOSTNAMELEN cleanup 2015-01-18 21:46:13 +01:00
Mike Belopuhov
8f5ba64c71 fix two off-by-ones in icb_vis 2014-11-11 13:41:17 +01:00
Mike Belopuhov
1c6061c4af Don't waste time with DNS response if the session is going away.
Downgrade DNS failures to LOG_DEBUG while here.
2014-10-28 02:48:30 +01:00
Mike Belopuhov
96a2e311af Reset is->group pointer in icb_remove so that we won't try to LIST_REMOVE
multiple times (happens when free is delayed by the DNS resolution).
2014-10-28 02:44:46 +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
Mike Belopuhov
383d37b46d don't allow to boot yourself 2014-06-17 13:31:02 +02:00
Florian Obser
dab4135734 Use libevent asr helpers; from eric@
"please commit them now" mikeb@
2014-06-17 12:50:41 +02:00
Florian Obser
ee0e95fea0 new and public asr api; from eric@
OK mikeb
2014-03-31 16:14:10 +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
28c4fd37b1 Florian has pointed out that logger code suffers from the same problem
as the main code.  So first of all don't forget to subtract the amount
of what's already read from the total length; secondly correct the
condition to check partial read.
2014-03-14 21:40:28 +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
1bcb666958 Change the "Bummer" message to the more informative one 2014-03-13 12:16:21 +01:00
Mike Belopuhov
fe81e9ad68 Sprinkle some __func__ into the syslog messages 2014-03-10 13:15:14 +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
e80f9fcc8a Convert dns_* functions to use icbd_log instead of syslog 2014-03-10 13:11:56 +01:00