various apparmor denials when using ubuntu-account-plugin template
| Affects | Status | Importance | Assigned to | Milestone | |
|---|---|---|---|---|---|
| | Canonical System Image |
Critical
|
David Barth | ||
| | Online Accounts setup for Ubuntu Touch |
Critical
|
Alberto Mardegan | ||
| | apparmor-easyprof-ubuntu (Ubuntu) |
Undecided
|
Unassigned | ||
| | click-reviewers-tools (Ubuntu) |
Low
|
Jamie Strandboge | ||
| | ubuntu-system-settings-online-accounts (Ubuntu) |
Undecided
|
Unassigned | ||
Bug Description
This is a new bug for the problems seen in bug #1219644. Specifically:
1. There is a denial to create this directory if it does not exist already:
Jun 24 17:02:55 ubuntu-phablet kernel: [44001.684473] type=1400 audit(143518337
2. If you create that directory, the next denial is not application specific (ie, it doesn't use the APP_ID):
Jun 24 17:12:00 ubuntu-phablet kernel: [44546.645041] type=1400 audit(143518392
3. The apparmor policy has rules for this:
owner @{HOME}
owner @{HOME}
but *not* for:
owner @{HOME}
owner @{HOME}
It is not clear if '3' will be fixed if '2' is or if the policy will need this added after '2' is fixed:
# Allow writes to application-
owner @{HOME}
owner @{HOME}
Related branches
- PS Jenkins bot: Approve (continuous-integration) on 2015-07-15
- David Barth (community): Approve on 2015-07-15
-
Diff: 150 lines (+77/-2)4 files modifiedonline-accounts-service/ui-proxy.cpp (+2/-1)
tests/online-accounts-service/data/com.ubuntu.test_confined.provider (+6/-0)
tests/online-accounts-service/tst_ui_proxy.cpp (+67/-0)
tests/online-accounts-service/tst_ui_proxy.pro (+2/-1)
| Alberto Mardegan (mardy) wrote : | #2 |
The reason why the loading page stays forever is probably this:
LaunchProcess: failed to execvp:
/usr/lib/
I'll check if some other rules are missing.
| Changed in ubuntu-system-settings-online-accounts: | |
| status: | New → In Progress |
| importance: | Undecided → Critical |
| assignee: | nobody → Alberto Mardegan (mardy) |
| Alberto Mardegan (mardy) wrote : | #3 |
So, with the fix for Online Accounts in the linked branch, save the attached file as /var/lib/
and then run
cd /var/lib/
sudo apparmor_parser -r click_com.
After that, the plugin should work.
The apparmor profile is the same profile from the original click package, plus:
1) The lines
# Allow writes to application-
owner @{HOME}
owner @{HOME}
2) The policy groups: "networking" and "webview" -- this need to be fixed by the app's author.
| Alberto Mardegan (mardy) wrote : | #4 |
There are still some warnings from apparmor, which appear to be harmless, though (maybe the "audio" policy group is missing?). See the attached file.
| Alberto Mardegan (mardy) wrote : | #5 |
BTW, it's my impression that the QML cache errors are not critical, and that the application would work even without any changes on our side, if the author added the "networking" and "webview" policy groups.
| Jamie Strandboge (jdstrand) wrote : | #6 |
Note, this is affecting the asana app: https:/
| Jamie Strandboge (jdstrand) wrote : | #7 |
Adding a click-reviewers
| Changed in click-reviewers-tools (Ubuntu): | |
| status: | New → In Progress |
| importance: | Undecided → Low |
| assignee: | nobody → Jamie Strandboge (jdstrand) |
| Jamie Strandboge (jdstrand) wrote : | #8 |
Jun 26 12:31:44 ubuntu-phablet kernel: [49381.194192] type=1400 audit(143531110
This won't be allowed and is probably the result of the plugin trying to write to stderr or stdout
Jun 26 12:31:48 ubuntu-phablet kernel: [49384.603714] type=1400 audit(143531110
Jun 26 12:31:48 ubuntu-phablet kernel: [49384.604447] type=1400 audit(143531110
Jun 26 12:31:48 ubuntu-phablet kernel: [49384.606461] type=1400 audit(143531110
Jun 26 12:31:48 ubuntu-phablet kernel: [49384.607102] type=1400 audit(143531110
Jun 26 12:31:48 ubuntu-phablet kernel: [49384.610154] type=1400 audit(143531110
Jun 26 12:31:48 ubuntu-phablet kernel: [49384.610337] type=1400 audit(143531110
These are all in the audio policy group. Why is this happening?
Jun 26 12:31:48 ubuntu-phablet kernel: [49384.774201] type=1400 audit(143531110
Jun 26 12:31:48 ubuntu-phablet kernel: [49384.774323] type=1400 audit(143531110
This will not be allowed by policy. I'll add an explicit deny rule to wily.
Jun 26 12:31:48 ubuntu-phablet kernel: [49384.900616] type=1400 audit(143531110
| Launchpad Janitor (janitor) wrote : | #9 |
This bug was fixed in the package click-reviewers
---------------
click-reviewers
* cr_security.py: verify required and allowed policy groups with the
ubuntu-
* cr_systemd.py: whitespace pep8 fixes for trusty to fix FTBFS in SDK
staging ppa
-- Jamie Strandboge <email address hidden> Fri, 26 Jun 2015 09:27:09 -0500
| Changed in click-reviewers-tools (Ubuntu): | |
| status: | In Progress → Fix Released |
| Launchpad Janitor (janitor) wrote : | #10 |
This bug was fixed in the package apparmor-
---------------
apparmor-
* ubuntu/
- allow access to QML cache
- explicitly deny access to /proc/[0-9]*/mounts and /dev/disk/by-label/
* hardware/
also allow access to kgsl-3d0.
-- Jamie Strandboge <email address hidden> Fri, 26 Jun 2015 10:47:37 -0500
| Changed in apparmor-easyprof-ubuntu (Ubuntu): | |
| status: | New → Fix Released |
| Jamie Strandboge (jdstrand) wrote : | #11 |
I uploaded apparmor-
IMPORTANT: we should *not* include the changes to hardware/ from 15.10.5 in the stable-
| Jamie Strandboge (jdstrand) wrote : | #12 |
FYI:
09:18 < rvr> jdstrand: Hi, I'm testing silo 11 and I found some issues with
09:18 < rvr> jdstrand: http://
09:19 < rvr> jdstrand: The popup is stuck loading the login page
09:19 < rvr> jdstrand: During installation, I downgraded to
09:20 < rvr> The one in the overlay PPA is 1.3.13
The contents of the paste are:
Jul 16 13:44:12 ubuntu-phablet kernel: [ 9861.024305]
Jul 16 13:59:35 ubuntu-phablet kernel: [ 353.348441]
Jul 16 13:59:57 ubuntu-phablet kernel: [ 375.564719]
Jul 16 13:59:57 ubuntu-phablet kernel: [ 375.565479]
Jul 16 13:59:58 ubuntu-phablet kernel: [ 375.705771]
Jul 16 13:59:58 ubuntu-phablet kernel: [ 375.708643]
...
The denial on /dev/tty is likely because it is trying to write to stderr. We can't allow read on /home/phablet/
| Jamie Strandboge (jdstrand) wrote : | #13 |
FYI:
10:35 < jdstrand> rvr: can you do: 'mkdir -p /home/phablet/
10:35 < rvr> jdstrand: Sure
10:38 < rvr> jdstrand: Jul 16 15:37:30 ubuntu-phablet kernel: [52.552819]
name="/
10:40 < jdstrand> rvr: ok-- that indicates two things-- one, the denial is not harmless and two, there is a bug in the silo because
/home/phablet/
| Jamie Strandboge (jdstrand) wrote : | #14 |
I should also mention that apparmor-
| Launchpad Janitor (janitor) wrote : | #15 |
This bug was fixed in the package ubuntu-
---------------
ubuntu-
[ Alberto Mardegan ]
* Inject the APP_ID into the child process's environment. (LP:
#1468792)
[ CI Train Bot ]
* New rebuild forced.
* Resync trunk.
-- CI Train Bot <email address hidden> Wed, 15 Jul 2015 11:13:52 +0000
| Changed in ubuntu-system-settings-online-accounts (Ubuntu): | |
| status: | New → Fix Released |
| Changed in canonical-devices-system-image: | |
| assignee: | nobody → David Barth (dbarth) |
| importance: | Undecided → Critical |
| milestone: | none → ww34-2015 |
| status: | New → Fix Released |
| Changed in ubuntu-system-settings-online-accounts: | |
| status: | In Progress → Fix Released |

Adding an apparmor- easyprof- ubuntu task for now, but depending on what Alberto finds, it may not need a fix.