RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1082640 - chown capability for dhcpd_t
Summary: chown capability for dhcpd_t
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: selinux-policy
Version: 6.5
Hardware: All
OS: Linux
unspecified
high
Target Milestone: rc
: ---
Assignee: Lukas Vrabec
QA Contact: Milos Malik
URL:
Whiteboard:
: 1161537 (view as bug list)
Depends On:
Blocks: 1067142 1158941
TreeView+ depends on / blocked
 
Reported: 2014-03-31 14:30 UTC by Jiri Popelka
Modified: 2015-02-25 13:28 UTC (History)
5 users (show)

Fixed In Version: selinux-policy-3.7.19-236.el6
Doc Type: Bug Fix
Doc Text:
Cause: Starting, Restarting dhcpd daemon. Consequence: Dhcp daemon needs to change file ownership on a system and selinux denied it. Fix: Allow dhcp daemon to change file ownership on a system in selinux policy (Added chown capability). Result: Now dhcp daemon can change file ownership on a system
Clone Of: 867291
Environment:
Last Closed: 2014-10-14 08:01:37 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2014:1568 0 normal SHIPPED_LIVE selinux-policy bug fix and enhancement update 2014-10-14 01:27:37 UTC

Description Jiri Popelka 2014-03-31 14:30:26 UTC
+++ This bug was initially created as a clone of Bug #867291 +++

Hi,

would it be possible to have chown capability for dhcpd_t.

Reason:
dhcpd is de-rooting (changing effective user/group ID) itself during start, but before doing it it creates /var/lib/dhcpd/*.leases file. The leases file can't be created after de-rooting because of bug #765967.
In selinux-policy-3.10.0-72.fc16 dhcpd got dac_override to be able to create root:root owned files in /var/lib/dhcpd, which is owned by dhcpd:dhcpd.
Because we need the leases file to be also dhcpd:dhcpd owned the reporter of bug #866714 suggested to chown them after creating, which seems to work but we need to tweak the SELinux policy, see bug #866714, comment #11.

--- Additional comment from Miroslav Grepl on 2012-10-17 16:33:39 CEST ---

Added to -40.fc18

Comment 1 Jiri Popelka 2014-03-31 14:31:21 UTC
We need the same change in RHEL6, so we can fix bug #1067142.

Comment 2 Lukas Vrabec 2014-04-29 15:29:58 UTC
patch sent to Miroslav.

Comment 3 Lukas Vrabec 2014-05-02 12:23:38 UTC
commit 30d7c568dcf280caa308292bdc8f00eff9b29eab
Author: Lukas Vrabec <lvrabec>
Date:   Tue Apr 29 12:16:30 2014 +0200

    Added chown capability to dhcpd_t domain

Comment 6 errata-xmlrpc 2014-10-14 08:01:37 UTC
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.

http://rhn.redhat.com/errata/RHBA-2014-1568.html

Comment 7 Miroslav Grepl 2015-02-25 13:16:03 UTC
*** Bug 1161537 has been marked as a duplicate of this bug. ***


Note You need to log in before you can comment on or make changes to this bug.