Confined scopes are using the wrong path for the writable directory
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
unity-scopes-api |
Fix Released
|
High
|
Unassigned | ||
unity-scopes-api (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
Utopic |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Confined scopes are trying to use the wrong path for their writable data directory:
Jan 1 20:24:13 ubuntu-phablet kernel: [ 203.538083] (1)[4915:
The runtime is trying to create the path:
$HOME/.
==
$HOME/.
which is not quite correct for confined scopes. They should actually be using:
$HOME/.
==
$HOME/.
The scope ID is made of two components, the APP_PKGNAME and the APP_APPNAME. Therefore it should not be used to determine the writable path.
Related branches
- PS Jenkins bot (community): Approve (continuous-integration)
- Pete Woods (community): Approve
-
Diff: 166 lines (+43/-53)5 files modifiedsrc/scopes/internal/RuntimeImpl.cpp (+29/-40)
test/gtest/scopes/internal/RuntimeImpl/CMakeLists.txt (+1/-0)
test/gtest/scopes/internal/RuntimeImpl/RuntimeImpl_test.cpp (+8/-12)
test/gtest/scopes/internal/RuntimeImpl/TestScope.ini.in (+1/-1)
test/gtest/scopes/internal/RuntimeImpl/TestScope_TestScope.ini.in (+4/-0)
description: | updated |
Changed in unity-scopes-api: | |
status: | New → Confirmed |
importance: | Undecided → Critical |
importance: | Critical → High |
tags: | added: application-confinement |
Changed in unity-scopes-api: | |
status: | Fix Committed → Fix Released |
Changed in unity-scopes-api (Ubuntu Utopic): | |
status: | New → Fix Released |
Changed in unity-scopes-api (Ubuntu): | |
status: | New → Fix Committed |
Changed in unity-scopes-api (Ubuntu): | |
status: | Fix Committed → Fix Released |
Hmmm... com.ubuntu. scopes. youtube_ youtube
How does this scope_id get into the run time in the first place?