From nobody Fri Jun 02 09:29:30 2023 X-Original-To: arch@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4QXd4p3jjYz4ZC7x for ; Fri, 2 Jun 2023 09:29:46 +0000 (UTC) (envelope-from Alexander@leidinger.net) Received: from mailgate.Leidinger.net (bastille.leidinger.net [89.238.82.207]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature ECDSA (P-256) client-digest SHA256) (Client CN "mailgate.leidinger.net", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4QXd4p00Mxz3M7s for ; Fri, 2 Jun 2023 09:29:46 +0000 (UTC) (envelope-from Alexander@leidinger.net) Authentication-Results: mx1.freebsd.org; none Date: Fri, 02 Jun 2023 11:29:30 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=leidinger.net; s=outgoing-alex; t=1685698174; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=O5He7npvBG8iBWcPr5TEeHyxnMO9m/WaVqCu7ybi0RA=; b=JMVvzitQSRCiiXAHR5wMshl8zkDiry1CTNH2HB+Gu/xtDh9JdeIwYabY7Nn+WItP58VRqH tL7xAgYABem4J8LbVvAsHizb+CtGhU+Iq8n5+eoeryI8goZ+KlsvQJOwb3LI4QRXawGe/Z oZt8H1XdAqTKxef37VdjzsdLqp9fBUrsb7VeGkMjUpeSQV/EO3BwocSzqw7Ki1N+xb+Ael KSr5REJDBJDHKg20WTXayPukYTERn+ylVKDjNu7tgrEkTOEa58Dvfj3vjnJ7X5nj4Wwjen gTxcWyYynSvTtBaE46DjI+wxjpS8hRKA9E2mbaDftaD/uY3uP9ShM53jI2ooZA== Message-ID: <20230602112930.Horde.JM5vGJ2ftpR0pxFB69Zi3z_@webmail.leidinger.net> From: Alexander Leidinger To: Gleb Popov Cc: arch@freebsd.org Subject: Re: Automatic service jails - review request References: <20230601122431.Horde.mmXZpnuf9SpQYXzs4Mrw_Ek@webmail.leidinger.net> In-Reply-To: Accept-Language: de,en Content-Type: multipart/signed; boundary="=_sLs6p9kR97IpoqW5QnhWkje"; protocol="application/pgp-signature"; micalg=pgp-sha256 List-Id: Discussion related to FreeBSD architecture List-Archive: https://lists.freebsd.org/archives/freebsd-arch List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-arch@freebsd.org MIME-Version: 1.0 X-Rspamd-Queue-Id: 4QXd4p00Mxz3M7s X-Spamd-Bar: ---- X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:34240, ipnet:89.238.64.0/18, country:DE] X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-ThisMailContainsUnwantedMimeParts: N This message is in MIME format and has been PGP signed. --=_sLs6p9kR97IpoqW5QnhWkje Content-Type: text/plain; charset=utf-8; format=flowed; DelSp=Yes Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Quoting Gleb Popov (from Thu, 1 Jun 2023 14:35:46 +030= 0): > On Thu, Jun 1, 2023 at 1:25=E2=80=AFPM Alexander Leidinger > wrote: >> >> Hi, >> >> I implemented a functionality which allows to automatically put rc.d >> services into jails. > > THis is highly related to what I did in > https://github.com/freebsd/freebsd-ports/tree/main/ports-mgmt/rc-subr-jai= l > although my approach isn't automatic in any way. When you committed that I had a very quick look. I understand it as follows= : - my stuff: low security, higher security than no jail, very easy to setu= p - your stuff: medium security, higher than what I do (due to a=20=20 separate=20FS), more work required to setup - one service per vnet-jail, manual setup required: full security,=20=20 much=20more setup work And I think our stuff is complementary. As I understand it by a quick=20=20 look,=20your code would be used inside a rc.d script to setup a jail=20=20 tailored=20to the service, whereas my code doesn't need any change to=20=20 rc.d=20scripts in the most easy case, and could life with only rc.conf=20= =20 entries=20for the service, but 1 config change to the rc.d service would=20= =20 make=20it self-contained. Bye, Alexander. --=20 http://www.Leidinger.net=20Alexander@Leidinger.net: PGP 0x8F31830F9F2772BF http://www.FreeBSD.org netchild@FreeBSD.org : PGP 0x8F31830F9F2772BF --=_sLs6p9kR97IpoqW5QnhWkje Content-Type: application/pgp-signature Content-Description: Digitale PGP-Signatur Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIzBAABCAAdFiEER9UlYXp1PSd08nWXEg2wmwP42IYFAmR5tnoACgkQEg2wmwP4 2Ibt+w/9EYh3AHBe2srDM/hfrC9H28nFjHMOcA4zKV64oobR3RNpd7YMiJT1aYOT mDF005oss8YSFiGzfwOixUqxVditW4GP1oPsphHuicIF/0WGbQs9dGcKqz3zDQzK 7JNt3uvU8SjgRP5QtUxLBBj8R0WFaEK5Y6knJQ8dNajQIG8DVRFDlzPO2MqnRxzi VTu7zyocni/P2bT9TqX0I/sDvFKHnlc89dSeIg/v8ubFAzEMvmrXGSLmBYKGAa6x 4R3+w8lPLq4zGsu9OzTC4H2sqKqJ7Kx2cDbjyi29Dy1S5GP0kkPj/OiRymqdS0zd mS6Lqy8jRmNa69xbBWyI1fYMEw7JNFOFaCm0jBa3eQdSELqYbcozMbbTa0DtqdLW 567i0S+BPZyDTYpQ8oB3dq/Z0AtsqbhlKvZBsvKYaLB28NCqU/pkIID+os0k/6LR TEVeK7vLxXHos+dKCjIrltGW81a68UNFVyMPcgZdqY2CI+XMlE02TZGHa1GVq6mS K2XUkZM0AwhTf51gQ+/wHQy8+IPI8ZS/XZCW/MKJzMhNG07RXS+sszWBX5Oryb1x 2uWe5QFRcaCmKpFsZ57CnhWr0Rk+wdTOacbbod7WqxZExDTnd6/1EWTfND0Wbbfe ggxQEAKZGceGO1MTy9PPpUf21o2thaGukJneO2fb1k8CTeQpgUk= =Ia3S -----END PGP SIGNATURE----- --=_sLs6p9kR97IpoqW5QnhWkje--