[apparmor] [patch] Fix the value being set in nt_name when allowed path exist

Christian Boltz apparmor at cboltz.de
Tue Aug 26 10:51:04 UTC 2014


Hello,

Am Dienstag, 26. August 2014 schrieb Kshitij Gupta:
> This patch fixes a bug due to which a hash was incorrectly being set
> in nt_name instead of the entry when the allowed path existed. The
> fixes it so that path value is set in nt_name as expected.
> 
> === modified file 'utils/apparmor/aa.py'
> --- utils/apparmor/aa.py	2014-08-25 20:49:29 +0000
> +++ utils/apparmor/aa.py	2014-08-25 21:12:24 +0000
> @@ -1127,7 +1127,7 @@
>                          nt_name = None
>                          for entr in m:
>                              if
> aa[profile][hat]['allow']['path'].get(entr, False):
> -                                nt_name = aa[profile][hat]
> +                                nt_name = entr
>                                  break
>                          if to_name and to_name != nt_name:
>                              pass

Just for the records / ML archive:

I already sent an
    Acked-by: Christian Boltz <apparmor at cboltz.de>
for this patch on IRC yesterday.


Regards,

Christian Boltz
-- 
Erstes Gesetz WWW: 
 Du mögest trennen die Spinnen und Indianer von den Usern und jedem
 sein eigen Grund und Heim zuteilen auf das der eine nicht neidisch
 werde auf den anderen und begehre dessen Heim und Gut. *lach*
                                     [Thomas Templin in suse-linux]




More information about the AppArmor mailing list