Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
For bugs related to Red Hat Enterprise Linux 5 product line. The current stable release is 5.10. For Red Hat Enterprise Linux 6 and above, please visit Red Hat JIRA https://issues.redhat.com/secure/CreateIssue!default.jspa?pid=12332745 to report new issues.

Bug 453715

Summary: selinux_sid_to_string not defined when SELINUX is not selected
Product: Red Hat Enterprise Linux 5 Reporter: Simon Xu <hxunix>
Component: kernelAssignee: Eric Paris <eparis>
Status: CLOSED DUPLICATE QA Contact: Martin Jenner <mjenner>
Severity: low Docs Contact:
Priority: low    
Version: 5.4   
Target Milestone: rc   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2008-07-06 14:40:52 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Simon Xu 2008-07-02 07:50:33 UTC
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:

Comment 1 Eric Paris 2008-07-06 14:40:52 UTC

*** This bug has been marked as a duplicate of 452535 ***