From owner-freebsd-hackers@freebsd.org Mon Nov 5 17:34:57 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 631521107007 for ; Mon, 5 Nov 2018 17:34:57 +0000 (UTC) (envelope-from markjdb@gmail.com) Received: from mail-io1-xd44.google.com (mail-io1-xd44.google.com [IPv6:2607:f8b0:4864:20::d44]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id B956E6A4FD for ; Mon, 5 Nov 2018 17:34:56 +0000 (UTC) (envelope-from markjdb@gmail.com) Received: by mail-io1-xd44.google.com with SMTP id o19-v6so7121210iod.3 for ; Mon, 05 Nov 2018 09:34:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=al7cUUx8n+e48suvX/NjkjQwl5RzhSub4L6eOTheUpM=; b=AZLo6xvQApIPdT9uyVxQV5ywg2FlAyrMgRG/ck3W0kQqBwPHz3jdwnbcLL6p6k7s1N pf6HUSHaPGJkTVNxd6XN+64FpQEZk+rdHs2GiF+ZMXz1lo2wcKQ0SKqblwly0yPrew+i tR+A+vRzmWK283I5Ga/oz648HFrhQSl9sn0SED0n4e0IZoO77yGtzMzs9mKp7r5euP4N OJUmnuNrAZ+BnYckBHNAAfsvhmly8OT7xWg1iPReGE1jdnD8uez7OmyWO8LezyJ7NQ94 5nrFqDKwfBW55g0Q/2ydfd5UI5me3zAylSIYZcSpMs3yvAkdZ5kMU/qIUvIfFGq8J9o7 YQPA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :references:mime-version:content-disposition :content-transfer-encoding:in-reply-to:user-agent; bh=al7cUUx8n+e48suvX/NjkjQwl5RzhSub4L6eOTheUpM=; b=GvLuSlehrK9AQXC7vRiV2dVHVjM4hz+oIO6yebNxPDpIoIW/2x43tR3sK+TFIVE/eI Ue4B9d1yhVq/VlIbMI98lWFLp5fhy4OEd7XlpzVm9h+IBkiDXDgvftZQaYP8oT8CGp9f Ua+e4ybaaclgQnZou+6ynvirZgMPW+kIahAtq3imcfJ2pM7m23FU5F47VYr0x7+MMF7w R5V7kazEHFUBc/AHp4v6SLbxogsxd+ew4E/E6l8njRrx1i2Th3sXZAo9SSBRvEy9v1af +OyhN0eVhKfX82pUNTcYt2l4vdbJYhBOt6RRQq1J8lUHr+ChO0KQgATfKbVwHDWREq1K br9w== X-Gm-Message-State: AGRZ1gLI0is1VFquERikwVGHpUksGcpHoR+mJWtPhDC1D9KePqpQBIRC jdTvnF6qByEK/vtSpMD9M49lkWgM X-Google-Smtp-Source: AJdET5fqoo3Ta7hYs6dW6XSb0PCnQ8KLnIAjRnyNXtb95P17qmlKKKIYOsy0J4atrrl2+NcBy7g1VQ== X-Received: by 2002:a6b:c7c7:: with SMTP id x190-v6mr19234420iof.30.1541439296140; Mon, 05 Nov 2018 09:34:56 -0800 (PST) Received: from raichu (toroon0560w-lp130-08-67-71-176-199.dsl.bell.ca. [67.71.176.199]) by smtp.gmail.com with ESMTPSA id z18-v6sm14235783iog.57.2018.11.05.09.34.55 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 05 Nov 2018 09:34:55 -0800 (PST) Sender: Mark Johnston Date: Mon, 5 Nov 2018 12:34:53 -0500 From: Mark Johnston To: "Bjoern A. Zeeb" Cc: freebsd-hackers@freebsd.org Subject: Re: [CFT] capsicum patches for rtsol(8) and rtsold(8) Message-ID: <20181105173453.GB78763@raichu> References: <20181015194212.GA2751@spy> <20181016165308.GB5066@raichu> <86D87437-BD34-489A-87B7-33F1089080EE@lists.zabbadoz.net> <20181016200414.GD5066@raichu> <2A564C8A-FB64-4D2A-9E3E-392F1FCA66BD@lists.zabbadoz.net> <20181024195627.GI45118@raichu> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) X-Rspamd-Queue-Id: B956E6A4FD X-Spamd-Result: default: False [-1.93 / 200.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_DKIM_ALLOW(-0.20)[gmail.com]; NEURAL_HAM_MEDIUM(-0.99)[-0.993,0]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-hackers@freebsd.org]; DMARC_NA(0.00)[freebsd.org]; NEURAL_HAM_SHORT(-0.82)[-0.821,0]; RCVD_COUNT_THREE(0.00)[3]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[gmail.com:+]; RCPT_COUNT_TWO(0.00)[2]; RCVD_IN_DNSWL_NONE(0.00)[4.4.d.0.0.0.0.0.0.0.0.0.0.0.0.0.0.2.0.0.4.6.8.4.0.b.8.f.7.0.6.2.list.dnswl.org : 127.0.5.0]; MX_GOOD(-0.01)[cached: alt3.gmail-smtp-in.l.google.com]; RCVD_TLS_LAST(0.00)[]; FORGED_SENDER(0.30)[markj@freebsd.org,markjdb@gmail.com]; MID_RHS_NOT_FQDN(0.50)[]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; FROM_NEQ_ENVFROM(0.00)[markj@freebsd.org,markjdb@gmail.com]; IP_SCORE(-0.41)[ipnet: 2607:f8b0::/32(-0.54), asn: 15169(-1.45), country: US(-0.06)] X-Rspamd-Server: mx1.freebsd.org X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 05 Nov 2018 17:34:57 -0000 On Fri, Nov 02, 2018 at 11:25:40PM +0000, Bjoern A. Zeeb wrote: > On 24 Oct 2018, at 19:56, Mark Johnston wrote: > > Hi, > > sorry I lost track on this. No problem, thanks for testing. > > Yes, I just uploaded a new version of the patch to > > https://people.freebsd.org/~markj/patches/rtsold_capsicum.diff and > > would > > appreciate any further testing that you can do. > > The rtsol Makefile does not cleanly apply to my HEAD. I updated the patch yet again, it should apply this time. The newest version requires HEAD as of r340130. > Also there seems to be an empty .else case in both rtsold and rtsol > Makefiles. Fixed, thanks. > Also I couldn’t get rtsol to link until I realised that it was rescue > which didn’t want to link (-j24 output can be confusing). I guess > with -DSMALL gone and MK_CASPER not turned off for rescue or whatever it > is the result is not what we expect? In other cases (e.g., ping(8)) we simply disable libcasper support for rescue binaries, so I've done the same here. > >>> resolvconf -a will only update /etc/resolv.conf if the info in > >>> /var/run/resolvconf/interfaces/vtnet0 has changed, I believe. Try > >>> deleting that file too, and then try running rtsol. > >> > >> When I deleted /etc/resolv.conf and then rtsol manually it had > >> re-appeared. Unclear to me what was in /var/run; I just wanted to > >> point > >> out the difference in behaviour; maybe you are right; I’ll go and > >> check if deleting in /var/run/ as well makes a difference. > > > > I don't observe that behaviour with either the stock or patched > > rtsol(8): for resolvconf(8) to update /etc/resolv.conf (or re-generate > > it), something under /var/run/resolvconf/interfaces needs to have > > changed. So, in my case, deleting /etc/resolv.conf *and* > > /var/run/resolvconf/interfaces/re0:slaac will cause resolv.conf to be > > regenerated once rtsold(8) decides to re-run resolvconf(8), but > > deleting resolv.conf on its own will not. > > I wonder if that’s a bug (unrelated to yours). I also noticed that > when my nameservers changed /etc/resolv.conf did not always reflect > this.