From af345491c04da742e11d77c520375d5f8d314d86 Mon Sep 17 00:00:00 2001 From: Jakub Jelen Date: Thu, 15 Jul 2021 17:48:11 +0200 Subject: [PATCH] Drop downstream polkit policy (#1478345) This will use more restrictive from upstream preventing non-local users to access pcsc and preventing annonying prompts in remote sessions such as VNC --- org.debian.pcsc-lite.policy | 30 ------------------------------ pcsc-lite.spec | 5 ----- 2 files changed, 35 deletions(-) delete mode 100644 org.debian.pcsc-lite.policy diff --git a/org.debian.pcsc-lite.policy b/org.debian.pcsc-lite.policy deleted file mode 100644 index cbae505..0000000 --- a/org.debian.pcsc-lite.policy +++ /dev/null @@ -1,30 +0,0 @@ - - - - The PCSC-lite Project - http://pcsclite.alioth.debian.org/ - - - - Access to the PC/SC daemon - Authentication is required to access the PC/SC daemon - - auth_admin - auth_admin - yes - - - - - Access to the smart card - Authentication is required to access the smart card - - auth_admin - auth_admin - yes - - - - diff --git a/pcsc-lite.spec b/pcsc-lite.spec index 74e114a..9441c0b 100644 --- a/pcsc-lite.spec +++ b/pcsc-lite.spec @@ -8,7 +8,6 @@ URL: https://pcsclite.apdu.fr/ Source0: https://pcsclite.apdu.fr/files/%{name}-%{version}.tar.bz2 Source1: https://pcsclite.apdu.fr/files/%{name}-%{version}.tar.bz2.asc Source2: gpgkey-F5E11B9FFE911146F41D953D78A1B4DFE8F9C57E.gpg -Source3: org.debian.pcsc-lite.policy Patch1: pcsc-lite-1.9.1-maxreaders.patch BuildRequires: make @@ -95,10 +94,6 @@ pathfix.py -pni "%{__python3} %{py3_shbang_opts}" src/spy/pcsc-spy %install %make_install -rm -f $RPM_BUILD_ROOT%{_datadir}/polkit-1/actions/org.debian.pcsc-lite.policy - -mkdir -p $RPM_BUILD_ROOT%{_datadir}/polkit-1/actions/ -install -p -m 644 %{SOURCE3} $RPM_BUILD_ROOT%{_datadir}/polkit-1/actions/ # Create empty directories mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/reader.conf.d