TrustStoreModel fails to expose application name for non-click app
| Affects | Status | Importance | Assigned to | Milestone | |
|---|---|---|---|---|---|
| | Canonical System Image |
High
|
Unassigned | ||
| | ubuntu-system-settings (Ubuntu) |
High
|
Unassigned | ||
Bug Description
I’m in the process of fixing bug #1356516 by adding an apparmor profile under which webbrowser-app will be run.
This works well and I now get a system prompt the first time the a page in the browser requests access to the location, as expected.
After accepting, the contents of the corresponding trust store DB look like this:
$ sqlite3 ~/.local/
sqlite> select * from requests;
Id|
1|webbrowse
However when I go to the Location page under Security in system settings, the corresponding list item has an empty label. Looking at the code in plugins/
Related branches
- PS Jenkins bot: Needs Fixing (continuous-integration) on 2015-10-01
- Olivier Tilloy (community): Approve on 2015-10-01
- Paweł Stołowski (community): Approve on 2015-09-29
- Ubuntu Touch System Settings: Pending requested 2015-09-29
-
Diff: 16 lines (+6/-0)1 file modifiedplugins/security-privacy/trust-store-model.cpp (+6/-0)
- PS Jenkins bot: Needs Fixing (continuous-integration) on 2015-10-01
- Ubuntu Touch System Settings: Pending requested 2015-10-01
-
Diff: 112 lines (+25/-21)4 files modifieddebian/control (+1/-0)
plugins/security-privacy/CMakeLists.txt (+3/-0)
plugins/security-privacy/trust-store-model.cpp (+18/-19)
tests/plugins/security-privacy/CMakeLists.txt (+3/-2)
| Sebastien Bacher (seb128) wrote : | #1 |
| Changed in ubuntu-system-settings (Ubuntu): | |
| importance: | Undecided → High |
| status: | New → In Progress |
| Olivier Tilloy (osomon) wrote : | #2 |
Thanks Sébastien, silo 3 fixes the issue indeed.
| Ken VanDine (ken-vandine) wrote : | #3 |
I was trying to test the fix for this in silo 49 and ran into a different problem. I never get a record for webbrowser-app added to the database. I opened the HERE maps webapp, which prompted me for permission to use the location service, which I granted. Then I went to maps.google.com in the browser, and got prompted to access location service, which I granted and was able to see my location on the map. However, the contents of the trust db didn't include webbrowser-app.
select * from requests;
1|com.nokia.
And sure enough, restarting the browser and going to maps.google.com, I was prompted again. Seems to be allowing it, but not storing it.
| Olivier Tilloy (osomon) wrote : | #4 |
That’s because the trust store currently whitelists unconfined applications. The prompt you’re getting is from the browser itself, and you’ll get one per domain. The browser should remember your decision, but it doesn’t (that’s a known issue: bug #1425143).
If you test with silo 59 (i.e. browser confined), you will get the system prompt once for webbrowser-app, and it should be added to the trust store’s db.
| Changed in canonical-devices-system-image: | |
| importance: | Undecided → High |
| milestone: | none → ww40-2015 |
| Changed in canonical-devices-system-image: | |
| status: | New → In Progress |
| Jean-Baptiste Lallement (jibel) wrote : | #5 |
fixed in
ubuntu-
.
[ Sebastien Bacher ]
* [hospot] include cmakefile hack to get files listed in qtcreator
* [security-privacy] use the system location as well to look for trust
store items, that's needed at least for unity8-dash which is not
distributed as a click and doesn't a .local entry (LP: #1501428)
* [sound] don't display silent mode warnings, sounds should just be
played when user selected (LP: #1391502)
| Changed in canonical-devices-system-image: | |
| status: | In Progress → Fix Committed |
| Launchpad Janitor (janitor) wrote : | #6 |
This bug was fixed in the package ubuntu-
---------------
ubuntu-
[ Sebastien Bacher ]
* [hospot] include cmakefile hack to get files listed in qtcreator
* [security-privacy] use the system location as well to look for trust
store items, that's needed at least for unity8-dash which is not
distributed as a click and doesn't a .local entry (LP: #1501428)
* [sound] don't display silent mode warnings, sounds should just be
played when user selected (LP: #1391502)
[ jonas-drange ]
* [phone] encode numbers before passing them to url-dispatcher (LP:
#1496845)
-- Ken VanDine <email address hidden> Fri, 02 Oct 2015 17:52:49 +0000
| Changed in ubuntu-system-settings (Ubuntu): | |
| status: | In Progress → Fix Released |
| Changed in canonical-devices-system-image: | |
| status: | Fix Committed → Fix Released |


Thanks, did you try the settings version in silo 003, it should fix that issue... /code.launchpad .net/~seb128/ ubuntu- system- settings/ location- desktop- usr/+merge/ 272711)
(https:/