Merge lp:~canonical-platform-qa/qakit/appamor-utilities into lp:qakit
Proposed by
Heber Parrucci
Status: | Merged |
---|---|
Merged at revision: | 200 |
Proposed branch: | lp:~canonical-platform-qa/qakit/appamor-utilities |
Merge into: | lp:qakit |
Diff against target: |
156 lines (+146/-0) 2 files modified
qakit/apparmor/__init__.py (+18/-0) qakit/apparmor/apparmor_utils.py (+128/-0) |
To merge this branch: | bzr merge lp:~canonical-platform-qa/qakit/appamor-utilities |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Santiago Baldassin (community) | Approve | ||
Review via email: mp+309374@code.launchpad.net |
Commit message
adding apparmor utilities to update profiles with given rules.
update_profile: to update an apparmor profile/s
restore_profiles: to get back the original ones loaded in the system.
are_rules_present: to check if certain rules are present in a given profile.
Description of the change
Change contains utilities to update apparmor profiles with given rules.
We will need this to be able to run automated tests against snaps applications. The idea is that the tests call this in their setup before running the tests.
Utilities:
update_profile, are_rules_present, restore_profiles
To post a comment you must log in.
Code looks good to me