Skip to content

Commit

Permalink
Add comments about polkit support
Browse files Browse the repository at this point in the history
For now, only GNU/Linux and FreeBSD are supported. Patches are welcome
for other platforms.
  • Loading branch information
LudovicRousseau committed Dec 28, 2024
1 parent 881c287 commit 4e5bb43
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
9 changes: 7 additions & 2 deletions doc/README.polkit
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
When pcsc-lite is compiled using the --enable-polkit option then
polkit will be used to control access to the pcsc-lite daemon.
By default pcsc-lite will use polkit to control access to the pcsc-lite
daemon.

For now, only GNU/Linux and FreeBSD are supported. Patches are welcome
for other platforms.
Configure pcsc-lite with -Dpolkit=false if polkit is not available for
your platform.

That allows more fine grained access control to smart cards that
is tied to the system processes rather than solely depending on
Expand Down
2 changes: 2 additions & 0 deletions src/auth.c
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,8 @@ unsigned IsClientAuthorized(int socket, const char* action, const char* reader)

#else

/* Do not enable polkit if it not yet supported on your system.
* Patches are welcome. */
#error polkit is enabled, but no socket cred implementation for this platform

#endif
Expand Down

0 comments on commit 4e5bb43

Please sign in to comment.