apparmor denial to cache for confined scopes

Bug #1376416 reported by Jamie Strandboge
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Canonical System Image
Fix Released
Undecided
Unassigned
unity-scopes-api (Ubuntu)
Fix Released
High
Michi Henning

Bug Description

In a recent test run, the following denial was observed:
Oct 1 18:13:05 ubuntu-phablet kernel: [ 130.968843] (3)[6618:com.ubuntu.yelp]type=1400 audit(1412187185.260:127): apparmor="DENIED" operation="mkdir" profile="com.ubuntu.yelp_yelp_1.0.26" name="/home/phablet/.local/share/unity-scopes/com.ubuntu.yelp_yelp/" pid=6618 comm="com.ubuntu.yelp" requested_mask="c" denied_mask="c" fsuid=32011 ouid=32011

Yelp is using the wrong directory. It is using:
@{HOME}/.local/share/unity-scopes/@{APP_PKGNAME}_@{APP_APPNAME}

but apparmor policy says to use:
@{HOME}/.local/share/unity-scopes/leaf-net/@{APP_PKGNAME}

Note: this is a different bug than the one dealing with XDG_RUNTIME_DIR paths, where we do use @{APP_APPNAME}.

Adding rtm14 tag with High priority since this seems to affect scopes in the store. Please readjust as necessary.

Related branches

Thomas Strehl (strehl-t)
Changed in unity-scopes-api (Ubuntu):
assignee: nobody → Pawel Stolowski (stolowski)
tags: added: touch-2014-10-16
Changed in unity-scopes-api (Ubuntu):
assignee: Pawel Stolowski (stolowski) → Michi Henning (michihenning)
Changed in unity-scopes-api (Ubuntu):
assignee: Michi Henning (michihenning) → nobody
Changed in unity-scopes-api (Ubuntu):
assignee: nobody → Michi Henning (michihenning)
Revision history for this message
Michi Henning (michihenning) wrote :

This should be fixed now. The location/name for the dir were incorrect. The failure was benign for unconfined scopes, but prevented access to the cache dir for confined scopes.

Changed in unity-scopes-api (Ubuntu):
status: New → Fix Committed
Changed in unity-scopes-api (Ubuntu):
status: Fix Committed → In Progress
Changed in unity-scopes-api (Ubuntu):
status: In Progress → Fix Committed
Changed in unity-scopes-api (Ubuntu):
status: Fix Committed → Fix Released
tags: added: ota-1
Changed in canonical-devices-system-image:
status: New → In Progress
summary: - apparmor denial for yelp
+ apparmor denial to cache for confined scopes
Revision history for this message
Pete Woods (pete-woods) wrote :

This bug was about syslog noise (this is where AppArmor logs denials, etc)

Changed in canonical-devices-system-image:
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.