-
Notifications
You must be signed in to change notification settings - Fork 75
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
PRO security isolation: apt_news #2794
Conversation
Jira: This PR is not related to a Jira item. (The PR title does not include a SC-#### reference) GitHub Issues: No GitHub issues are fixed by this PR. (No commits have Fixes: #### references) Launchpad Bugs: No Launchpad bugs are fixed by this PR. (No commits have LP: #### references) Documentation: The changes in this PR do not require documentation changes. 👍 this comment to confirm that this is correct. |
539fc07
to
b1ee21c
Compare
fb1c46f
to
f9befe3
Compare
77caeda
to
676ab8e
Compare
1362117
to
53fc62c
Compare
…pt_news to ubuntu_pro_apt_news
So, the #!/usr/bin/python3
import mock
import shutil
@mock.patch("os.path.isfile", return_value=True)
@mock.patch("builtins.open")
def mycopy(_fopen, m_isfile):
shutil.copy("/doesnotexist", "/tmp")
mycopy() |
431faf9
to
433afa4
Compare
433afa4
to
4869695
Compare
I updated |
Documentation PR: #2906 |
bionic started failing out of the blue. Did something in the bionic esm environment around this test change?
|
Most or all of the settings are defined there, and since that module doesn't import anything, this also avoids potential future dependencies.
5590710
to
77b4d75
Compare
Mantic failure:
Can't diagnose because we have no logs, which is because of #2902 |
bionic is the same failure as #2794 (comment), which is supposed to be fixed by #2897 according to #2794 (comment) |
@lucasmoura I added a new function to gather the apparmor logs, which also creates an |
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.
Why is this needed?
This is part of JIRA SD-1277 which aims to enable security features to existing Pro systemd services. The goal is to provide reasonable AppAmor and systemd security isolation configuration for the Pro systemd services.
There are multiple services to be tackled, and this PR is about apt-news.service, and tracked via JIRA SD-1450
Test Steps
This change relies mostly on the integration tests, but it can also be superficially tested manually.
Install
ubuntu-advantage-tools
, and runapt-get update
.. Observedmesg -wT
and confirm there are no apparmor DENIED messages tied to the profileubuntu_advantage_apt_news
, and that the apt-news service performs normally.Checklist
Does this PR require extra reviews?
Unsure, thinking.