Skip to contentSkip to conversation

Problems compiling selinux release (2003011510) for 2.4.20 kernel

DISCUSSION Stephen D. Smalley 1 participant 1 message Jan 17, 2003 SELinux security module

lore
Share & tools
lore
#0 lore raw
Quoted 3 lines

I was trying to compile the updated release (2003011510) for 2.4.20 and
2.5.58 kernels on RedHat 8.0 and using the same config got the following

error

Quoted 2 lines

for 2.4.20 kernel despite the fact that it went fine for 2.5.58 kernel.
Has anyone run into the same problem?

<snip>

Quoted 3 lines

kernel/kernel.o: In function `sys_acct':
kernel/kernel.o(.text+0xa3b9): undefined reference to `security_acct'
make: ** [vmlinux] Erro 1

Sorry, the attached patch (also committed to the sourceforge CVS tree) should fix this problem. Save it to ~/acct.patch, cd lsm-2.4, patch -p1 < ~/acct.patch, rebuild your kernel. Make sure that you've enabled the new CONFIG_SECURITY option (Enable different security models) in your kernel configuration.

--
Stephen Smalley, NSA
[email protected]

Index: lsm-2.4/kernel/acct.c
===================================================================
RCS file: /cvsroot/selinux/nsa/lsm-2.4/kernel/acct.c,v retrieving revision 1.1.1.3

kernel/acct.c +1 -1
diff -u -r1.1.1.3 acct.c
@@ -54,7 +54,7 @@
 #include <linux/smp_lock.h>
 #include <linux/file.h>
 #include <linux/tty.h>
-
+#include <linux/security.h>
 #include <asm/uaccess.h>
 
 /*