Re: [apparmor] [patch] Fix aa-mergeprof crash with files containing multiple profiles

2016-02-11 Thread Kshitij Gupta
Hello, On Sat, Dec 26, 2015 at 10:06 PM, Christian Boltz wrote: > Hello, > > if a profile file contains multiple profiles, aa-mergeprof crashes on > saving in write_profile() because the second profile in the file is not > listed in 'changed'. > > This patch first checks if

Re: [apparmor] [patch] Fix aa-mergeprof crash with files containing multiple profiles

2016-02-11 Thread Christian Boltz
Hello, Am Freitag, 12. Februar 2016, 03:26:36 CET schrieb Kshitij Gupta: > On Sat, Dec 26, 2015, Christian Boltz wrote: > > if a profile file contains multiple profiles, aa-mergeprof crashes > > on > > saving in write_profile() because the second profile in the file is > >

[apparmor] [patch] Fix aa-mergeprof crash with files containing multiple profiles

2015-12-26 Thread Christian Boltz
Hello, if a profile file contains multiple profiles, aa-mergeprof crashes on saving in write_profile() because the second profile in the file is not listed in 'changed'. This patch first checks if 'changed' contains the profile before pop()ing it. Reproducer: copy utils/test/cleanprof_test.in