-
Notifications
You must be signed in to change notification settings - Fork 594
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
s/apparmor: expand apparmor prompting support checks #14448
Merged
olivercalder
merged 16 commits into
canonical:master
from
olivercalder:prompting-check-notify-socket-presence
Sep 12, 2024
Merged
Changes from all commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
ba92682
s/apparmor: expand apparmor prompting support checks
olivercalder d42676e
s/apparmor: add missing feature to mocked features list in prompting …
olivercalder df40331
features: remove superfluous test of apparmor function which has in-s…
olivercalder 0a31aed
Revert "tests/main/interfaces-snap-interfaces-requests-control: disab…
olivercalder e6dfc59
Revert "tests/main/apparmor-prompting-snapd-startup: account for vend…
olivercalder 20eb498
Revert "tests: account for prompting supported on >= 22.04 with inter…
olivercalder ead3eba
s/apparmor,tests: improve comments around apparmor prompting
olivercalder 9cda3e0
tests: add debug checks for prompting support
olivercalder 8416753
tests: make prompting-related tests work on any supported ubuntu system
olivercalder 4d45b15
s/apparmor: add test case when policy/notify/user file exists but doe…
olivercalder b3e525c
s/apparmor: adjust prompting unsupported reason error messages
olivercalder a7e43d8
s/apparmor: prompting support checks for permstable32_version >= 2
olivercalder 3babde3
s/apparmor: add TODO about using dirs instead of rootPath
olivercalder 0c4166a
o/c/configcore,s/apparmor: mock aa root path in prompting tests
olivercalder 22927fa
s/apparmor: trim whitespace from permstable32_version before parsing
olivercalder 93c6a23
s/apparmor: adjust prompting unsupported reason error messages to ref…
olivercalder File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
given we are revisiting this, what's the relation between permstable32 and permstable32_version, do we need to worry about the latter?
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.
JJ says the minimum version is 2. Technically 1 can work, but it has problems. I think we can add a check for version 2+, but the question is whether to include it in the apparmor kernel features probing, or to do a one-off check here (like we do for the socket presence).
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.
Per sync with Samuele, do this in the prompting support checks, rather than in the general apparmor kernel feature probing