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 207091 Details for
Bug 306901
pam_namespace does not work when SELinux is not available
[?]
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]
Updated patch
pam-0.99.7.1-namespace-nofail-without-selinux.patch (text/plain), 1.13 KB, created by
Jan "Yenya" Kasprzak
on 2007-09-26 13:22:45 UTC
(
hide
)
Description:
Updated patch
Filename:
MIME Type:
Creator:
Jan "Yenya" Kasprzak
Created:
2007-09-26 13:22:45 UTC
Size:
1.13 KB
patch
obsolete
>--- Linux-PAM-0.99.7.1/modules/pam_namespace/pam_namespace.c.nofail-without-selinux 2007-09-26 14:44:02.000000000 +0200 >+++ Linux-PAM-0.99.7.1/modules/pam_namespace/pam_namespace.c 2007-09-26 15:20:47.000000000 +0200 >@@ -592,9 +592,6 @@ > #ifdef WITH_SELINUX > *i_context = NULL; > *origcon = NULL; >- if ((rc=form_context(polyptr, i_context, origcon, idata)) != PAM_SUCCESS) { >- return rc; >- } > #endif > > rc = PAM_SESSION_ERR; >@@ -617,6 +614,13 @@ > #ifdef WITH_SELINUX > case LEVEL: > case CONTEXT: >+ { >+ int rc1; >+ if ((rc1=form_context(polyptr, i_context, origcon, idata)) >+ != PAM_SUCCESS) >+ return rc1; >+ } >+ > if (selinux_trans_to_raw_context(*i_context, &rawcon) < 0) { > pam_syslog(idata->pamh, LOG_ERR, "Error translating directory context"); > goto fail; >@@ -666,10 +670,14 @@ > #endif > if (rc != PAM_SUCCESS) { > #ifdef WITH_SELINUX >- freecon(*i_context); >- *i_context = NULL; >- freecon(*origcon); >- *origcon = NULL; >+ if (*i_context) { >+ freecon(*i_context); >+ *i_context = NULL; >+ } >+ if (*origcon) { >+ freecon(*origcon); >+ *origcon = NULL; >+ } > #endif > free(*i_name); > *i_name = NULL;
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 306901
:
207051
|
207091
|
207161