From nobody Sun Oct 13 22:56:01 2024 X-Original-To: bugs@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 4XRbLn2L71z5YhXw for ; Sun, 13 Oct 2024 22:56:01 +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 "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4XRbLn0fDGz4tDl for ; Sun, 13 Oct 2024 22:56:01 +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=1728860161; 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=szGfGOhZqg1kIbnJI/xnH/EWZa4VaRzG+xVIm9gmrAg=; b=JV6W/tozhVbF39UM2+IS6/lFZqNa4mXkpU2lIMwa1IIAa/uCv+AackCaiyyB4EKD3P1MAw 1W6XrC6bLc/8CZCUL8hYQoCbujnqZ8mlT/wRXvGrfqKPWNUByIktTREPLjlZ5/insw5uIR OovwQC/e2sVgOtlgyaUVsq6nQCH7nnmGBrgl1cU+efuHr9QCp5mybvTWrjHt5H2q5KoK0E BKzyZAfAQinHP3ix50UThswJzrobEQeqqcndinduRpuN+Xqsjlh9qXyAl+cGP6Jo4r7qLy QWzqT6nYFWmvMMKTU5bnIs9Bkf1rcd9WsWAMhWMkLOyLVezmSazS0lIAjhqhdg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1728860161; a=rsa-sha256; cv=none; b=VIlibpzhivAkO4tQCsJeHtfYrZETSRl/TMVNRvmIyLA9IH8BdTNBTIEmqlrrEkhUVM+j84 qg0iNlF+v6phLMwns4YPKBup4gbNgbR0BWV/MkAdFGkrLtzvNdMmfEGldYWQBi97XlMTJ+ GO7hZ36/BeyaOlsSknm6fmxfIK7/6HsOSxB1WxY3aLa3+3SjFiYKQqIjT1cqfcakbJ+9Ml 1VeNgbU7tYCqNFWeCHp7L9SmqFeetF99iK2SytpwzEZ22X0STnqs5iaGVZIM+WpKGby9/i LhzwFrfit1bMXeWeZDlG3kz9y4BlbjUVbwIuPLYkPPuaAwdiJQ6XnqqAVfLI6A== 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 4XRbLn057gz1CZq for ; Sun, 13 Oct 2024 22:56:01 +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 49DMu0qL077124 for ; Sun, 13 Oct 2024 22:56:00 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 49DMu0hj077123 for bugs@FreeBSD.org; Sun, 13 Oct 2024 22:56:00 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: bugs@FreeBSD.org Subject: [Bug 282070] pam_zfs_key - miscellaneous issues Date: Sun, 13 Oct 2024 22:56:01 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: misc X-Bugzilla-Version: 15.0-CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: zarychtam@plan-b.pwste.edu.pl X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter Message-ID: 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: Bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-bugs@FreeBSD.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D282070 Bug ID: 282070 Summary: pam_zfs_key - miscellaneous issues Product: Base System Version: 15.0-CURRENT Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: misc Assignee: bugs@FreeBSD.org Reporter: zarychtam@plan-b.pwste.edu.pl The manual page for pam_zfs_key is missing, so not many people are testing = it. I spotted at least 2 flaws in this module: 1. The password has to be typed twice when the module is enabled, console l= ogin looks like below FreeBSD/amd64 (chmura) (ttyu1) login: mzar Password: Password: Last login: Mon Oct 14 00:36:31 from.... 2. If something goes wrong (it's most likely a failed attempt to unload the key), then "3" is written to the file /var/run/pam_zfs_key/$uid which preve= nts further loading keys until the file gets cleared. 3. I was neither able to configure this module to work with SSH (though the stage of double password typing was achieved) nor with a graphical login manager (tried with x11/slim). All the tests were done on the most recent stable/14 and/or recent CURRENT. --=20 You are receiving this mail because: You are the assignee for the bug.=