Bug 1125165
Summary: | EPEL7 package varnish is prohibited from starting | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 7 | Reporter: | Ingvar Hagelund <ingvar> |
Component: | selinux-policy | Assignee: | Miroslav Grepl <mgrepl> |
Status: | CLOSED ERRATA | QA Contact: | Milos Malik <mmalik> |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | 7.0 | CC: | dahmage, mmalik |
Target Milestone: | rc | ||
Target Release: | --- | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | selinux-policy-3.13.1-1.el7 | Doc Type: | Bug Fix |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2015-03-05 10:42:28 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Ingvar Hagelund
2014-07-31 08:35:06 UTC
Seen on my virtual machine in enforcing mode: ---- time->Thu Jul 31 15:11:41 2014 type=PATH msg=audit(1406812301.471:842): item=0 name="./vcl.CNkoGA3g.so" inode=9687604 dev=fd:03 mode=0100711 ouid=989 ogid=988 rdev=00:00 obj=system_u:object_r:varnishd_var_lib_t:s0 objtype=NORMAL type=CWD msg=audit(1406812301.471:842): cwd="/var/lib/varnish/rhel70vm" type=SYSCALL msg=audit(1406812301.471:842): arch=c000003e syscall=90 success=yes exit=0 a0=7fff5567c090 a1=1ed a2=0 a3=0 items=1 ppid=1 pid=23443 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm="varnishd" exe="/usr/sbin/varnishd" subj=system_u:system_r:varnishd_t:s0 key=(null) type=AVC msg=audit(1406812301.471:842): avc: denied { fsetid } for pid=23443 comm="varnishd" capability=4 scontext=system_u:system_r:varnishd_t:s0 tcontext=system_u:system_r:varnishd_t:s0 tclass=capability ---- time->Thu Jul 31 15:11:48 2014 type=PATH msg=audit(1406812308.082:845): item=0 name="./vcl.Smc3ieVX.so" inode=9687604 dev=fd:03 mode=0100711 ouid=989 ogid=988 rdev=00:00 obj=system_u:object_r:varnishd_var_lib_t:s0 objtype=NORMAL type=CWD msg=audit(1406812308.082:845): cwd="/var/lib/varnish/rhel70vm" type=SYSCALL msg=audit(1406812308.082:845): arch=c000003e syscall=90 success=yes exit=0 a0=7fff3616b6d0 a1=1ed a2=0 a3=0 items=1 ppid=1 pid=24199 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm="varnishd" exe="/usr/sbin/varnishd" subj=system_u:system_r:varnishd_t:s0 key=(null) type=AVC msg=audit(1406812308.082:845): avc: denied { fsetid } for pid=24199 comm="varnishd" capability=4 scontext=system_u:system_r:varnishd_t:s0 tcontext=system_u:system_r:varnishd_t:s0 tclass=capability ---- At least three extra system calls are needed for varnishd, that is chown, fowner and fsetid. These were all added through selinux-policy-3.13.1-64. A recompile of 3.13.1-64.fc21 from https://koji.fedoraproject.org/koji/buildinfo?buildID=543958 makes varnish work on el7. While this changes are missing in downstream el7, varnish for epel7 will not work properly. Ingvar Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://rhn.redhat.com/errata/RHBA-2015-0458.html |