Bug 843730 - Need update of selinux policy related to SSSD
Summary: Need update of selinux policy related to SSSD
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: 843814 848751 849567
TreeView+ depends on / blocked
 
Reported: 2012-07-27 08:09 UTC by Jan Zeleny
Modified: 2012-08-20 08:31 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
: 843814 848751 849567 (view as bug list)
Environment:
Last Closed: 2012-08-07 13:33:19 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Jan Zeleny 2012-07-27 08:09:09 UTC
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.

Comment 1 Jan Zeleny 2012-07-27 08:12:27 UTC
There is one mistake in my initial description. SSSD of course writes SELinux config files into /etc/selinux/<policy>/logins/, not SSSD config files.

Comment 2 Daniel Walsh 2012-07-31 15:59:37 UTC
We need a new label for the logins directory and then allowd sssd to write there.

Comment 3 Miroslav Grepl 2012-07-31 22:22:16 UTC
How about selinux_login_conf_t?

Comment 4 Daniel Walsh 2012-08-01 19:44:11 UTC
Fine.

Comment 5 Miroslav Grepl 2012-08-07 13:33:19 UTC
I have just added fixes. It is going to be in today's build.

Comment 6 Jakub Hrozek 2012-08-16 09:20:34 UTC
(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?


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