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 303195 Details for
Bug 443481
kernel BUG at security/selinux/hooks.c:761 during NFS install
[?]
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]
change BUG_ON to safe handling if (!ss_initialized)
tmp.patch (text/plain), 1.05 KB, created by
Eric Paris
on 2008-04-21 19:59:59 UTC
(
hide
)
Description:
change BUG_ON to safe handling if (!ss_initialized)
Filename:
MIME Type:
Creator:
Eric Paris
Created:
2008-04-21 19:59:59 UTC
Size:
1.05 KB
patch
obsolete
> security/selinux/hooks.c | 15 ++++++++++++--- > 1 files changed, 12 insertions(+), 3 deletions(-) > >diff --git a/security/selinux/hooks.c b/security/selinux/hooks.c >index f9927f0..92c8910 100644 >--- a/security/selinux/hooks.c >+++ b/security/selinux/hooks.c >@@ -755,9 +755,18 @@ static void selinux_sb_clone_mnt_opts(const struct super_block *oldsb, > int set_context = (oldsbsec->flags & CONTEXT_MNT); > int set_rootcontext = (oldsbsec->flags & ROOTCONTEXT_MNT); > >- /* we can't error, we can't save the info, this shouldn't get called >- * this early in the boot process. */ >- BUG_ON(!ss_initialized); >+ /* >+ * if the parent was able to be mounted it clearly had no special lsm >+ * mount options. thus we can safely put this sb on the list and deal >+ * with it later >+ */ >+ if (!ss_initialized) { >+ spin_lock(&sb_security_lock); >+ if (list_empty(&newsbsec->list)) >+ list_add(&newsbsec->list, &superblock_security_head); >+ spin_unlock(&sb_security_lock); >+ return; >+ } > > /* how can we clone if the old one wasn't set up?? */ > BUG_ON(!oldsbsec->initialized);
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 443481
: 303195