kernel compile failure
Quoted 4 lines
I patched a stock 2.4.20 kernel with the 2003011510 lsm and selinux patches from the NSA site. The compile fails right at the end with a linker error (.config attached):
<snip>
Quoted 6 lines
kernel/kernel.o(.text+0xbf34): In function `sys_acct':
: undefined reference to `security_acct'
make: *** [vmlinux] Error 1This config has worked on previous revisions of the patches. Ideas?
Yes, while back porting the changes from 2.5 to make LSM a configuration option, I missed a couple of instances where we need to #include <linux/security.h> to pick up the static inline function definitions. This was mentioned previously in
http://marc.theaimsgroup.com/?l=selinux&m=104284099029343&w=2 (and the next message in the thread, same problem if you enable quotas). You might want to check out a copy of the sourceforge CVS tree, since it has the patches that have been posted since the last public release already merged:
cvs -d:pserver:[email protected]:/cvsroot/selinux \
-z3 co nsa
--
Stephen Smalley, NSA
--
This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.