[apparmor] [PATCH] 0/10 abstraction updates

Christian Boltz apparmor at cboltz.de
Thu Dec 23 21:28:44 GMT 2010


Am Donnerstag, 23. Dezember 2010 schrieb John Johansen:
[handling translated ~/Documents]
> a very much less sane way to handle it would a table of values loaded
> into the kernel and index by uid.  But this is pre-NAKed so if

I ACK the NAK ;-) - that sounds really insane.

> anyone can come up with other slightly less insane ways to handle it
> I'm all ears.

What about this:

Let the initscript
1) check which locales are installed
2) find out how ~/documents is named in each of those locales
3) do the same for other directories that have localized names
4) and then write it as variable to tunables/dirs-in-home
  (together with a note "auto-generated, don't edit")

performance tuning: cache the list of previously existing locales and 
compare it to the results of 1). If nothing changed, you don't need to 
do 2, 3 and 4.

If a user still has ~/documents and ~/Dokumente and really cares, he can 
tighten it with a user profile ;-)


Christian Boltz
> I forgot to mention: The default language will of course be English!
In UTF-8 or latin1? [> Christoph Thiel and Marcus Meissner]

More information about the AppArmor mailing list