Description of problem: When SELINUX is not selected, compiling kernel/auditsc.c will cause error because selinux_sid_to_string is not defined. This is because in include/linux/selinux.h selinux_sid_to_string is only defined when CONFIG_SECURITY_SELINUX is set. Version-Release number of selected component (if applicable): 2.6.18-92.1.6.el5 How reproducible: Steps to Reproduce: 1. recompile the kernel-2.6.18-92.1.6.el5.src.rpm without selecting SELINUX. 2. 3. Actual results: kernel/auditsc.c: In function 'audit_log_pid_context': kernel/auditsc.c:961: error: implicit declaration of function 'selinux_sid_to_string' make[1]: *** [kernel/auditsc.o] Error 1 make: *** [kernel] Error 2 make: *** Waiting for unfinished jobs.... Expected results: Additional info:
*** This bug has been marked as a duplicate of 452535 ***