Bug 442245

Summary: Can't register LSM other than SELinux
Product: Red Hat Enterprise Linux 5 Reporter: Donato <d.capitella>
Component: kernelAssignee: Eric Paris <eparis>
Status: CLOSED NOTABUG QA Contact: Martin Jenner <mjenner>
Severity: medium Docs Contact:
Priority: low    
Version: 5.0CC: dzickus
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-06-16 21:44:08 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 Donato 2008-04-13 11:01:42 UTC
Description of problem:
I'm developing a Linux Security Module. When I try to load the module,
registering fails and SELinux complies that there's already a secondary module
active and won't let me stack my module. If I totally disable SELinux, The
system goes on and doesn't allow my to register my security module as neither as
primary or secondary. This has to be fixed, people should be allowed to load
security modules other than SELinux.

Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1. Write a basic module using the Linux Security Module API
2. Try to load ii into the kernel 
  
Actual results:
It won't be loaded; nor as a primary neither as a secondary module

Expected results:
The module should be loaded correctly and being alloed to enforce its policy on
the system.

Additional info:

Comment 1 Eric Paris 2008-04-24 18:25:31 UTC
SELinux only supports capabilities.  Period.  End of Story.  Will not change. 
Module stacking will not be implemented.

You may wish to look at the following patch which was implemented upstream to
allow for user selection of SMACK vs. SELinux

http://lwn.net/Articles/272585/

I want to remove the whole concept of 'secondary' modules as a general idea
since the ONLY module supported is capabilities why not just have everything
hook directly into capabilities and stop pretending that other secondary modules
are possible....


I see no bug here.  do whatever SMACK does.

Comment 2 Eric Paris 2008-06-16 21:44:08 UTC
Closing as not a bug for now.  If you better explain the issue I might be able
to help.