New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
interfaces: add pcscd interface #12847
Conversation
Codecov Report
❗ Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more. @@ Coverage Diff @@
## master #12847 +/- ##
==========================================
+ Coverage 78.59% 78.62% +0.02%
==========================================
Files 990 992 +2
Lines 122664 122821 +157
==========================================
+ Hits 96410 96568 +158
+ Misses 20184 20182 -2
- Partials 6070 6071 +1
Flags with carried forward coverage won't be shown. Click here to find out more.
... and 15 files with indirect coverage changes 📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM for the simple purpose of this interface.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks good but needs a quick double check from Samuele for awareness and for ensuring the naming is consistent.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the name seems fine, comment about the summary
interfaces/builtin/pcscd.go
Outdated
package builtin | ||
|
||
const pcscdSummary = `allows access to socket for communication between | ||
PS/SC API library and PCSCD daemon.` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this should probably be more something like:
allows interacting with PCSD daemon (e.g. for the PS/SC API library)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, but please consider updating the summary as Samuele suggested.
Thanks for the suggestion, I incorporated the proposed change. |
* interfaces: Add pcscd interface * Add high-level test for interface 'pcscd'
To access smart cards under a snapped program (bug 1843392), we need to allow it to communicate with the reader drivers via the pcscd socket.
This has already been discussed with the security team as the comment #1 in the linked bug report describes.
To create this interface I simply copied jack1.go and changed the appropriate parts.