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
This commit is contained in:
parent
cc2e03558c
commit
af345491c0
@ -1,30 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<!DOCTYPE policyconfig PUBLIC
|
|
||||||
"-//freedesktop//DTD PolicyKit Policy Configuration 1.0//EN"
|
|
||||||
"http://www.freedesktop.org/standards/PolicyKit/1.0/policyconfig.dtd">
|
|
||||||
<policyconfig>
|
|
||||||
<vendor>The PCSC-lite Project</vendor>
|
|
||||||
<vendor_url>http://pcsclite.alioth.debian.org/</vendor_url>
|
|
||||||
<!-- <icon_name>smart-card</icon_name> -->
|
|
||||||
|
|
||||||
<action id="org.debian.pcsc-lite.access_pcsc">
|
|
||||||
<description>Access to the PC/SC daemon</description>
|
|
||||||
<message>Authentication is required to access the PC/SC daemon</message>
|
|
||||||
<defaults>
|
|
||||||
<allow_any>auth_admin</allow_any>
|
|
||||||
<allow_inactive>auth_admin</allow_inactive>
|
|
||||||
<allow_active>yes</allow_active>
|
|
||||||
</defaults>
|
|
||||||
</action>
|
|
||||||
|
|
||||||
<action id="org.debian.pcsc-lite.access_card">
|
|
||||||
<description>Access to the smart card</description>
|
|
||||||
<message>Authentication is required to access the smart card</message>
|
|
||||||
<defaults>
|
|
||||||
<allow_any>auth_admin</allow_any>
|
|
||||||
<allow_inactive>auth_admin</allow_inactive>
|
|
||||||
<allow_active>yes</allow_active>
|
|
||||||
</defaults>
|
|
||||||
</action>
|
|
||||||
|
|
||||||
</policyconfig>
|
|
@ -8,7 +8,6 @@ URL: https://pcsclite.apdu.fr/
|
|||||||
Source0: https://pcsclite.apdu.fr/files/%{name}-%{version}.tar.bz2
|
Source0: https://pcsclite.apdu.fr/files/%{name}-%{version}.tar.bz2
|
||||||
Source1: https://pcsclite.apdu.fr/files/%{name}-%{version}.tar.bz2.asc
|
Source1: https://pcsclite.apdu.fr/files/%{name}-%{version}.tar.bz2.asc
|
||||||
Source2: gpgkey-F5E11B9FFE911146F41D953D78A1B4DFE8F9C57E.gpg
|
Source2: gpgkey-F5E11B9FFE911146F41D953D78A1B4DFE8F9C57E.gpg
|
||||||
Source3: org.debian.pcsc-lite.policy
|
|
||||||
Patch1: pcsc-lite-1.9.1-maxreaders.patch
|
Patch1: pcsc-lite-1.9.1-maxreaders.patch
|
||||||
|
|
||||||
BuildRequires: make
|
BuildRequires: make
|
||||||
@ -95,10 +94,6 @@ pathfix.py -pni "%{__python3} %{py3_shbang_opts}" src/spy/pcsc-spy
|
|||||||
|
|
||||||
%install
|
%install
|
||||||
%make_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
|
# Create empty directories
|
||||||
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/reader.conf.d
|
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/reader.conf.d
|
||||||
|
Loading…
Reference in New Issue
Block a user