2d7bee Fix pkcs11 and pcsc modules

3 files Authored by Manuel Fombuena 9 months ago, Committed by pvalena 9 months ago,
    Fix pkcs11 and pcsc modules
    
    pkcs11 and pcsc don't seem to have ever worked.
    
    In the case of pkcs11, the following install line is incorrect (note the dot before *):
    
    {"tls/$_arch/",tls/,"$_arch/",}"/cryptsetup/libcryptsetup-token-systemd-pkcs11.so.*"
    
    And it should be:
    
    {"tls/$_arch/",tls/,"$_arch/",}"/cryptsetup/libcryptsetup-token-systemd-pkcs11.so*"
    
    I opened a PR and it was merged a while ago: https://github.com/dracutdevs/dracut/pull/2540
    
    In the case of pcsc there are two problems.
    
    One, the installation file is missing /usr/share/p11-kit/modules/opensc.module and without that, you can't really do anything.
    
    Two, dracut doesn't include polkit and pcsc is compiled with it enabled by default. The option --disable-polkit was added to pcscd in 2.0, precisely to address this issue. It needs to be added to pcscd.service in the module for it to work on initramfs.
    
    I opened another PR which has been approved by 2 reviewers and merged into openSUSE: https://github.com/dracutdevs/dracut/pull/2547
    
    Signed-off-by: Manuel Fombuena <fombuena@outlook.com>
    
        
file modified
+15 -1