Summary: | Upcoming varnish-4.0.0 release needs changes in selinux policy | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Ingvar Hagelund <ingvar> |
Component: | selinux-policy | Assignee: | Lukas Vrabec <lvrabec> |
Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | low | Docs Contact: | |
Priority: | unspecified | ||
Version: | 19 | CC: | dominick.grift, dwalsh, lvrabec, mgrepl |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | selinux-policy-3.12.1-74.26.fc19 | Doc Type: | Bug Fix |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2014-06-27 02:22:59 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: |
Description
Ingvar Hagelund
2014-04-01 13:46:41 UTC
commit 6d57ff778e441927d361d3b6ca1077f99d723574 Author: Miroslav Grepl <mgrepl> Date: Wed Apr 2 12:30:32 2014 +0200 varnishd wants chown capability A little background: The reason for the need to chown is that the top varnishd process starts as root, but forks off unprivileged worker and compiler children, which needs tempfiles. cat -n varnish-4.0.0-beta1/bin/varnishd/mgt/mgt_vcc.c (...) 241 /* Create temporary C source file */ 242 sfd = VFIL_tmpfile(sf); 243 if (sfd < 0) { 244 VSB_printf(sb, "Failed to create %s: %s", sf, strerror(errno)); 245 return (NULL); 246 } 247 (void)fchown(sfd, mgt_param.uid, mgt_param.gid); 248 AZ(close(sfd)); (...) 275 i = open(of, O_WRONLY|O_CREAT|O_TRUNC, 0600); 276 if (i < 0) { 277 VSB_printf(sb, "Failed to create %s: %s", 278 of, strerror(errno)); 279 (void)unlink(sf); 280 return (NULL); 281 } 282 (void)fchown(i, mgt_param.uid, mgt_param.gid); 283 AZ(close(i)); selinux-policy-3.12.1-74.26.fc19 has been submitted as an update for Fedora 19. https://admin.fedoraproject.org/updates/selinux-policy-3.12.1-74.26.fc19 Package selinux-policy-3.12.1-74.26.fc19: * should fix your issue, * was pushed to the Fedora 19 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.12.1-74.26.fc19' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/FEDORA-2014-6075/selinux-policy-3.12.1-74.26.fc19 then log in and leave karma (feedback). selinux-policy-3.12.1-74.26.fc19 has been pushed to the Fedora 19 stable repository. If problems still persist, please make note of it in this bug report. |