'$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,
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 $user/$ label/Music $user/$ label/Videos
/media/
/media/
'$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: <user>/ <label> /... */*/[Mm] [Uu][Ss] [Ii][Cc] / r, */*/[Mm] [Uu][Ss] [Ii][Cc] /** rwk,
# SD card: /media/
owner /media/
owner /media/
# SD card: /media/ <user>/ <label> /... */*/[Pp] [Ii][Cc] [Tt][Uu] [Rr][Ee] [Ss]/ r, */*/[Pp] [Ii][Cc] [Tt][Uu] [Rr][Ee] [Ss]/** rwk,
owner /media/
owner /media/
# SD card: /media/ <user>/ <label> /... */*/[Vv] [Ii][Dd] [Ee][Oo] [Ss]/ r, */*/[Vv] [Ii][Dd] [Ee][Oo] [Ss]/** rwk,
owner /media/
owner /media/
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.