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
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
Mike Belopuhov
b6c9dd34d7
Don't cleanup trailing spaces from open and personal messages.
2014-03-10 11:22:15 +01:00
Florian Obser
c102bbf4a0
Make pidgin-icb /who and /msg work for real.
...
pidgin-icb seems to treat "." as the current group, so return the who
output for the group the icb session is connected to.
Turns out the previous commit doesn't fix anything - the tests were
wrong, so revert that.
2014-03-09 23:42:06 +01:00
Florian Obser
c4a43f1f8f
make /who and /msg work in pidgin-icb
2014-03-09 18:15:27 +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
718d0c9314
Remove jokes that are not fun anymore
2014-03-09 15:04:11 +01:00