Bug 563272

Summary: SELinux is preventing /usr/libexec/ipsec/showhostkey "read" access on /usr/tmp.
Product: [Fedora] Fedora Reporter: Matt Castelein <matt.castelein>
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: low Docs Contact:
Priority: low    
Version: 12CC: dwalsh, mgrepl
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: selinux-policy-3.6.32-89.fc12 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-02-20 00:22:31 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 Matt Castelein 2010-02-09 17:14:56 UTC
Summary:

SELinux is preventing /usr/libexec/ipsec/showhostkey "read" access on /usr/tmp.

Detailed Description:

[SELinux is in permissive mode. This access was not denied.]

SELinux denied access requested by showhostkey. It is not expected that this
access is required by showhostkey and this access may signal an intrusion
attempt. It is also possible that the specific version or configuration of the
application is causing it to require additional access.

Allowing Access:

You can generate a local policy module to allow this access - see FAQ
(http://docs.fedoraproject.org/selinux-faq-fc5/#id2961385) Please file a bug
report.

Additional Information:

Source Context                unconfined_u:system_r:ipsec_mgmt_t:s0
Target Context                system_u:object_r:usr_t:s0
Target Objects                /usr/tmp [ lnk_file ]
Source                        showhostkey
Source Path                   /usr/libexec/ipsec/showhostkey
Port                          <Unknown>
Host                          {removed}
Source RPM Packages           openswan-2.6.23-1.fc12
Target RPM Packages           filesystem-2.4.30-2.fc12
Policy RPM                    selinux-policy-3.6.32-78.fc12
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Permissive
Plugin Name                   catchall
Host Name                     {removed}
Platform                      Linux {removed}
                              2.6.31.12-174.2.3.fc12.x86_64 #1 SMP Mon Jan 18
                              19:52:07 UTC 2010 x86_64 x86_64
Alert Count                   1
First Seen                    Tue Feb  9 11:32:13 2010
Last Seen                     Tue Feb  9 11:32:13 2010
Local ID                      3b40a7c9-a71b-4e85-a72d-7fce18ff5b24
Line Numbers

Raw Audit Messages

node={removed} type=AVC msg=audit(1265733133.39:22663): avc:  denied  { rea                                                d } for  pid=24272 comm="showhostkey" name="tmp" dev=sda3 ino=8380928 scontext=unconfined_u:                                                system_r:ipsec_mgmt_t:s0 tcontext=system_u:object_r:usr_t:s0 tclass=lnk_file

node={removed} type=SYSCALL msg=audit(1265733133.39:22663): arch=c000003e s                                                yscall=4 success=yes exit=0 a0=7fe42954e11c a1=7fff5e0af5a0 a2=7fff5e0af5a0 a3=22 items=0 pp                                                id=24271 pid=24272 auid=500 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(non                                                e) ses=1899 comm="showhostkey" exe="/usr/libexec/ipsec/showhostkey" subj=unconfined_u:system                                                _r:ipsec_mgmt_t:s0 key=(null)

Comment 1 Daniel Walsh 2010-02-09 19:25:44 UTC
Miroslav add

files_read_usr_files(ipsec_mgmt_t)

Comment 2 Daniel Walsh 2010-02-09 19:42:26 UTC
Misoslav actually also add


manage_dirs_pattern(ipsec_mgmt_t, ipsec_tmp_t, ipsec_tmp_t)
manage_files_pattern(ipsec_mgmt_t, ipsec_tmp_t, ipsec_tmp_t)
files_tmp_filetrans(ipsec_mgmt_t, ipsec_tmp_t, { dir file })

Comment 3 Daniel Walsh 2010-02-09 19:43:43 UTC
*** Bug 563276 has been marked as a duplicate of this bug. ***

Comment 4 Daniel Walsh 2010-02-09 19:44:15 UTC
*** Bug 563278 has been marked as a duplicate of this bug. ***

Comment 5 Daniel Walsh 2010-02-09 19:44:30 UTC
*** Bug 563280 has been marked as a duplicate of this bug. ***

Comment 6 Daniel Walsh 2010-02-09 19:44:43 UTC
*** Bug 563281 has been marked as a duplicate of this bug. ***

Comment 7 Miroslav Grepl 2010-02-10 12:39:04 UTC
Fixed in selinux-policy-3.6.32-87.fc12

Comment 8 Fedora Update System 2010-02-11 22:02:13 UTC
selinux-policy-3.6.32-89.fc12 has been submitted as an update for Fedora 12.
http://admin.fedoraproject.org/updates/selinux-policy-3.6.32-89.fc12

Comment 9 Fedora Update System 2010-02-13 00:41:27 UTC
selinux-policy-3.6.32-89.fc12 has been pushed to the Fedora 12 testing repository.  If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with 
 su -c 'yum --enablerepo=updates-testing update selinux-policy'.  You can provide feedback for this update here: http://admin.fedoraproject.org/updates/F12/FEDORA-2010-1836

Comment 10 Fedora Update System 2010-02-20 00:20:30 UTC
selinux-policy-3.6.32-89.fc12 has been pushed to the Fedora 12 stable repository.  If problems still persist, please make note of it in this bug report.