[CFT] capsicum patches for rtsol(8) and rtsold(8)

Bjoern A. Zeeb bzeeb-lists at lists.zabbadoz.net
Tue Oct 16 16:06:56 UTC 2018


On 15 Oct 2018, at 19:42, Mark Johnston wrote:

> https://people.freebsd.org/~markj/patches/rtsold_capsicum.diff

(0) the git rename doesn’t really work when applying the diff with 
FreeBSD’s patch so the mv has to be done manually

(1) the rtsol Makefile also needs cap_syslog and util to link to 
otherwise rtsold.c has unresolved symbols

(2) rtsol seem to have worked when manually invoked;  /etc/resolv.conf 
was created (I had rm’ed it) and the 3 nameserver lines re-appeared;  
sorry can’t test the search string here

(3) rtsold crashes:

root at i386-a3-carp:/ # gdb82 /usr/sbin/rtsold /rtsold.core
GNU gdb (GDB) 8.2 [GDB v8.2 for FreeBSD]
Copyright (C) 2018 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later 
<http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "i386-portbld-freebsd12.0".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
     <http://www.gnu.org/software/gdb/documentation/>.

For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from /usr/sbin/rtsold...Reading symbols from 
/usr/lib/debug//usr/sbin/rtsold.debug...done.
done.
[New LWP 100091]
Core was generated by `/usr/sbin/rtsold -a'.
Program terminated with signal SIGABRT, Aborted.
#0  thr_kill () at thr_kill.S:3
3       thr_kill.S: No such file or directory.
(gdb) where
#0  thr_kill () at thr_kill.S:3
#1  0x281ca3a1 in __raise (s=6) at /usr/src/lib/libc/gen/raise.c:52
#2  0x281ca2e3 in abort () at /usr/src/lib/libc/stdlib/abort.c:67
#3  0x28246a98 in __assert (func=0x28092479 "cap_xfer_nvlist", 
file=0x280925a3 "/usr/src/lib/libcasper/libcasper/libcasper.c", 
line=304, failedexpr=0x280924d6 "chan != NULL") at 
/usr/src/lib/libc/gen/assert.c:51
#4  0x28095a60 in cap_xfer_nvlist (chan=0x0, nvl=0x282940a0) at 
/usr/src/lib/libcasper/libcasper/libcasper.c:304
#5  0x2809a1ce in cap_vsyslog (chan=0x0, priority=3, fmt=0xffbfe7cc 
"<main> failed to initialize capabilities: %s", ap=0xffbfebec 
"\210\266'( \354\277\377 ") at 
/usr/src/lib/libcasper/services/cap_syslog/cap_syslog.c:72
#6  0x0804af2f in warnmsg (priority=3, func=0x804f163 "main", 
msg=0x804f168 "failed to initialize capabilities: %s") at 
/usr/src/usr.sbin/rtsold/rtsold.c:787
#7  0x0804abb3 in main (argc=<optimized out>, argv=<optimized out>) at 
/usr/src/usr.sbin/rtsold/rtsold.c:255


/bz


More information about the freebsd-hackers mailing list