[apparmor] [RFC] handling XDG user directories
Jamie Strandboge
jamie at canonical.com
Mon Aug 5 23:42:41 UTC 2013
On 08/05/2013 06:26 PM, Seth Arnold wrote:
> On Mon, Aug 05, 2013 at 05:59:14PM -0500, Jamie Strandboge wrote:
>> I have written two tools that we may want to optionally ship[3]:
>> * apparmor-xdg-dirs-simple.py: this takes a locale as an argument and outputs
>> to stdout something suitable for dropping into /etc/apparmor.d/xdg-dirs.d.
>> [...]
>> * apparmor-xdg-dirs.py: this takes the output of 'locale -a' and outputs to
>> stdout something suitable for dropping into /etc/apparmor.d/xdg-dirs.d as
>> well, but tries to be a little smarter and only outputs unique translations,
>> skipping the 'C' locale (since the C locale dirs are presumed to already be
>> in /etc/apparmor.d/tunables/xdg-dirs). Eg, on an Ubuntu 13.10 system with
>> the en, fr and zn locales installed:
>
...
> Would we, as a distribution, want to hook this up in some automatic
> fashion to new locale creation? It feels like the polite thing to do,
> and admins may well welcome one fewer task to perform.
>
Yes that's the plan, though I'm not completely sure where yet-- my first guess
in Ubuntu would be adding a dpkg trigger to apparmor to run this on translation
installation, but I plan to ask around first for the best place. :)
--
Jamie Strandboge http://www.ubuntu.com/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 899 bytes
Desc: OpenPGP digital signature
URL: <https://lists.ubuntu.com/archives/apparmor/attachments/20130805/8b70120e/attachment-0001.pgp>
More information about the AppArmor
mailing list