From owner-svn-src-head@freebsd.org Sat Nov 4 15:53:45 2017 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 116C8E4E6A4; Sat, 4 Nov 2017 15:53:45 +0000 (UTC) (envelope-from oshogbo.vx@gmail.com) Received: from mail-lf0-x229.google.com (mail-lf0-x229.google.com [IPv6:2a00:1450:4010:c07::229]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 843C173641; Sat, 4 Nov 2017 15:53:44 +0000 (UTC) (envelope-from oshogbo.vx@gmail.com) Received: by mail-lf0-x229.google.com with SMTP id 90so6202297lfs.13; Sat, 04 Nov 2017 08:53:44 -0700 (PDT) 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:in-reply-to:user-agent; bh=JWABURkO1xtXy8Hv9tP5zdZg+MtijCinYdntIXPIfwg=; b=rasz81IXvt7v7uQpUKRl3Gp3sY9+h/GZ7CE307cG6GLDuVR7TFAeiGuIYA5CMcBeQo 1u1Xcw2mPT5VTZVXDDliztBKoyyhZkwistGqgpexux7YArZ5UnLZ/4W5UF4ZLiSajBv9 8REDX21i41/4H2LKkgqi01qCY+H8X9eGgm+2FKVJ9eX0wVvJSfJV8kELdydUYzHZLVoz fOic/D/17FU+Ka9kUMrj95Fgf4gWVqQG/YcynzPjtzKeguseryQqgOj6MXLTMWEt7oLW tRs0Z3CcTvbt7Qyk/lDxCxULzBurRNHiu1nVBKyz2VpttKmXhh9vla1Zjla8Hd423kxq v1xA== 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:in-reply-to:user-agent; bh=JWABURkO1xtXy8Hv9tP5zdZg+MtijCinYdntIXPIfwg=; b=XYaOeMvga4yi8uFfFpxfibz7Sw7mrX/blGEaQ9IDZ+jPnmGQsFcBy9F7/SdbVZ8EQ0 XLMF8PZJgZJp+f/Gn96mnRb49WH2Kh8x5333qJqbErxLReN4vZpAc4sy7hchTd3764nu 8VxY4pJDL4oaZ4dYw5oWbrc5fYWkd5+yi2goUrJ+okO6liaCNosJA9F8RjZKp9yN6RLh r6C6Mx1pCSPDzdzBPqQmHrxHn4WbHpPGdvMkIGweIY55HXRMNJ5ophuaru37ZD2KEl0D phCnzSECgwa+UND4GgSPtnxMrwvDO6Vcnj9X++xRzhfNadufT6URF4Bun1NpU7/ir0it tkAg== X-Gm-Message-State: AMCzsaXvyDy8f9YXKyCtLwvjDobTiwDm+wAJ0icSjuQHYzAYm1jXeWLU FYBLUr60VioEGnHQUm57OpE= X-Google-Smtp-Source: ABhQp+SPMHBbFYh2Fvi6qZzr9QGzt7w+mF6V2lbGUr0OMSeNLq1KGWbdaRxoZhv/v6mTL8GctVflGQ== X-Received: by 10.46.81.90 with SMTP id b26mr4157783lje.98.1509810822818; Sat, 04 Nov 2017 08:53:42 -0700 (PDT) Received: from x-wing (87-206-170-77.dynamic.chello.pl. [87.206.170.77]) by smtp.gmail.com with ESMTPSA id i66sm1767912lji.51.2017.11.04.08.53.40 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 04 Nov 2017 08:53:40 -0700 (PDT) Sender: Mariusz Zaborski Date: Sat, 4 Nov 2017 16:55:03 +0100 From: Mariusz Zaborski To: "Herbert J. Skuhra" Cc: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: Re: svn commit: r325062 - in head/lib: . libcasper libcasper/libcasper libcasper/services libcasper/services/cap_dns libcasper/services/cap_dns/tests libcasper/services/cap_grp libcasper/services/cap_g... Message-ID: <20171104155503.GA10168@x-wing> References: <201710281923.v9SJNvE5021346@repo.freebsd.org> <87h8uexoix.wl-herbert@mailbox.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="envbJBWh7q8WU6mo" Content-Disposition: inline In-Reply-To: <87h8uexoix.wl-herbert@mailbox.org> User-Agent: Mutt/1.8.3 (2017-05-23) X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 04 Nov 2017 15:53:45 -0000 --envbJBWh7q8WU6mo Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Nov 01, 2017 at 11:48:54AM +0100, Herbert J. Skuhra wrote: > On Sat, 28 Oct 2017 21:23:57 +0200, > Mariusz Zaborski wrote: > >=20 > > Author: oshogbo > > Date: Sat Oct 28 19:23:57 2017 > > New Revision: 325062 > > URL: https://svnweb.freebsd.org/changeset/base/325062 > >=20 > > Log: > > Introduce caspermocks. > > =20 > > The idea behinds mocks is that we don't need to ifdef a lot of code in > > tools itself but those defines are hidden in the casper library. > > Right now the mocks are implemented as define/inlines functions. > > There was a very long discussion how this should be implemented. > > This approach has some advantages like we don't need to link to any a= dditional > > libraries. Unfortunately there are also some disadvantages for exampl= e it is > > easy to get library out of sync between two versions of functions or = that we > > need extra define to compile program with casper support. > > This isn't an ideal solution but it's good enough for now and should = simplify > > capsicumizing programs. This also doesn't close us any other ways to = do those > > mocks and this should evolve in time. > > =20 > > Discussed with: pjd, emaste, ed, rwatson, bapt, cem, bdrewery > > Differential Revision: https://reviews.freebsd.org/D8753 >=20 > Again, after this commit libcasper.so.0 is installed to /usr/lib and not > /lib: >=20 > % ls -l /usr/lib/libcasper.so* > lrwxr-xr-x 1 root wheel 14 Oct 29 10:51 /usr/lib/libcasper.so -> li= bcasper.so.0 > -r--r--r-- 1 root wheel 22424 Oct 29 10:51 /usr/lib/libcasper.so.0 >=20 > But usr/lib/libcasper.so.0 is listed in ObsoleteFiles.inc: >=20 > % grep -B 2 libcasper.so /usr/src/ObsoleteFiles.inc > # 20131202: libcapsicum and libcasper moved to /lib/ > OLD_LIBS+=3Dusr/lib/libcapsicum.so.0 > OLD_LIBS+=3Dusr/lib/libcasper.so.0 Thank you for reporting. Should be fixed in the r325399. Thanks, --=20 Mariusz Zaborski oshogbo//vx | http://oshogbo.vexillium.org FreeBSD commiter | https://freebsd.org Software developer | http://wheelsystems.com If it's not broken, let's fix it till it is!!1 --envbJBWh7q8WU6mo Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEkD1x0xkJXVVY1Gwf38KEGuLGxWQFAln94tQACgkQ38KEGuLG xWSs/A//ZGbrkmrU587d+dUAK+EhSou3RHj/hjzK3VFnzuc5nwvRPeAqC+ghFjeR 85t5anB5LvLxyq33Utw9xiL4ymYtH3QjYK3Dw7DNXlr1ZO7cyqGqsS9lTB/abqby 4qFQZCZBrOdipFzeCg480azyn+vit7Wcbxj7pZgItIeaeUK0ipXWe02Q9pd0IrVy iQKNqWePiJcdDvmr9NUMY6Q+mvUGdzPXI5ooas+CiKAhU4RaJbrBbK+Wml9wv0mG gdrzTpGF6RPbtq6JH8hxqNU75NmpJkZSCVvzK5/UA9j9P7SfkF3PLuWGvVZFXNB0 vUrjFN7Ap0LEeG8GObsraXdXQRi1vKdSEulc5Su6csQI3zzAF5LvTLmu0qhkDG6C SopLn6JUOjkoh2fOK6MucMb3UuR4N28L2PZUunu8HdjHbFlxSrEAWcLhSq3NOTqK WUMroPedd6WjyeUJHn+AYwpeWBLl28fFlVomShR4eFEsOaX7LLyo1EuRf+ZMaJxg 6D655bxOIMbPP9BslLlr/1F4ayjCI37+cvOy/zVySqVkauKxCg2lIFi8L/17G3lA AAZ4aFp2Wd2jOz+ws4XEPfjIuFxhJc+26Z4Cw9MdDdMlc6JQ/0R8MJMfhMlE23hM IAuWU31Upkq2Zk1uDSLe7QiKeyDs7VF7TV/06r0bTWMR2nbCp1E= =mWfb -----END PGP SIGNATURE----- --envbJBWh7q8WU6mo--