My patch would not work with older kernel then... But here it is. I believe the line: - bsize = size - (b - buffer); is not correct. In the first iteration of the loop, b==buffer, so bsize==size. So it is sending all the profiles in a single write() syscall. The second iteration will have write() return EEXIST, unless "--replace" is used. But in Ubuntu upstart scripts, "--replace" is always used.
** Patch added: "[PATCH] parser: fix binary load of multiple profiles in a single file" https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1317545/+attachment/4108210/+files/0001-parser-fix-binary-load-of-multiple-profiles-in-a-sin.patch -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1317545 Title: AppArmor: general protection fault: 0000 [#1] SMP To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1317545/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs