From nobody Mon Mar 07 19:12:30 2022 X-Original-To: rc@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 735E019F0301 for ; Mon, 7 Mar 2022 19:12:30 +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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4KC7Pn72Qgz4rHf for ; Mon, 7 Mar 2022 19:12:29 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) 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 D1D1A5E63 for ; Mon, 7 Mar 2022 19:12:29 +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 227JCTTN090759 for ; Mon, 7 Mar 2022 19:12:29 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 227JCTln090758 for rc@FreeBSD.org; Mon, 7 Mar 2022 19:12:29 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: rc@FreeBSD.org Subject: [Bug 238301] [PATCH] handle encrypted swap in dumpon rc.d script Date: Mon, 07 Mar 2022 19:12:30 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: patch X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: emaste@freebsd.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: rc@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: 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 related to /etc/rc.d design and implementation List-Archive: https://lists.freebsd.org/archives/freebsd-rc List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-rc@freebsd.org X-BeenThere: freebsd-rc@freebsd.org MIME-Version: 1.0 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1646680350; 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=LMu70KIORZmpHKCadOQKZhnWqR0NBaSKlHYgtLjkBwQ=; b=tL9qL1yzM366fESJ+kRl993o0bpZCxFchq0wddMDODHBbRxCZBt7qKtp7ozrpYyQH1P/Pk GA8jjMinObJ7vXd4KlJpAzSxDUE4JHrIfKBILHWIzheOysZLNT4hIcby4tWlCIT1AUwcmk oRZX9A11YS8nar1nrXRZTBVXJkclp7K6du9/lBhySqdMWPIMsyRyHXXHP9hLsgh++bad7i CYMA6JtiFI/QZgYkR17udB+Vs91cSgmf434kxknVKcXJRGc8hJkMn7ylTGO6LAd+HdXrid AqymTgX67zBdyY4ltZdoUkaDYuxfduoVxYoDhyr0kMiv+p/q0V6jCEwsr+B/5g== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1646680350; a=rsa-sha256; cv=none; b=dd627mZFRDiRmIGz0TE0nsSQSTpEi43/OAwgnl81Am8RkaR3Srq/djccihSBaa+P0ppVIY zT3e896lVklSZPgwZXpVqQmvdmTX4gixhv6CzHs9SMn3xTIGTaL1S4u4eepGpgHlEnX+XX bO1MrmVmWFfmzPm+84RmxIyv7G/3wC415nQKGZvyjIys9Iak0EO0VfITnUmWT/KfCEmHde Lff6E+XiqYvR8ctHe3gOuFVXoAgrz/yTIItjrlu769skPSfPKRM4aO5Uvla0AlXKxUZzhR nOyuI5RSuj5bEd/IHzzggSgc8euJGeoOVz1/JnOkQgsi3p0O6liHxV4xJz1eAw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D238301 --- Comment #3 from Ed Maste --- > As for dumping to swap, doesn't that negate the purpose of using encrypte= d swap > in the first place? It depends on one's threat model; there are certainly cases where a user wo= uld choose to use encrypted swap but still want the ability to save a core file. We could emit a warning for this case though, something like: --- if expr ${dev} : .*\\.eli >/dev/null; then echo "WARNING: kernel core dumps will be written to swap without encryption" >&2 dev=3D${dev%.eli} fi --- --=20 You are receiving this mail because: You are the assignee for the bug.=