Bug 618215
Summary: | patch does not preserve context - resets to tmp_t | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 6 | Reporter: | Eduard Benes <ebenes> |
Component: | patch | Assignee: | Tim Waugh <twaugh> |
Status: | CLOSED CURRENTRELEASE | QA Contact: | Eduard Benes <ebenes> |
Severity: | medium | Docs Contact: | |
Priority: | urgent | ||
Version: | 6.0 | CC: | dbaron, ebenes, gajownik, jorris, mkanat, mvadkert, nalin, pknirsch, sdsmall, syeghiay, twaugh, vchepkov |
Target Milestone: | rc | Keywords: | Reopened |
Target Release: | --- | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | patch-2.6-6.el6 | Doc Type: | Bug Fix |
Doc Text: | Story Points: | --- | |
Clone Of: | 229329 | Environment: | |
Last Closed: | 2010-11-10 21:19:50 UTC | Type: | --- |
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: | 229329 | ||
Bug Blocks: |
Comment 1
Tim Waugh
2010-07-26 15:19:18 UTC
Still fails with patch-2.6-5.el6. FAILS_QA, flipping back to assigned: # rpm -q patch patch-2.6-5.el6.x86_64 :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: [ LOG ] :: Test :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: [ PASS ] :: Running 'echo example1 > /etc/example1' :: [ PASS ] :: Running 'echo example2 > /etc/example2' :: [ PASS ] :: File /etc/example1 should exist :: [ PASS ] :: File /etc/example2 should exist -rw-r--r--. root root unconfined_u:object_r:etc_t:s0 /etc/example1 -rw-r--r--. root root unconfined_u:object_r:etc_t:s0 /etc/example2 :: [ PASS ] :: Running 'ls -lZ /etc/example1 /etc/example2 | tee /tmp/before.log' patching file /etc/example1 :: [ PASS ] :: Running 'diff -u /etc/example1 /etc/example2 | patch /etc/example1' -rw-r--r--. root root unconfined_u:object_r:user_tmp_t:s0 /etc/example1 -rw-r--r--. root root unconfined_u:object_r:etc_t:s0 /etc/example2 :: [ PASS ] :: Running 'ls -lZ /etc/example1 /etc/example2 | tee /tmp/after.log' :: [ FAIL ] :: Files /tmp/before.log and /tmp/after.log should not differ I could reproduce that. Fixed in patch-2.6-6.el6. VERIFIED as fixed in patch-2.6-6.el6 :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: [ LOG ] :: Test :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: [ PASS ] :: Running 'echo example1 > /etc/example1' :: [ PASS ] :: Running 'echo example2 > /etc/example2' :: [ PASS ] :: File /etc/example1 should exist :: [ PASS ] :: File /etc/example2 should exist :: [ PASS ] :: Running 'ls -lZ /etc/example1 /etc/example2 | tee /tmp/before.log' :: [ PASS ] :: Running 'diff -u /etc/example1 /etc/example2 | patch /etc/example1' :: [ PASS ] :: Running 'ls -lZ /etc/example1 /etc/example2 | tee /tmp/after.log' :: [ PASS ] :: Files /tmp/before.log and /tmp/after.log should not differ :: [ LOG ] :: Duration: 1s :: [ LOG ] :: Assertions: 8 good, 0 bad :: [ PASS ] :: RESULT: Test Please note that this bug will be moved to VERIFIED state when it gets to RHEL6 Snap 12. Moving to verified per comment 11. Red Hat Enterprise Linux 6.0 is now available and should resolve the problem described in this bug report. This report is therefore being closed with a resolution of CURRENTRELEASE. You may reopen this bug report if the solution does not work for you. |