-
Notifications
You must be signed in to change notification settings - Fork 574
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
many: generate security profiles from component hooks (#13686)
* interfaces: add method to SnapAppSet for getting list of runnable entities * interfaces: replace references to hooks/apps in backends with usage of SnapAppSet.Runnables * interfaces: rename SecurityTagGlob to SecurityTagGlobs and make it handle component hooks * snap: add method for getting component hooks for a specific plug * interfaces: add component hooks to output of SecurityTagsForConnectedPlug * snapstate: add methods for getting components installed for the current and arbitrary revisions of a snap * o/ifacestate: properly set up SnapAppSets with components prior to passing them off to security backends * o/snapstate: create setup-profiles task when installing a component * many: add side info param to snaptest.MockComponent * many: fix failing tests caused by changes in rebase * snap: add ComponentHookSecurityTag for getting a component hook's security tag * interfaces: implement SecurityTagGlobs with snap.ComponentHookSecurityTag * interfaces: move some helper functions to helpers.go * o/snapstate: add functions that are useful when operating on component-related tasks * o/ifacestate: use functions from snapstate rather than local functions * i/apparmor: cleanup comment and whitespace * o/snapstate: replace some speculative code with TODOs for now * interfaces, o/ifacestate: remove Type from interfaces.Runnable and do not sort the result of SnapAppSet.Runnables() * o/snapstate: remove unused variable
- Loading branch information
1 parent
277fbc2
commit c1cf798
Showing
27 changed files
with
1,798 additions
and
142 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.