[apparmor] [PATCH] Fix: segfault when processing directories
John Johansen
john.johansen at canonical.com
Fri Jan 15 01:26:06 UTC 2016
On 01/14/2016 04:55 PM, Seth Arnold wrote:
> On Thu, Jan 14, 2016 at 04:46:36PM -0800, John Johansen wrote:
>> Patch -r 2952 switched over to using the library kernel interface, and
>> added a kernel_interface parameter to the dir_cb struct, that is
>> used to process directories.
>>
>> Unfortunately kernel_interface parameter of the dir_cb struct is not being
>> properly initialized resulting in odd failures and sefaults when the parser
>> is processing directories.
>>
>> Signed-off-by: John Johansen <john.johansen at canonical.com>
>
> Acked-by: Seth Arnold <seth.arnold at canonical.com>
>
> It might also be nice to add;
>
> memset(&cb_data, 0, sizeof(cb_data));
>
done, thanks
More information about the AppArmor
mailing list