From nobody Wed Jul 05 15:36:38 2023 X-Original-To: dev-commits-doc-all@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 4Qx3fv29Nzz4lLDl for ; Wed, 5 Jul 2023 15:36:39 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (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 RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Qx3ft5ygcz49Vy; Wed, 5 Jul 2023 15:36:38 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1688571398; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=CQnwvFIiukXTgZ81UE/1fQyMK7ILVLQ5hLFr5lfw1tU=; b=FG33kK7aAHA/DisqmPi6X6WzSXV56upEw/tGlPWj9fCq1OSugp5y4CPxdyWKZA9N8apZlO 10ppJzA3y37XFiyin18zIn/9D/JzNkLdWqdYpw2hmhfRbPAuPLuVLIW1QLpuY1dJJ85O30 /o6gPOQ4gkKC0IMr3ey5k79PZiYBH1GtHxeGUOUoDgaFtEh+THDa9nIXuHbUJKC0lBj+8E JRjKOnHaUdR/h7eGkfiaphHznltOKQOeXM7BDuMoZwG/I3G8N34PU3RbljzpDg+uBdfwI0 2LRoNHsFE0kfnY1ikk7GeGYR8iTCcf0VybNqLtYy/q9DQePLCoKLdUxvAY3mrQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1688571398; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=CQnwvFIiukXTgZ81UE/1fQyMK7ILVLQ5hLFr5lfw1tU=; b=Y5gENATG07bK5ELa/jrh+GmpuS1oi3kGX/z07lyRt2bT41FwkXz3usQsb0iL+bpKPZdn35 5xOa/130UEqQsDhw85DOLv4Xo4lF+wbEEtdjlcDUReF3peZ/snnHRNcRg6v62E9Klo5uAI VpRpp8obYcprhEzJtQHHiRB+wR5mdNyVc02MbTModvEpQCuKk4rHCpQ5cgrRDBvaQ0o/Ou WgKxXfd96m3uXvOS4iAnQIZiNWsor/BsxX/m+1kb3DgaBHgalsz7V7JCLq0KAo2o8emlD9 16fpW43ZFIbQ3q4idStajcNRiDmiunkGiRK/jERVPKjHJw1ffathOhU2BeST4w== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1688571398; a=rsa-sha256; cv=none; b=pyVeLowz/XIGppYGlRI7VL59dnqMreIaixlKHOpbX52lFDqn1cn8fwpLY8Slq7xJ3hduCQ ARXOozfd5krIBajFRhI9YhPme5nUUdWt4I+NWJkLvh98uM4G03t1tSs1HMJx30qt4Ppvnw 86m1FSPsiJ16t6tToRfTNTjno9i8mLp0fz9Bf8gV7jxVXfQaswpuEJ9UBT1M3tKfZuqToP 2dhqyb4jcecNMuqgqgLovzEDHTv+/+3J7WsKbzzxDHXN0caoXQSBa3m2z4P+5txCTuYuZ+ YFt6JE/g9kCu/rPNAfzZKHKaIpy/sb72xMqGKBv55P6pVXo9t7U0cgffY38Leg== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4Qx3ft52QnzLNr; Wed, 5 Jul 2023 15:36:38 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 365FaclG017471; Wed, 5 Jul 2023 15:36:38 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 365Facad017470; Wed, 5 Jul 2023 15:36:38 GMT (envelope-from git) Date: Wed, 5 Jul 2023 15:36:38 GMT Message-Id: <202307051536.365Facad017470@gitrepo.freebsd.org> To: doc-committers@FreeBSD.org, dev-commits-doc-all@FreeBSD.org From: Lorenzo Salvadore Subject: git: f243b7e5d6 - main - Status/2023Q2/service-jails.adoc: Add report List-Id: Commit messages for all branches of the doc repository List-Archive: https://lists.freebsd.org/archives/dev-commits-doc-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-doc-all@freebsd.org X-BeenThere: dev-commits-doc-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: salvadore X-Git-Repository: doc X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: f243b7e5d622fe00ee446f8705dcbdb54ef2c905 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by salvadore: URL: https://cgit.FreeBSD.org/doc/commit/?id=f243b7e5d622fe00ee446f8705dcbdb54ef2c905 commit f243b7e5d622fe00ee446f8705dcbdb54ef2c905 Author: Alexander Leidinger AuthorDate: 2023-07-05 12:20:15 +0000 Commit: Lorenzo Salvadore CommitDate: 2023-07-05 15:34:24 +0000 Status/2023Q2/service-jails.adoc: Add report Reviewed by: status (Pau Amma ) Approved by: dbaio (mentor, implicit) --- .../report-2023-04-2023-06/service-jails.adoc | 27 ++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/website/content/en/status/report-2023-04-2023-06/service-jails.adoc b/website/content/en/status/report-2023-04-2023-06/service-jails.adoc new file mode 100644 index 0000000000..efb58e7163 --- /dev/null +++ b/website/content/en/status/report-2023-04-2023-06/service-jails.adoc @@ -0,0 +1,27 @@ +=== Service Jails - automatic jailing of rc.d services + +Links: + + +link:https://reviews.freebsd.org/D40369[D40369: Extend /usr/bin/service with the possibility to set ENV vars] URL: link:https://reviews.freebsd.org/D40369[] + +link:https://reviews.freebsd.org/D40370[D40370: Infrastructure for automatic jailing of rc.d-services] URL: link:https://reviews.freebsd.org/D40370[] + +link:https://reviews.freebsd.org/D40371[D40371: automatic service jails: some setup for full functionality of the services in automatic service jails] URL: link:https://reviews.freebsd.org/D40371[] + +Contact: Alexander Leidinger + +Service Jails are an extension to the rc system which allows automatic jailing of rc.d services. +Service jails inherit the filesystem of the parent host or jail, but use all the other limits of a jail (process visibility, restricted network access, filesystem mounting permissions, sysvipc, ...) by default. +Additional configuration allows to inherit the IPs of the parent, sysvipc, memory page locking, and use of the bhyve virtual machine monitor (man:vmm[4]). + +If you want to put e.g. local_unbound into a service jail and allow IPv4 and IPv6 access, you simply have to change rc.conf to have +---- +local_unbound_svcj_options=net_basic +local_unbound_svcj=YES +---- + +While this doesn't have the same security benefits of a manual jail setup with a separate filesystem and IP/VNET, it is much easier to setup while providing some of the security benefits of a jail like hiding other processes of the same user. + +The patches in the links are a rewrite of link:https://lists.freebsd.org/pipermail/freebsd-jail/2019-February/003710.html[what I presented in 2019]. +The main difference is that an ENV variable is used to do some more rational tracking and as such requires a change to man:service[8]. + +My intent is to commit link:https://reviews.freebsd.org/D40369[D40369] before the branch of 14-stable (which may have happened already when you read this). +I will not commit link:https://reviews.freebsd.org/D40370[D40370] and link:https://reviews.freebsd.org/D40371[D40371] before 14.0 is released and both would benefit of some more eyes looking at them.