Bug 556897 - [PATCH] Make executables non-writeable even by owner
[PATCH] Make executables non-writeable even by owner
Status: CLOSED NOTABUG
Product: Fedora
Classification: Fedora
Component: redhat-rpm-config (Show other bugs)
rawhide
All Linux
medium Severity medium
: ---
: ---
Assigned To: Panu Matilainen
Fedora Extras Quality Assurance
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2010-01-19 14:01 EST by Miloslav Trmač
Modified: 2010-01-26 10:10 EST (History)
4 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2010-01-26 10:10:11 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:


Attachments (Terms of Use)
New __os_install_post step: drop "write" permission bits on executables (1.06 KB, patch)
2010-01-19 14:01 EST, Miloslav Trmač
no flags Details | Diff
Spec file patch (573 bytes, patch)
2010-01-19 14:02 EST, Miloslav Trmač
no flags Details | Diff

  None (edit)
Description Miloslav Trmač 2010-01-19 14:01:44 EST
Created attachment 385465 [details]
New __os_install_post step: drop "write" permission bits on executables

The attached patch changes the permissions of executables to prevent the owner from writing to them.  If a system daemon drops the dac_override capability (e.g. dhclient), this change makes it more difficult for an exploit of the daemon to overwrite the executables with malware - even if the daemon with euid=0.
Comment 1 Miloslav Trmač 2010-01-19 14:02:08 EST
Created attachment 385466 [details]
Spec file patch
Comment 2 Kevin Kofler 2010-01-26 10:10:11 EST
FYI, this feature was withdrawn for consideration for F-13, so please do not apply this patch (at least not without further discussion).

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