Support policy query interface for file
Bug #1381713 reported by
Jamie Strandboge
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
AppArmor |
Triaged
|
High
|
Unassigned | ||
Thumbnailer |
Fix Released
|
Undecided
|
James Henstridge | ||
apparmor (Ubuntu) |
Fix Committed
|
High
|
Unassigned | ||
apparmor (Ubuntu RTM) |
New
|
Undecided
|
Unassigned | ||
media-hub (Ubuntu) |
Triaged
|
Medium
|
Unassigned | ||
media-hub (Ubuntu RTM) |
Triaged
|
Medium
|
Unassigned | ||
mediascanner2 (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
This bug tracks the work needed to support querying if a label can access a file. This is particularly useful with trusted helpers where an application requests access to a file and the trusted helper does something with it. For example, on Ubuntu when an app wants to play a music file, it (eventually) goes through the media-hub service. The media-hub service should be able to query if the app's policy has access to the file.
Related branches
lp://staging/~jamesh/thumbnailer/dbus-aa-credentials
- Michi Henning (community): Approve
- PS Jenkins bot (community): Approve (continuous-integration)
-
Diff: 526 lines (+324/-7)11 files modifiedCMakeLists.txt (+1/-0)
debian/control (+1/-0)
src/service/CMakeLists.txt (+8/-2)
src/service/bus.xml (+9/-0)
src/service/credentialscache.cpp (+179/-0)
src/service/credentialscache.h (+81/-0)
src/service/dbusinterface.cpp (+16/-3)
src/service/dbusinterface.h (+4/-0)
src/service/handler.cpp (+21/-1)
src/service/handler.h (+3/-0)
tests/qml/CMakeLists.txt (+1/-1)
lp://staging/~jamesh/thumbnailer/use-aa-query-label
- PS Jenkins bot (community): Approve (continuous-integration)
- Michi Henning (community): Approve
-
Diff: 1060 lines (+321/-200)22 files modifiedCMakeLists.txt (+1/-0)
include/internal/check_access.h (+42/-0)
include/internal/thumbnailer.h (+4/-1)
plugins/Ubuntu/Thumbnailer.0.1/CMakeLists.txt (+0/-1)
plugins/Ubuntu/Thumbnailer.0.1/thumbnailgenerator.cpp (+1/-15)
src/CMakeLists.txt (+2/-0)
src/check_access.cpp (+83/-0)
src/service/CMakeLists.txt (+1/-3)
src/service/dbusinterface.cpp (+1/-2)
src/service/dbusinterface.h (+0/-1)
src/service/dbusinterface.xml (+1/-2)
src/service/handler.cpp (+1/-1)
src/thumbnailer-admin/get_local_thumbnail.cpp (+1/-13)
src/thumbnailer.cpp (+41/-26)
tests/CMakeLists.txt (+1/-0)
tests/check_access/CMakeLists.txt (+3/-0)
tests/check_access/check_access_test.cpp (+64/-0)
tests/dbus/dbus_test.cpp (+5/-42)
tests/qml/tst_albumart.qml (+4/-12)
tests/testsetup.h.in (+1/-1)
tests/thumbnailer-admin/thumbnailer-admin_test.cpp (+2/-2)
tests/thumbnailer/thumbnailer_test.cpp (+62/-78)
lp://staging/~jamesh/thumbnailer/aa-access-fix
- PS Jenkins bot (community): Approve (continuous-integration)
- Michi Henning (community): Approve
-
Diff: 315 lines (+50/-44)4 files modifiedinclude/internal/thumbnailer.h (+3/-2)
src/service/handler.cpp (+10/-1)
src/thumbnailer.cpp (+19/-18)
tests/thumbnailer/thumbnailer_test.cpp (+18/-23)
Changed in apparmor (Ubuntu): | |
importance: | Undecided → High |
status: | New → Confirmed |
Changed in thumbnailer: | |
status: | In Progress → Fix Committed |
Changed in thumbnailer: | |
status: | Fix Committed → Fix Released |
affects: | mediascanner2 → mediascanner2 (Ubuntu) |
Changed in mediascanner2 (Ubuntu): | |
status: | New → Confirmed |
no longer affects: | media-hub |
Changed in media-hub (Ubuntu): | |
status: | New → Triaged |
Changed in media-hub (Ubuntu RTM): | |
status: | New → Triaged |
Changed in media-hub (Ubuntu): | |
importance: | Undecided → Medium |
Changed in media-hub (Ubuntu RTM): | |
importance: | Undecided → Medium |
Changed in apparmor (Ubuntu): | |
assignee: | nobody → Michael (pinky999) |
Changed in apparmor (Ubuntu RTM): | |
assignee: | nobody → Michael (pinky999) |
Changed in media-hub (Ubuntu RTM): | |
assignee: | nobody → Michael (pinky999) |
Changed in apparmor (Ubuntu): | |
assignee: | Michael (pinky999) → nobody |
Changed in apparmor (Ubuntu RTM): | |
assignee: | Michael (pinky999) → nobody |
Changed in media-hub (Ubuntu RTM): | |
assignee: | Michael (pinky999) → nobody |
To post a comment you must log in.
This ability was introduced in the utopic kernel.