Bug 683875

Summary: SELinux is preventing /usr/kerberos/sbin/login.krb5 from 'setattr' accesses on the chr_file 1.
Product: [Fedora] Fedora Reporter: Russell King <rmk>
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 14CC: dwalsh, mgrepl
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard: setroubleshoot_trace_hash:5d2ea3f2768b44c04e7ddc84f32da43f4633f82a4a408c01e9f2b1f45b3cbe3f
Fixed In Version: selinux-policy-3.9.7-37.fc14 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-03-22 18:52:48 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Russell King 2011-03-10 14:55:54 UTC
SELinux is preventing /usr/kerberos/sbin/login.krb5 from 'setattr' accesses on the chr_file 1.

*****  Plugin catchall (100. confidence) suggests  ***************************

If you believe that login.krb5 should be allowed setattr access on the 1 chr_file by default.
Then you should report this as a bug.
You can generate a local policy module to allow this access.
Do
allow this access for now by executing:
# grep login.krb5 /var/log/audit/audit.log | audit2allow -M mypol
# semodule -i mypol.pp

Additional Information:
Source Context                system_u:system_r:remote_login_t:s0-s0:c0.c1023
Target Context                unconfined_u:object_r:user_devpts_t:s0
Target Objects                1 [ chr_file ]
Source                        login.krb5
Source Path                   /usr/kerberos/sbin/login.krb5
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           krb5-appl-servers-1.0.1-3.fc14.1
Target RPM Packages           
Policy RPM                    selinux-policy-3.9.7-31.fc14
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 2.6.37.3+ #1 SMP Tue
                              Mar 8 20:44:41 GMT 2011 i686 i686
Alert Count                   8
First Seen                    Tue 08 Mar 2011 07:29:56 PM GMT
Last Seen                     Wed 09 Mar 2011 07:16:51 PM GMT
Local ID                      7b8a3d61-76a6-4dcf-99d6-0e8d12338346

Raw Audit Messages
type=AVC msg=audit(1299698211.942:24613): avc:  denied  { setattr } for  pid=32165 comm="login.krb5" name="1" dev=devpts ino=4 scontext=system_u:system_r:remote_login_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:user_devpts_t:s0 tclass=chr_file


type=SYSCALL msg=audit(1299698211.942:24613): arch=i386 syscall=chmod success=no exit=EACCES a0=b9369018 a1=190 a2=b774e53c a3=b774fa54 items=0 ppid=32163 pid=32165 auid=500 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=pts1 ses=19 comm=login.krb5 exe=/usr/kerberos/sbin/login.krb5 subj=system_u:system_r:remote_login_t:s0-s0:c0.c1023 key=(null)

Hash: login.krb5,remote_login_t,user_devpts_t,chr_file,setattr

audit2allow

#============= remote_login_t ==============
allow remote_login_t user_devpts_t:chr_file setattr;

audit2allow -R

#============= remote_login_t ==============
allow remote_login_t user_devpts_t:chr_file setattr;

Comment 1 Daniel Walsh 2011-03-10 16:02:46 UTC
Miroslav I guess we need

term_setattr_all_ptys(remote_login_t)

Comment 2 Miroslav Grepl 2011-03-18 13:13:59 UTC
Fixed in selinux-policy-3.9.7-34.fc14

Comment 3 Fedora Update System 2011-03-18 15:07:49 UTC
selinux-policy-3.9.7-34.fc14 has been submitted as an update for Fedora 14.
https://admin.fedoraproject.org/updates/selinux-policy-3.9.7-34.fc14

Comment 4 Fedora Update System 2011-03-21 08:45:46 UTC
selinux-policy-3.9.7-37.fc14 has been submitted as an update for Fedora 14.
https://admin.fedoraproject.org/updates/selinux-policy-3.9.7-37.fc14

Comment 5 Fedora Update System 2011-03-22 18:51:22 UTC
selinux-policy-3.9.7-37.fc14 has been pushed to the Fedora 14 stable repository.  If problems still persist, please make note of it in this bug report.