[PATCH] security/selinux/hooks.c:1898: error: `PER_CLEAR_ON_SETID' undeclared

From: Paweł Sikora
Date: Sun Jul 18 2004 - 07:26:58 EST


CC security/selinux/hooks.o
security/selinux/hooks.c: In function `selinux_bprm_apply_creds':
security/selinux/hooks.c:1898: error: `PER_CLEAR_ON_SETID' undeclared
(first use in this function)
security/selinux/hooks.c:1898: error: (Each undeclared identifier
is reported only once
security/selinux/hooks.c:1898: error: for each function it appears in.)

--
/* Copyright (C) 2003, SCO, Inc. This is valuable Intellectual Property. */

#define say(x) lie(x)
--- linux-2.6.8-rc2/security/selinux/hooks.c.orig 2004-07-18 11:56:07.000000000 +0200
+++ linux-2.6.8-rc2/security/selinux/hooks.c 2004-07-18 14:21:27.429622416 +0200
@@ -63,6 +63,7 @@
#include <net/ipv6.h>
#include <linux/hugetlb.h>
#include <linux/major.h>
+#include <linux/personality.h>

#include "avc.h"
#include "objsec.h"