Bug 968612 - SELinux is preventing /usr/bin/chmod from 'setattr' accesses on the directory pluto.
Summary: SELinux is preventing /usr/bin/chmod from 'setattr' accesses on the directory...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 18
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:df7153d4cd134ea6ed67c867df0...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-05-29 23:00 UTC by Daniel Demus
Modified: 2013-07-25 00:38 UTC (History)
3 users (show)

Fixed In Version: selinux-policy-3.11.1-98.fc18
Clone Of:
Environment:
Last Closed: 2013-07-25 00:38:06 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Daniel Demus 2013-05-29 23:00:00 UTC
Description of problem:
Can't start ipsec. Trying to use L2TP IPsec VPN Manager 1.0.8 to start a tunnel. libreswan has recently replaced openswan.
SELinux is preventing /usr/bin/chmod from 'setattr' accesses on the directory pluto.

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

If you believe that chmod should be allowed setattr access on the pluto directory 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 chmod /var/log/audit/audit.log | audit2allow -M mypol
# semodule -i mypol.pp

Additional Information:
Source Context                system_u:system_r:ipsec_mgmt_t:s0
Target Context                system_u:object_r:ipsec_var_run_t:s0
Target Objects                pluto [ dir ]
Source                        chmod
Source Path                   /usr/bin/chmod
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           coreutils-8.17-8.fc18.x86_64
Target RPM Packages           
Policy RPM                    selinux-policy-3.11.1-96.fc18.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 3.9.4-200.fc18.x86_64 #1 SMP Fri
                              May 24 20:10:49 UTC 2013 x86_64 x86_64
Alert Count                   9
First Seen                    2013-05-29 23:49:21 CEST
Last Seen                     2013-05-30 00:53:59 CEST
Local ID                      f4799698-f73f-4eaf-a836-8f3706c5d876

Raw Audit Messages
type=AVC msg=audit(1369868039.139:388): avc:  denied  { setattr } for  pid=3893 comm="chmod" name="pluto" dev="tmpfs" ino=24499 scontext=system_u:system_r:ipsec_mgmt_t:s0 tcontext=system_u:object_r:ipsec_var_run_t:s0 tclass=dir


type=SYSCALL msg=audit(1369868039.139:388): arch=x86_64 syscall=fchmodat success=no exit=EACCES a0=ffffffffffffff9c a1=1dd00f0 a2=1c0 a3=4000 items=0 ppid=3884 pid=3893 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 ses=4294967295 tty=(none) comm=chmod exe=/usr/bin/chmod subj=system_u:system_r:ipsec_mgmt_t:s0 key=(null)

Hash: chmod,ipsec_mgmt_t,ipsec_var_run_t,dir,setattr

audit2allow

#============= ipsec_mgmt_t ==============
allow ipsec_mgmt_t ipsec_var_run_t:dir setattr;

audit2allow -R
require {
	type ipsec_mgmt_t;
	type ipsec_var_run_t;
	class dir setattr;
}

#============= ipsec_mgmt_t ==============
allow ipsec_mgmt_t ipsec_var_run_t:dir setattr;


Additional info:
reporter:       libreport-2.1.4
hashmarkername: setroubleshoot
kernel:         3.9.4-200.fc18.x86_64
type:           libreport

Comment 1 Miroslav Grepl 2013-05-30 11:52:54 UTC
Fixed in selinux-policy-3.11.1-98.fc18

Comment 2 Fedora Update System 2013-06-27 13:34:03 UTC
selinux-policy-3.11.1-98.fc18 has been submitted as an update for Fedora 18.
https://admin.fedoraproject.org/updates/selinux-policy-3.11.1-98.fc18

Comment 3 Fedora Update System 2013-06-28 06:08:13 UTC
Package selinux-policy-3.11.1-98.fc18:
* should fix your issue,
* was pushed to the Fedora 18 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.11.1-98.fc18'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2013-11859/selinux-policy-3.11.1-98.fc18
then log in and leave karma (feedback).

Comment 4 Fedora Update System 2013-07-25 00:38:06 UTC
selinux-policy-3.11.1-98.fc18 has been pushed to the Fedora 18 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.