Bug 748449 - unable to access kerberos tmp file
Summary: unable to access kerberos tmp file
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 17
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-10-24 14:01 UTC by Marcus Moeller
Modified: 2012-05-28 01:19 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-05-28 01:19:33 UTC
Type: ---


Attachments (Terms of Use)

Description Marcus Moeller 2011-10-24 14:01:24 UTC
Got an denial on login via GDM or ssh. The system uses LDAP / Kerberos for authentication/authorization.

type=AVC msg=audit(1319461916.455:122): avc:  denied  { getattr } for  pid=2729 comm="gdm-session-wor" path="/var/tmp/ldapmap1_0" dev=sda6 ino=3147959 scontext=system_u:system_r:xdm_t:s0-s0:c0.c1023 tcontext=system_u:object_r:local_login_tmp_t:s0 tclass=file
type=AVC msg=audit(1319461916.455:123): avc:  denied  { unlink } for  pid=2729 comm="gdm-session-wor" name="ldapmap1_0" dev=sda6 ino=3147959 scontext=system_u:system_r:xdm_t:s0-s0:c0.c1023 tcontext=system_u:object_r:local_login_tmp_t:s0 tclass=file

type=AVC msg=audit(1319463721.173:234): avc:  denied  { getattr } for  pid=4405 comm="sshd" path="/var/tmp/ldapmap1_0" dev=sda6 ino=3147959 scontext=system_u:system_r:sshd_t:s0-s0:c0.c1023 tcontext=system_u:object_r:local_login_tmp_t:s0 tclass=file
type=AVC msg=audit(1319463721.173:235): avc:  denied  { unlink } for  pid=4405 comm="sshd" name="ldapmap1_0" dev=sda6 ino=3147959 scontext=system_u:system_r:sshd_t:s0-s0:c0.c1023 tcontext=system_u:object_r:local_login_tmp_t:s0 tclass=file

Comment 1 Daniel Walsh 2011-10-24 15:55:26 UTC
Fixed in selinux-policy-3.10.0-48.fc16

chcon -t krb5_host_rcache_t /var/tmp/ldapmap1_0 

Should fix the problem for now.

Comment 2 Marcus Moeller 2012-05-15 14:24:30 UTC
A user with the user context staff_t cannot do sudo as staff_sudo_t is not allowed to access krb5_host_rcache_t.

Comment 3 Daniel Walsh 2012-05-16 03:40:16 UTC
mgrepl lets add


optional_policy(`
	kerberos_manage_host_rcache(sudodomain)
	kerberos_read_config(sudodomain)
')

Comment 4 Miroslav Grepl 2012-05-16 12:21:06 UTC
Fixed in selinux-policy-3.10.0-125.fc17

Comment 5 Fedora Update System 2012-05-17 09:03:45 UTC
selinux-policy-3.10.0-125.fc17 has been submitted as an update for Fedora 17.
https://admin.fedoraproject.org/updates/FEDORA-2012-7953/selinux-policy-3.10.0-125.fc17

Comment 6 Fedora Update System 2012-05-17 22:57:15 UTC
Package selinux-policy-3.10.0-125.fc17:
* should fix your issue,
* was pushed to the Fedora 17 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing selinux-policy-3.10.0-125.fc17'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2012-7953/selinux-policy-3.10.0-125.fc17
then log in and leave karma (feedback).

Comment 7 Sandro Mathys 2012-05-21 08:34:09 UTC
Could you please also backport this fix to F16?

Comment 8 Miroslav Grepl 2012-05-21 08:41:09 UTC
(In reply to comment #7)
> Could you please also backport this fix to F16?

Added.

Comment 9 Fedora Update System 2012-05-28 01:19:33 UTC
selinux-policy-3.10.0-125.fc17 has been pushed to the Fedora 17 stable repository.  If problems still persist, please make note of it in this bug report.


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