From nobody Wed Jan 8 23:16:11 2025 X-Original-To: dev-commits-ports-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 4YT3gx2yW5z5kBnK; Wed, 08 Jan 2025 23:16:13 +0000 (UTC) (envelope-from leres@freebsd.org) Received: from smtp.freebsd.org (smtp.freebsd.org [96.47.72.83]) (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 4YT3gx26xkz4p4K; Wed, 8 Jan 2025 23:16:13 +0000 (UTC) (envelope-from leres@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1736378173; 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=WI1sHLo2KsRBodWAYk0Dvsn1j9Vo2xIOU43Tng47ZOY=; b=aktUsQA8nIcB3RF8mMfR2sIltDx6Q8WLgdj7/5vSHCBg0c7ISehGphB4pbe7ysjgdvsTis VDTOqGScfCaSVm13cjph7Bj3UTw4lvOmP64UIJNilj1nmghAB/6BXebHAyQr31VNCeSGm1 Yy1CYhDXo9tOu7eCjXW2PydmwjHSsJMky5QPxY7Ji9Kqo5I+BMMLR83C35K8vsrvfI3jhy nBG24islpkcD+RTI+K9iYWtxW/+0zwMdoGssIU+u5x9O5q3LUe33DwBXmgvp6o6++LdJDC bOmQaNofjl+hB4Ak22e8vi3zGoWSgX8BXgcvclVqucNiivWBL8/zulF0WtIOvg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1736378173; 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=WI1sHLo2KsRBodWAYk0Dvsn1j9Vo2xIOU43Tng47ZOY=; b=MwV5Oc0etyFa5R5D5V2k8UYaewqv48ipnyC5rgFvgTlDxu+gpQYhL2Rm6RoooHMnjhP9c9 vZOc+qTZQRcSaiOfGfNyNbdnmrtlf/Wj1F02ws3MrUpySppUlI91PsnIvZ87yHM7HI0t7F rmmBeDnCHHlrxvVX+rDPEDPsl7oIX6TPjfmGncGdfAFOyZUB4I0Ids0ydNpABtbrrZJ5l+ CkWNoTjrS7iZc1okqfgbLJOWfImNQyBuoV1FQPlNlVAWzjpeyb4NgsAy0rMu7ez7cZsmkU vztRRSdEMPw91lpZIRqVHHy2GGEM284XgBvGYYHSCK6Fu6hmPSVGf1L9d/Aa+Q== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1736378173; a=rsa-sha256; cv=none; b=dljxCHDgUpUjSMbjS7lY53yuGXl9YUNotWGwIjZGCixg3lO9xvPWG7G5yT8BHoaB1ZAoJ+ lu7CAyaBdfSzvBDtzzjem9/hCV+qNOtmmeogLLosMQ+t81yOHmiurnC1xrAPXuQEkaxAIu hqFV3QcSEhKyQ7GPpd9nwvAcZ+HKIpPDQ/zbAfK9EpfK/aGFNshEXKSRkMA7nPFJcpyDeG EuNFib+67/SN67XZTDqOc3QORdeKXeU2o5Az9vWWnimNXqXKWz/XcgA8DijtdgUJbPodVn F4A/t4C0E4nbxLOYj5mDqaDTRWXDfU1IFakfMthdlD16pQUwkNa0D+iUCrMCmw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from [IPV6:fd:1965::2] (unknown [IPv6:2600:1700:ab1b:6800:2e0:edff:fece:8f27]) (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: leres) by smtp.freebsd.org (Postfix) with ESMTPSA id 4YT3gw5WnBzy5Q; Wed, 08 Jan 2025 23:16:12 +0000 (UTC) (envelope-from leres@freebsd.org) Message-ID: <273aec36-c58b-4009-9eea-cea2b31ae38a@freebsd.org> Date: Wed, 8 Jan 2025 15:16:11 -0800 List-Id: Commit messages for all branches of the ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-ports-all@freebsd.org Sender: owner-dev-commits-ports-all@FreeBSD.org MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: git: 726b0eccd65b - main - devel/pcsc-lite: Update to 2.3.1 To: Gleb Popov , ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org References: <202501051556.505FuNhY070016@gitrepo.freebsd.org> From: Craig Leres Content-Language: en-US In-Reply-To: <202501051556.505FuNhY070016@gitrepo.freebsd.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 1/5/25 07:56, Gleb Popov wrote: > The branch main has been updated by arrowd: > > URL:https://cgit.FreeBSD.org/ports/commit/? > id=726b0eccd65bff6517d8189b16fe622998302339 > > commit 726b0eccd65bff6517d8189b16fe622998302339 > Author: Gleb Popov > AuthorDate: 2025-01-05 15:56:02 +0000 > Commit: Gleb Popov > CommitDate: 2025-01-05 15:56:14 +0000 > > devel/pcsc-lite: Update to 2.3.1 I had a involuntary reboot today and find that this version breaks my use of hardware tokens (feitian ePass2003 and yubikey) with ssh-agent. I can get things working again by reverting to 2.3.0 (and restarting pcscd). The impression I get is that it's some kind of permission problem. When I insert a token and run "opensc-tool -l" as a user there is no output; when I run as root it shows the token. I ran opensc-tool from ktrace and see it successfully connecting to pcscd but it does an ioctl and then it just gives up. I ran pcscd under gdb and see that polkit is denying my access: 00001487 [0x800e13500] ../src/auth.c:168:IsClientAuthorized() Process 3512 (user: 1020) is NOT authorized for action: access_pcsc 00000091 [0x800e13500] ../src/winscard_svc.c:357:ContextThread() Rejected unauthorized PC/SC client Indeed I can get things to work again if I run pcscd with --disable-polkit. Is this the right solution or am I missing polkit configuration? I found pkaction and it has something that looks reasonable: pkaction | fgrep pcsc org.debian.pcsc-lite.access_card org.debian.pcsc-lite.access_pcsc But I guess: /usr/local/share/polkit-1/actions/org.debian.pcsc-lite.policy is now missing something? Looks like IsClientAuthorized() is getting called with "access_pcsc" so I don't understand why it's not working. Suggestions? Craig