Commit d62b05d7 authored by Christoph Honal's avatar Christoph Honal
Browse files

nixos/nfc-nci: Adjust pcscd system call hardening

parent 68d8aa3d
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -185,6 +185,11 @@ in
      "nxp-pn5xx"
    ];

    # libnfc-nci calls sched_setscheduler via pthread_setschedparam, which would be blocked by upstream SystemCallFilter=~@resources
    systemd.services.pcscd.serviceConfig.SystemCallFilter = lib.mkIf cfg.enableIFD [
      "sched_setscheduler"
    ];

    services.pcscd.readerConfigs = lib.mkIf cfg.enableIFD [
      ''
        FRIENDLYNAME "NFC NCI"