Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
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 1162597

Summary: Both /var/log/cloud-init.log and /var/log/cloud-init-output.log should have same file context
Product: Red Hat Enterprise Linux 6 Reporter: Dalibor Pospíšil <dapospis>
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED NOTABUG QA Contact: Dalibor Pospíšil <dapospis>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 6.6CC: dapospis, dwalsh, lars, lvrabec, mgrepl, mmalik, plautrba, pvrabec
Target Milestone: rc   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: 1117013 Environment:
Last Closed: 2015-02-25 13:16:02 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:
Bug Depends On: 1117013    
Bug Blocks:    

Description Dalibor Pospíšil 2014-11-11 11:22:56 UTC
+++ This bug was initially created as a clone of Bug #1117013 +++

cloud-init creates two files in /var/log:

/var/log/cloud-init.log
/var/log/cloud-init-output.log

policy should have defined both as cloud_log_t.

And, of course, cloud-init should have its own domain cloud_init_t.

Comment 1 Miroslav Grepl 2014-11-18 11:12:53 UTC
Do we have the same bin path in RHEL6?

# ls -Z /usr/bin/cloud-init

Comment 2 Dalibor Pospíšil 2014-12-10 10:38:24 UTC
The package is in epel.

# ls -Z /usr/bin/cloud-init
-rwxr-xr-x. root root system_u:object_r:bin_t:s0       /usr/bin/cloud-init

Comment 3 Daniel Walsh 2015-01-02 16:06:24 UTC
Does not look like we have cloud-init policy in rhel6.

Why is it a problem that these files are labeled var_log_t?

Comment 4 Miroslav Grepl 2015-01-07 11:17:35 UTC
Yes, is this really issue in RHEL6?

Comment 7 Miroslav Grepl 2015-02-25 13:16:02 UTC
If we don't see any issue I would keep it as we have it now.