Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
interfaces: put base policy fragments inside each interface #3464
Conversation
codecov-io
commented
Jun 9, 2017
•
Codecov Report
@@ Coverage Diff @@
## master #3464 +/- ##
=========================================
- Coverage 76.93% 76.84% -0.1%
=========================================
Files 378 378
Lines 26116 26217 +101
=========================================
+ Hits 20093 20147 +54
- Misses 4243 4290 +47
Partials 1780 1780
Continue to review full report at Codecov.
|
zyga
added some commits
Jun 6, 2017
jdstrand
approved these changes
Jun 20, 2017
Looks good. In addition to the review I compared the output with 'snap debug get-base-declaration' and it all looks fine.
As an aside, I was surprised that I needed 'sudo' when using 'snap debug get-base-declaration'-- there is nothing privileged there, the info is static and public.
stolowski
approved these changes
Jun 21, 2017
Looks good, thanks for these changes! Just one question about a regex, see below.
| + - app | ||
| + deny-connection: | ||
| + slot-attributes: | ||
| + name: .+ |
jdstrand
Jun 21, 2017
Contributor
It could be, but all it is really saying is that 'name' must be present. The interface slot code verifies this for us.
| - x11: | ||
| - allow-installation: | ||
| - slot-snap-type: | ||
| - - core |
stolowski
Jun 21, 2017
Contributor
I wasn't sure what is the real purpose of all these changes until I reached this... Very nice, it's great we get rid of this big blob :)
|
@jdstrand thank you for commenting, I think you are right but perhaps the nature of the debug endpoint is special enough to warrant this. All the debug interactions are done through one API endpoint. We could explore how to make specific actions require authentication but for now that is all-or-nothing for the debug endpoint. |
zyga commentedJun 9, 2017
This change completes the work towards making interface modules self-contained. Now each interface
can define a fragment of the base policy that applies to its plugs and slots.
Signed-off-by: Zygmunt Krynicki zygmunt.krynicki@canonical.com