RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 848751 - Need update of selinux policy related to SSSD
Summary: Need update of selinux policy related to SSSD
Keywords:
Status: CLOSED DUPLICATE of bug 843814
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: selinux-policy
Version: 6.3
Hardware: All
OS: Linux
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Miroslav Grepl
QA Contact: Milos Malik
URL:
Whiteboard:
Depends On: 843730 849567
Blocks: 766000 843814
TreeView+ depends on / blocked
 
Reported: 2012-08-16 11:06 UTC by Jakub Hrozek
Modified: 2012-11-22 15:36 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of: 843730
Environment:
Last Closed: 2012-09-05 05:43:31 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Jakub Hrozek 2012-08-16 11:06:06 UTC
+++ This bug was initially created as a clone of Bug #843730 +++

In SSSD there is a new feature which writes SSSD config files into /etc/selinux/<policy>/logins/ for SELinux PAM module which then uses this information to set correct context for remote user logging in.

I'd like to ask for update of SELinux policy so SSSD can write into this directory. I've set permissive mode on my machine, tried to log in several times and these are the rules that audit2allow returned:

allow sssd_t selinux_config_t:dir { write remove_name add_name };
allow sssd_t selinux_config_t:file { write rename create unlink };

Please note that we don't write directly to final config files but we rather use mkstemp-style temporary files which are then renamed to the final name.

--- Additional comment from jzeleny on 2012-07-27 04:12:27 EDT ---

There is one mistake in my initial description. SSSD of course writes SELinux config files into /etc/selinux/<policy>/logins/, not SSSD config files.

--- Additional comment from dwalsh on 2012-07-31 11:59:37 EDT ---

We need a new label for the logins directory and then allowd sssd to write there.

--- Additional comment from mgrepl on 2012-07-31 18:22:16 EDT ---

How about selinux_login_conf_t?

--- Additional comment from dwalsh on 2012-08-01 15:44:11 EDT ---

Fine.

--- Additional comment from mgrepl on 2012-08-07 09:33:19 EDT ---

I have just added fixes. It is going to be in today's build.

--- Additional comment from jhrozek on 2012-08-16 05:20:34 EDT ---

(In reply to comment #5)
> I have just added fixes. It is going to be in today's build.

Miroslav, can you please back port the changes to Fedora 17, too?

Comment 1 Miroslav Grepl 2012-09-05 05:43:31 UTC

*** This bug has been marked as a duplicate of bug 843814 ***


Note You need to log in before you can comment on or make changes to this bug.