touch-packages team mailing list archive
-
touch-packages team
-
Mailing list archive
-
Message #33701
[Bug 1391930] Re: Need a way for applications to ask permission to read/write in pictures/videos folders on SD card
Per discussions on ubuntu-phone@ (https://lists.launchpad.net/ubuntu-
phone/msg10456.html), the directory structure for these global
directories is:
/media/$user/$label/Pictures
/media/$user/$label/Music
/media/$user/$label/Videos
'$label' is confirmed to not allow '/' in the name. Because the
directories may be on a vfat filesystem, we want the policy to be able
to handle case-insensitive names.
As such, we'll adjust the policy groups accordingly to do things like this:
# SD card: /media/<user>/<label>/...
owner /media/*/*/[Mm][Uu][Ss][Ii][Cc]/ r,
owner /media/*/*/[Mm][Uu][Ss][Ii][Cc]/** rwk,
# SD card: /media/<user>/<label>/...
owner /media/*/*/[Pp][Ii][Cc][Tt][Uu][Rr][Ee][Ss]/ r,
owner /media/*/*/[Pp][Ii][Cc][Tt][Uu][Rr][Ee][Ss]/** rwk,
# SD card: /media/<user>/<label>/...
owner /media/*/*/[Vv][Ii][Dd][Ee][Oo][Ss]/ r,
owner /media/*/*/[Vv][Ii][Dd][Ee][Oo][Ss]/** rwk,
IMPORTANT: the policy will not allow creating these directories (just
like it doesn't for the ones in ~), so something else will have to
create them.
--
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to apparmor-easyprof-ubuntu
in Ubuntu.
https://bugs.launchpad.net/bugs/1391930
Title:
Need a way for applications to ask permission to read/write in
pictures/videos folders on SD card
Status in “apparmor-easyprof-ubuntu” package in Ubuntu:
In Progress
Status in “apparmor-easyprof-ubuntu” source package in Utopic:
In Progress
Status in “apparmor-easyprof-ubuntu” source package in Vivid:
In Progress
Status in “apparmor-easyprof-ubuntu” package in Ubuntu RTM:
New
Bug description:
The camera and the gallery app today are authorized to read/write in /home/$USER/Pictures and /home/$USER/Videos.
Now they also need to be able to read/write in the similar directories of the SD card, for example:
- /media/phablet/064a-7494/Pictures
- /media/phablet/064a-7494/Videos
As a side note, we are using the following API in applications to retrieve the path (e.g. /home/phablet/Pictures):
http://qt-project.org/doc/qt-5/qstandardpaths.html#writableLocation
To retrieve the similar path on the SD card we are considering using a
combination of that to guess the directory name (Pictures)
concatenated with the value of http://doc-snapshot.qt-
project.org/qt5-5.4/qstorageinfo.html#rootPath
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/apparmor-easyprof-ubuntu/+bug/1391930/+subscriptions
References