Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 146201 Details for
Bug 223827
Kernel oops with non-MLS/MCS SELinux policy
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
Patch to 2.6.19 stable kernel
netlabel-selinux_mls_fix (text/plain), 1.26 KB, created by
Paul Moore
on 2007-01-22 17:22:36 UTC
(
hide
)
Description:
Patch to 2.6.19 stable kernel
Filename:
MIME Type:
Creator:
Paul Moore
Created:
2007-01-22 17:22:36 UTC
Size:
1.26 KB
patch
obsolete
>Subject: Fix an oops with NetLabel and non-MLS SELinux policy > >In the case where a user has configured NetLabel in the kernel but is not >using a SELinux policy with the MLS/MCS feature enabled there is a bug in >mls_export_cat() where a NULL pointer is used. The initial problem report and >discussion can be found here (this patch has been ACK'd by Stephen Smalley and > James Morris in the discussion thread below): > > * http://marc2.theaimsgroup.com/?t=116920302500004&r=1&w=2 > >This patch is specific to the 2.6.19.y kernel series as the mls_export_cat() >function has been replaced in the 2.6.20 kernel. > >Signed-off-by: Paul Moore <paul.moore@hp.com> >--- > security/selinux/ss/mls.c | 12 ++++++++---- > 1 file changed, 8 insertions(+), 4 deletions(-) > >Index: linux-2.6.19.y/security/selinux/ss/mls.c >=================================================================== >--- linux-2.6.19.y.orig/security/selinux/ss/mls.c >+++ linux-2.6.19.y/security/selinux/ss/mls.c >@@ -641,10 +641,14 @@ int mls_export_cat(const struct context > int rc = -EPERM; > > if (!selinux_mls_enabled) { >- *low = NULL; >- *low_len = 0; >- *high = NULL; >- *high_len = 0; >+ if (low != NULL) { >+ *low = NULL; >+ *low_len = 0; >+ } >+ if (high != NULL) { >+ *high = NULL; >+ *high_len = 0; >+ } > return 0; > } >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 223827
: 146201