From owner-freebsd-hackers@freebsd.org Tue Oct 16 16:06:56 2018 Return-Path: Delivered-To: freebsd-hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id AE81110D8C46 for ; Tue, 16 Oct 2018 16:06:56 +0000 (UTC) (envelope-from bzeeb-lists@lists.zabbadoz.net) Received: from mx1.sbone.de (cross.sbone.de [195.201.62.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mx1.sbone.de", Issuer "SBone.DE" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 361EA7376E; Tue, 16 Oct 2018 16:06:55 +0000 (UTC) (envelope-from bzeeb-lists@lists.zabbadoz.net) Received: from mail.sbone.de (mail.sbone.de [IPv6:fde9:577b:c1a9:31::2013:587]) (using TLSv1 with cipher ADH-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by mx1.sbone.de (Postfix) with ESMTPS id 43DA48D4A163; Tue, 16 Oct 2018 16:06:48 +0000 (UTC) Received: from content-filter.sbone.de (content-filter.sbone.de [IPv6:fde9:577b:c1a9:31::2013:2742]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.sbone.de (Postfix) with ESMTPS id 5DE61D1F851; Tue, 16 Oct 2018 16:06:47 +0000 (UTC) X-Virus-Scanned: amavisd-new at sbone.de Received: from mail.sbone.de ([IPv6:fde9:577b:c1a9:31::2013:587]) by content-filter.sbone.de (content-filter.sbone.de [fde9:577b:c1a9:31::2013:2742]) (amavisd-new, port 10024) with ESMTP id 5S1Zpe8ejr4D; Tue, 16 Oct 2018 16:06:45 +0000 (UTC) Received: from [10.248.106.11] (fresh-ayiya.sbone.de [IPv6:fde9:577b:c1a9:f001::2]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mail.sbone.de (Postfix) with ESMTPSA id 102B8D1F835; Tue, 16 Oct 2018 16:06:44 +0000 (UTC) From: "Bjoern A. Zeeb" To: "Mark Johnston" Cc: freebsd-hackers@freebsd.org Subject: Re: [CFT] capsicum patches for rtsol(8) and rtsold(8) Date: Tue, 16 Oct 2018 16:06:43 +0000 X-Mailer: MailMate (2.0BETAr6123) Message-ID: In-Reply-To: <20181015194212.GA2751@spy> References: <20181015194212.GA2751@spy> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 16 Oct 2018 16:06:56 -0000 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@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 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: . Find the GDB manual and other documentation resources online at: . 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 "
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=, argv=) at /usr/src/usr.sbin/rtsold/rtsold.c:255 /bz