[apparmor] [patch 09/11] mod_apparmor: add logging for AAHatName/AADefaultHatName policy misconfig

Christian Boltz apparmor at cboltz.de
Thu Jan 23 23:42:46 UTC 2014


Hello,

Am Donnerstag, 23. Januar 2014 schrieb Steve Beattie:
> It kind of points to a minor deficiency in aa_change_hatv()'s
> interface, in that you know you successfully changed to hat or not,
> but not which one.

That sounds like we should find a way to change that ;-)

Does aa_change_hatv internally know to which hat it switched?
If yes, I'd propose to add another function similar to aa_change_hatv 
that indicates the selected hat in its return value.

(aa_change_hat(2) says the return value is zero on success, so changing 
the return code of the existing function isn't a real option.)


Regards,

Christian Boltz
-- 
So... Hm... ich bin etwas aufgeschmissen.
How to troubleshoot without trouble?
[Ratti in fontlinge-devel]




More information about the AppArmor mailing list