From nobody Tue Nov 19 16:12:39 2024 X-Original-To: freebsd-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 4Xt8fQ43hjz5fBCn for ; Tue, 19 Nov 2024 16:12:46 +0000 (UTC) (envelope-from igoro@FreeBSD.org) Received: from smtp.freebsd.org (smtp.freebsd.org [IPv6:2610:1c1:1:606c::24b:4]) (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 "smtp.freebsd.org", Issuer "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Xt8fQ3DPXz4KRn for ; Tue, 19 Nov 2024 16:12:46 +0000 (UTC) (envelope-from igoro@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1732032766; 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=sjnoSL0lLO1/kNEv3qiwp6cv5PNvOXfm3vy4+A+K8Z4=; b=VCJ6N46G44kQOKPlQUsgyihsa05MbsfOUMaG4fAHinQnVVdMfDZQhJDuAJfJe7EtRzCwCA lZ/4Mg8ILc8/M38XQULybgRU9Xw90OTSInD4LnMmP2LIVb1KeMzSC2BBju1B+WAydhCDGt +GAph12ClPsSE90Eh0DnilC2ZPBOkiqrgeDSC2SZdXZ0LFKC07ji/qJ12ERH5UH0yksIiL GT2z0rpod+/zxsk0i13EjEGaxh8ZE2pD6JWEz6ljSa77oZb9zy8Ny0oyTWGqw0lUs5Znf9 5KjRqU8b5w49ErB5SUR0YVtlgOTXfSsvdfqWWAXy6KfUInt1Ot4G0YbQQin2mA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1732032766; 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=sjnoSL0lLO1/kNEv3qiwp6cv5PNvOXfm3vy4+A+K8Z4=; b=ePv7NH0L1Ue6IXyZ9hDkowWV8fe4D7Txi3j5nuEa0mXxtbpXsppHcSSRyGWKExVWmoFnOQ 5xQaTXfAPJhJ4zs2xsLKw2Zt03sTJdRGCefxktv5zb9ORx3A8H/nFdNHgPmFJ8RytqLcmY 3S2phJicrbrMljrE5e8+875nsS/nMEqMRTjq9PgJcwJQUN+tHFOrhYr+EsPE9j8pmCHDBW ukqwWA6MrnApIy+0vLMedUh3cvgG9wYB+GV/ONuMEQtyuTP5v2s/opySam1cJ6GqLrkrY0 ts6uKhcuV8b3ujBmAOla84pS0Zhgd3gihs+F+Z5os+DhS1bbClp0RnZOA8JRMA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1732032766; a=rsa-sha256; cv=none; b=OiouKm9fp/3tvEnbsgamG8RckQybsSulXjNzoFRH/jAMGSm5I5/0m9gx0OkCe2iFbdFPIO R8GqhrfM6eXVRb5fLhzZx4ZvJKKpgqEuJuxcyjpMCJnt0Ml7xGx9zqRqHoXKtZfIkFXdL0 EBltEdhDelY/nogXqzKtQ4HStP3GwJvn9ccRqQd7kBVg0Ngbq8XQecn4oco9jZVuNXahmE 2xkYkMhzkBrZVK4f0jvwffg5VT9waKBrz+igDVJx7DfNhm1Hd9FzbMFzysYtvoEyNIXVGO u7lDIQZe9N01Q9VLm8FPhh/4iI181RlTXGuMpD7C/qoJP75OZ48zVcUdM5Qmtw== Received: from [192.168.0.8] (unknown [78.83.216.204]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) (Authenticated sender: igoro/mail) by smtp.freebsd.org (Postfix) with ESMTPSA id 4Xt8fP6Dn8zMxp for ; Tue, 19 Nov 2024 16:12:45 +0000 (UTC) (envelope-from igoro@FreeBSD.org) Message-ID: Date: Tue, 19 Nov 2024 18:12:39 +0200 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 User-Agent: Mozilla Thunderbird Content-Language: en-US To: freebsd-jail@freebsd.org From: Igor Ostapenko Subject: [RFC] jail: Add meta parameter Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Hi, There is a proposed patch to add "meta" parameter, which can be any string associated with a jail. It can be set upon jail creation or added/modified later: > jail -cm ... meta="tag1=value1 tag2=value2" The current design is the following: - Its value is not inherited from a parent jail. - A jail can read its own meta via security.jail.meta sysctl. - The maximum meta size per jail is controlled with a global security.jail.meta_maxbufsize sysctl. Decreasing it does not alter the existing meta information. The context, rationale, and its discussion are on the Phabricator -- review and comments are welcome: https://reviews.freebsd.org/D47668 Best regards, igoro