Bug 435526 - patch resets SELinux contexts
patch resets SELinux contexts
Status: CLOSED DUPLICATE of bug 229329
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: patch (Show other bugs)
All Linux
medium Severity medium
: rc
: ---
Assigned To: Tim Waugh
Brock Organ
Depends On:
  Show dependency treegraph
Reported: 2008-02-29 17:48 EST by Max Kanat-Alexander
Modified: 2008-06-16 05:21 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2008-06-16 05:21:47 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Max Kanat-Alexander 2008-02-29 17:48:33 EST
Whenever I use patch, it resets the contexts of all the files it touches to 
user_u:object_r:tmp_t:s0. I'm using it by applying a diff from stdin, if that
makes a difference.

This is particularly difficult since it resets the contexts even when you're a
non-root user, but restorecon is only in root's path.
Comment 1 Max Kanat-Alexander 2008-02-29 17:49:23 EST
Oh, by the way, I think patch in more recent versions of Fedora doesn't do
this--it's only been happening to me in RHEL 5 (and in RHEL 4 before that).
Comment 3 Tim Waugh 2008-06-16 05:21:47 EDT

*** This bug has been marked as a duplicate of 229329 ***

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