[apparmor] Fwd: Bug#760378: apparmor: FTBFS on x32 due to use of sysctl
Seth Arnold
seth.arnold at canonical.com
Thu Sep 11 01:34:59 UTC 2014
On Wed, Sep 10, 2014 at 06:22:45PM -0700, Steve Beattie wrote:
> On Tue, Sep 09, 2014 at 08:21:00PM -0700, Seth Arnold wrote:
> > Thanks for forwarding this along; the #include <sys/sysctl.h> dates from
> > the ancient times, probably Linux 2.0 or 2.2 days.
> >
> > The attached patch removes the header unconditionally; the parser builds
> > and passes "make check USE_SYSTEM=1" on my Ubuntu 14.04 LTS laptop.
> >
> > I propose this patch for trunk:
> >
> > Signed-off-by: Seth Arnold <seth.arnold at canonical.com>
> >
> > === modified file 'parser/parser_main.c'
> > --- parser/parser_main.c 2014-09-03 20:22:26 +0000
> > +++ parser/parser_main.c 2014-09-10 03:06:44 +0000
> > @@ -35,7 +35,6 @@
> >
> > #include <unistd.h>
> > #include <limits.h>
> > -#include <sys/sysctl.h>
> > #include <sys/types.h>
> > #include <sys/stat.h>
> > #include <sys/apparmor.h>
>
> Seeing that the debian apparmor packaging team pulled in this patch into
> their 2.8 based package, I'm nominating this for the 2.8 branch.
Makes sense.
> I should also explain that we have another use of sysctl() in the
> regression tests, but until the only kernels we support are ones
> that have dropped sysctl() entirely, we should keep that in place
> to continue ensuring that we mediate it (as well as the /proc/sys/
> based implementation).
Completely agreed that the tests are another matter. (Though they may need
updating to run only on !x32 platforms.)
Thanks
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 473 bytes
Desc: Digital signature
URL: <https://lists.ubuntu.com/archives/apparmor/attachments/20140910/064a9e32/attachment.pgp>
More information about the AppArmor
mailing list