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 155722 Details for
Bug 241797
shared polyinstantiated directories
[?]
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 add level_user and context_user methods of polyinstantiation
pam-0.99.6.2-namespace-_user.patch (text/plain), 2.07 KB, created by
Ted X Toth
on 2007-05-30 18:25:58 UTC
(
hide
)
Description:
patch to add level_user and context_user methods of polyinstantiation
Filename:
MIME Type:
Creator:
Ted X Toth
Created:
2007-05-30 18:25:58 UTC
Size:
2.07 KB
patch
obsolete
>--- Linux-PAM-0.99.6.2/modules/pam_namespace/pam_namespace.c 2007-05-25 14:23:24.000000000 -0500 >+++ Linux-PAM-0.99.6.2.new1/modules/pam_namespace/pam_namespace.c 2007-05-25 08:41:35.000000000 -0500 >@@ -263,6 +263,14 @@ > poly.method = CONTEXT; > } > >+ if (strcmp(method, "level_user") == 0) { >+ poly.method = LEVEL_USER; >+ } >+ >+ if (strcmp(method, "context_user") == 0) { >+ poly.method = CONTEXT_USER; >+ } >+ > #endif > > if ( poly.method == NONE) { >@@ -421,13 +429,13 @@ > { > unsigned int i; > >- if (idata->flags & PAMNS_DEBUG) >- pam_syslog(idata->pamh, LOG_DEBUG, >- "Checking for ns override in dir %s for uid %d", >- polyptr->dir, uid); > > for (i = 0; i < polyptr->num_uids; i++) { > if (uid == polyptr->uid[i]) { >+ if (idata->flags & PAMNS_DEBUG) >+ pam_syslog(idata->pamh, LOG_DEBUG, >+ "ns override of dir %s for uid %d", >+ polyptr->dir, uid); > return 1; > } > } >@@ -577,7 +585,7 @@ > * and change the directories MLS Level to match process. > */ > >- if (polyptr->method == LEVEL) { >+ if (polyptr->method == LEVEL || polyptr->method == LEVEL_USER) { > context_t scontext = NULL; > context_t fcontext = NULL; > rc = PAM_SESSION_ERR; >@@ -669,6 +677,17 @@ > pam_syslog(idata->pamh, LOG_ERR, "Error translating directory context"); > goto fail; > } >+ if (asprintf(i_name, "%s", rawcon) < 0) { >+ *i_name = NULL; >+ goto fail; >+ } >+ break; >+ case LEVEL_USER: >+ case CONTEXT_USER: >+ if (selinux_trans_to_raw_context(*i_context, &rawcon) < 0) { >+ pam_syslog(idata->pamh, LOG_ERR, "Error translating directory context"); >+ goto fail; >+ } > if (asprintf(i_name, "%s_%s", rawcon, idata->user) < 0) { > *i_name = NULL; > goto fail; >--- Linux-PAM-0.99.6.2/modules/pam_namespace/pam_namespace.h 2007-05-25 14:23:24.000000000 -0500 >+++ Linux-PAM-0.99.6.2.new1/modules/pam_namespace/pam_namespace.h 2007-05-25 07:57:30.000000000 -0500 >@@ -102,6 +102,8 @@ > USER, > CONTEXT, > LEVEL, >+ CONTEXT_USER, >+ LEVEL_USER > }; > > /*
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 241797
: 155722