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 144865 Details for
Bug 220487
LSPP: ssh not usable when labeled networking active
[?]
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]
Adjusted pam_selinux patch for use_current_range option
pam-0.99.6.2-selinux-use-current-range.patch (text/plain), 3.06 KB, created by
Tomas Mraz
on 2007-01-04 23:09:40 UTC
(
hide
)
Description:
Adjusted pam_selinux patch for use_current_range option
Filename:
MIME Type:
Creator:
Tomas Mraz
Created:
2007-01-04 23:09:40 UTC
Size:
3.06 KB
patch
obsolete
>--- Linux-PAM-0.99.6.2/modules/pam_selinux/pam_selinux.c.range 2007-01-04 23:29:04.000000000 +0100 >+++ Linux-PAM-0.99.6.2/modules/pam_selinux/pam_selinux.c 2007-01-04 23:48:10.000000000 +0100 >@@ -435,6 +435,7 @@ > int i, debug = 0, ttys=1, has_tty=isatty(0); > int verbose=0, close_session=0; > int select_context = 0; >+ int use_current_range = 0; > int ret = 0; > security_context_t* contextlist = NULL; > int num_contexts = 0; >@@ -461,11 +462,19 @@ > if (strcmp(argv[i], "select_context") == 0) { > select_context = 1; > } >+ if (strcmp(argv[i], "use_current_range") == 0) { >+ use_current_range = 1; >+ } > } >- >+ > if (debug) > pam_syslog(pamh, LOG_NOTICE, "Open Session"); > >+ if (select_context && use_current_range) { >+ pam_syslog(pamh, LOG_ERR, "select_context cannot be used with use_current_range"); >+ select_context = 0; >+ } >+ > /* this module is only supposed to execute close_session */ > if (close_session) > return PAM_SUCCESS; >@@ -532,6 +541,43 @@ > return PAM_SUCCESS; > } > } >+ >+ if (use_current_range && is_selinux_mls_enabled()) { >+ security_context_t process_context=NULL; >+ if (getcon(&process_context) == 0) { >+ context_t pcon, ucon; >+ char *process_level=NULL; >+ >+ pcon = context_new(process_context); >+ freecon(process_context); >+ process_level = strdup(context_range_get(pcon)); >+ context_free(pcon); >+ >+ if (debug) >+ pam_syslog (pamh, LOG_DEBUG, "process level=%s", process_level); >+ >+ ucon = context_new(user_context); >+ context_range_set(ucon, process_level); >+ free(process_level); >+ >+ if (!mls_range_allowed(user_context, context_str(ucon))) { >+ send_text(pamh, _("Requested MLS level not in permitted range"), debug); >+ send_audit_message(pamh, 0, default_user_context, context_str(ucon)); >+ context_free(ucon); >+ return PAM_AUTH_ERR; >+ } >+ >+ if (debug) >+ pam_syslog (pamh, LOG_DEBUG, "adjusted context=%s", context_str(ucon)); >+ >+ /* replace the user context with the level adjusted one */ >+ freecon(user_context); >+ user_context = strdup(context_str(ucon)); >+ >+ context_free(ucon); >+ } >+ } >+ > if (getexeccon(&prev_user_context)<0) { > prev_user_context=NULL; > } >--- Linux-PAM-0.99.6.2/modules/pam_selinux/pam_selinux.8.xml.range 2007-01-04 23:29:04.000000000 +0100 >+++ Linux-PAM-0.99.6.2/modules/pam_selinux/pam_selinux.8.xml 2007-01-04 23:35:03.000000000 +0100 >@@ -36,6 +36,9 @@ > <arg choice="opt"> > select_context > </arg> >+ <arg choice="opt"> >+ use_current_range >+ </arg> > </cmdsynopsis> > </refsynopsisdiv> > >@@ -132,6 +135,17 @@ > </para> > </listitem> > </varlistentry> >+ <varlistentry> >+ <term> >+ <option>use_current_range</option> >+ </term> >+ <listitem> >+ <para> >+ Use the sensitivity range of the process for the user context. >+ This option and the select_context option are mutually exclusive. >+ </para> >+ </listitem> >+ </varlistentry> > </variablelist> > </refsect1> >
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 220487
:
144235
|
144260
|
144261
|
144314
|
144321
|
144325
|
144326
|
144865
|
144869
|
144870
|
144876
|
145433