Note: This is a beta release of Red Hat Bugzilla 5.0. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Also email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback here.
Bug 453715 - selinux_sid_to_string not defined when SELINUX is not selected
Summary: selinux_sid_to_string not defined when SELINUX is not selected
Keywords:
Status: CLOSED DUPLICATE of bug 452535
Alias: None
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: kernel
Version: 5.4
Hardware: All
OS: Linux
low
low
Target Milestone: rc
: ---
Assignee: Eric Paris
QA Contact: Martin Jenner
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2008-07-02 07:50 UTC by Simon Xu
Modified: 2008-07-06 14:40 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2008-07-06 14:40:52 UTC


Attachments (Terms of Use)

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 ***


Note You need to log in before you can comment on or make changes to this bug.