[apparmor] [PATCH] non-Linux library compilation
Steve Beattie
steve at nxnw.org
Mon May 2 20:14:16 UTC 2011
On Mon, May 02, 2011 at 01:05:18PM -0700, Kees Cook wrote:
> On Hurd and kfreebsd under Debian, I have disabled the build of the parser
> since things go extremely badly when capabilities disappear. If someone
> wants to work on it, I have some initial patch attempts, but it was getting
> too time-consuming, so I back-burnered the parser. A very small change was
> needed to get the libraries to build, and this is it.
>
> Description: Workaround non-Linux environments to build everything but the
> parser.
> Author: Kees Cook <kees at debian.org>
>
> Index: apparmor-debian/libraries/libapparmor/src/kernel_interface.c
> ===================================================================
> --- apparmor-debian.orig/libraries/libapparmor/src/kernel_interface.c 2011-05-01 19:21:58.060889264 -0700
> +++ apparmor-debian/libraries/libapparmor/src/kernel_interface.c 2011-05-01 19:22:20.491201437 -0700
> @@ -37,7 +37,11 @@
> int rc = -1;
> int fd, ret, ctlerr = 0;
> char *ctl = NULL;
> +#ifdef SYS_gettid
> pid_t tid = syscall(SYS_gettid);
> +#else
> + pid_t tid = getpid();
> +#endif
>
> if (!buf) {
> errno = EINVAL;
Acked-By: Steve Beattie <sbeattie at ubuntu.com>
--
Steve Beattie
<sbeattie at ubuntu.com>
http://NxNW.org/~steve/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <https://lists.ubuntu.com/archives/apparmor/attachments/20110502/31e3b493/attachment.pgp>
More information about the AppArmor
mailing list