head 1.2; access; symbols netbsd-11-0-RC4:1.2 netbsd-11-0-RC3:1.2 netbsd-11-0-RC2:1.2 netbsd-11-0-RC1:1.2 perseant-exfatfs-base-20250801:1.2 netbsd-11:1.2.0.2 netbsd-11-base:1.2 netbsd-10-1-RELEASE:1.1.1.1.6.1 perseant-exfatfs-base-20240630:1.1.1.1 perseant-exfatfs:1.1.1.1.0.8 perseant-exfatfs-base:1.1.1.1 netbsd-10-0-RELEASE:1.1.1.1 netbsd-10-0-RC6:1.1.1.1 netbsd-10-0-RC5:1.1.1.1 netbsd-10-0-RC4:1.1.1.1 netbsd-10-0-RC3:1.1.1.1 netbsd-10-0-RC2:1.1.1.1 netbsd-10-0-RC1:1.1.1.1 netbsd-10:1.1.1.1.0.6 netbsd-10-base:1.1.1.1 cjep_sun2x-base1:1.1.1.1 cjep_sun2x:1.1.1.1.0.4 cjep_sun2x-base:1.1.1.1 cjep_staticlib_x-base1:1.1.1.1 cjep_staticlib_x:1.1.1.1.0.2 cjep_staticlib_x-base:1.1.1.1 blocklist-20200614:1.1.1.1 CHRISTOS:1.1.1; locks; strict; comment @# @; 1.2 date 2024.08.02.17.11.56; author christos; state Exp; branches; next 1.1; commitid ad7iFq5OIlEiRgkF; 1.1 date 2020.06.15.01.52.53; author christos; state Exp; branches 1.1.1.1; next ; commitid 178yOO8MwJTTggcC; 1.1.1.1 date 2020.06.15.01.52.53; author christos; state Exp; branches 1.1.1.1.6.1 1.1.1.1.8.1; next ; commitid 178yOO8MwJTTggcC; 1.1.1.1.6.1 date 2024.10.08.11.16.17; author martin; state Exp; branches; next ; commitid eKG0W9pj1tB1KQsF; 1.1.1.1.8.1 date 2025.08.02.05.20.52; author perseant; state Exp; branches; next ; commitid 23j6GFaDws3O875G; desc @@ 1.2 log @Add blocklist_open2() that can pass a custom logger or NULL for no logging. Switch internally to use syslog_r. Add compatibility for systems that don't have syslog_r. @ text @major=0 minor=1 @ 1.1 log @Initial revision @ text @d2 1 a2 1 minor=0 @ 1.1.1.1 log @Import blocklist from https://github.com/zoulasc/blocklist. This is the same code as blacklist from the HEAD of the NetBSD tree. @ text @@ 1.1.1.1.8.1 log @Sync with HEAD @ text @d2 1 a2 1 minor=1 @ 1.1.1.1.6.1 log @Pull up following revision(s) (requested by rin in ticket #930): lib/libc/include/extern.h: revision 1.30 distrib/sets/lists/base/shl.mi: revision 1.987 (patch) external/bsd/blocklist/bin/support.c: revision 1.2 external/bsd/blocklist/bin/blocklistd.c: revision 1.5 external/bsd/blocklist/bin/blocklistd.8: revision 1.3 sys/sys/syslog.h: revision 1.42 external/bsd/blocklist/bin/support.h: revision 1.2 external/bsd/blocklist/include/blocklist.h: revision 1.3 crypto/external/bsd/openssh/dist/pfilter.c: revision 1.9 external/bsd/blocklist/lib/shlib_version: revision 1.2 lib/libc/gen/syslog_ss.c: revision 1.4 lib/libc/gen/Makefile.inc: revision 1.218 external/bsd/blocklist/lib/bl.c: revision 1.3 external/bsd/blocklist/README: revision 1.3 external/bsd/blocklist/include/bl.h: revision 1.2 distrib/sets/lists/debug/shl.mi: revision 1.347 (patch) distrib/sets/lists/comp/mi: revision 1.2462 lib/libc/gen/syslog.3: revision 1.34 lib/libc/gen/syslog.3: revision 1.35 external/bsd/blocklist/libexec/blocklistd-helper: revision 1.8 external/bsd/blocklist/lib/libblocklist.3: revision 1.4 external/bsd/blocklist/lib/libblocklist.3: revision 1.5 external/bsd/blocklist/lib/libblocklist.3: revision 1.6 external/bsd/blocklist/lib/blocklist.c: revision 1.3 Spelling fixes PR/58391: Noriyuki Soda: re-adding syslog_ss() to syslog.h and syslog.3 syslog(3): Nix trailing whitespace in man page. No functional change intended. reference sockpath instead of sockspath Add blocklist_open2() that can pass a custom logger or NULL for no logging. Switch internally to use syslog_r. Add compatibility for systems that don't have syslog_r. Switch blocklist to use syslog_ss since we are being called from a signal handler. bump libblocklist remove trailing space Silence a bogus warning when starting up: NetBSD pf: No ALTQ support in kernel ALTQ related functions disabled FreeBSD pf: Anchor 'blacklistd' not found. The anchor is indeed found and working correctly. This patch just discards stderr's output, like in other places. (jlduran@@github) update markup (Ed Maste) @ text @d2 1 a2 1 minor=1 @