From nobody Sun Dec 15 23:22:47 2024 X-Original-To: jail@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 4YBJyb2XR2z5hRrZ for ; Sun, 15 Dec 2024 23:22:47 +0000 (UTC) (envelope-from bugzilla-noreply@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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4YBJyb0H3wz50dG for ; Sun, 15 Dec 2024 23:22:47 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1734304967; 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: in-reply-to:in-reply-to:references:references; bh=PD54oMK1nJO40rtnd89PgkrNSwFd4Il/0eLZYpqsiLE=; b=BUTXM3XZaFkMN/CSyqzltR8/xFD/aqprYnShtlQnqwxZ5kOeBfUeXpdVMhnl7CyHrtGCoW 0FwvEFg2CSQQqscN+kmoMRCJG35Th83e8LcGMThkLeJ4MXVvJ/eKUL3o2kZW3kCJuC+YlP htVMybLmU1bs1EOCFrt3mBTjDhNDQTa0jX835ADOvj97evfStXdBGa95Tp5MAV/zlkvjsh g/g1H2yy1DYEydQmGWwSC7tJWO/4RfQYqtjjbuhx9/A+vXEAkR3ToMr3p6KQ8VbCuxetEX DgLDHZ6nPtPAdNl+RP+5E7xE3jaeFZ8sCAyNjpre3o+7URljC42hOtTDKvE9ow== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1734304967; a=rsa-sha256; cv=none; b=w5ydxgZYXuZCvYC1S6cGSpgmsuvnDUS4PYeHPgvvoI+gqP8BYEOcKBrSIYuwaHJCI6H7kU +i2qXsH+7i79vsCheoJOesE1ZRFSQotmddG7YeQRaoYNVFVwVA51PjVL9ZV2EMHtIfxBz2 0GLkipU+nxr0jxQpRNOft/jYHB0avFgZvmguHUcNs6bDvbgTfluxc4KTBHFPpUJRTRToUj 72SUoHFKEUSdi2weXG/udzgcE1eSAkVOik4m6YzuGWiRiBPh6rrCwaM9y97W2JuR04nk7T DRv+gtf2NTo17/jtKfbrM1UcpL/mHv7v7+uxfAGbzz6cHVhCf8tEVUCd4A7UOw== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (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 4YBJyZ6XJHzSxv for ; Sun, 15 Dec 2024 23:22:46 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 4BFNMkcY076650 for ; Sun, 15 Dec 2024 23:22:46 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 4BFNMk43076649 for jail@FreeBSD.org; Sun, 15 Dec 2024 23:22:46 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: jail@FreeBSD.org Subject: [Bug 260248] jails: depend parameter does not work in modular jail files (conf.d) Date: Sun, 15 Dec 2024 23:22:47 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: conf X-Bugzilla-Version: 13.0-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: crest@rlwinm.de X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: jail@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Discussion about FreeBSD jail(8) List-Archive: https://lists.freebsd.org/archives/freebsd-jail List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-jail@FreeBSD.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D260248 crest@rlwinm.de changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |crest@rlwinm.de --- Comment #7 from crest@rlwinm.de --- The problem is that the support for /etc/jail.conf.d/$name was implemented inside the rc.d script instead of jail.conf. Inside said script each jail is started/stopped by invoking jail -f $conf ... $name. The other config files aren't read so separate invocations of the jail command don't know about ea= ch others configuration. It was a useful hack at the time, but FreeBSD =E2=89= =A5 14.0 support native .include directives with globs. The proper solution is to put something like this in your /etc/jail.conf: .include "/usr/local/etc/jail[.]conf"; # load local defaults .include "/etc/jail.d/*.conf"; # don't have /etc/jail.conf.d because .include "/usr/local/etc/jail.d/*.conf"; # it triggers the rc.d workaro= und. You can't just have the rc.d script generate a jail.conf(5) that includes a= ll configs in /etc/jail.conf.d, because the global variable would carry over between files which would be a massive POLA violation. --=20 You are receiving this mail because: You are the assignee for the bug.=