Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 428292 - kde-base/kdebase-pam should provide selinux enabled pam files
Summary: kde-base/kdebase-pam should provide selinux enabled pam files
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: SELinux (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: SE Linux Bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-07-27 11:33 UTC by Amadeusz Sławiński
Modified: 2012-09-29 15:55 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Amadeusz Sławiński 2012-07-27 11:33:38 UTC
In order for selinux enabled desktops to have proper context after logging in, pam files need "session    optional     pam_selinux.so" entry.

KDE pam files (/etc/pam.d/kde /etc/pam.d/kde-np) are installed by kde-base/kdebase-pam as they are provided with package it should be easy to either add selinux enabled ones or modify the existing ones.

Reproducible: Always
Comment 1 Sven Vermeulen (RETIRED) gentoo-dev 2012-07-27 12:04:30 UTC
Can we consider an include somewhere so that this is immediately done for all necessary services? How does pam.d/kde and pam.d/kde-np currently look like (to they include anything)?
Comment 2 Sven Vermeulen (RETIRED) gentoo-dev 2012-07-27 12:04:55 UTC
BTW, it is documented in the selinux handbook that you currently have to do this manually yourself.
Comment 3 Amadeusz Sławiński 2012-07-27 13:33:57 UTC
By default they look like this:
# cat /etc/pam.d/kde   
#%PAM-1.0

auth       required     pam_nologin.so
auth       include      system-auth

account    include      system-auth

password   include      system-auth

session    include      system-auth
# cat /etc/pam.d/kde-np
#%PAM-1.0

auth       required     pam_nologin.so
auth       required     pam_permit.so

account    include      system-auth

password   include      system-auth

session    include      system-auth
Comment 4 Sven Vermeulen (RETIRED) gentoo-dev 2012-08-07 17:43:34 UTC
Perhaps we can add it to /etc/pam.d/system-auth and have it working for everything/everyone. I'll try that out on a few test systems to see if it doesn't corrupt other stuff.
Comment 5 Ulenrich 2012-08-30 11:52:28 UTC
@Sven Vermulen, the much simpler solving attempt:
https://bugs.gentoo.org/show_bug.cgi?id=433173

Excuse me to not have seen this bug here earlier ...
Comment 6 Sven Vermeulen (RETIRED) gentoo-dev 2012-09-08 18:01:20 UTC
So the system-local-login configuration (pam) makes more sense then.

Sorry for not having tested it through though
Comment 7 Sven Vermeulen (RETIRED) gentoo-dev 2012-09-29 15:55:00 UTC
Ah, system-local-login sources system-login which uses pam_selinux, so I guess this is resolved now?