Bug 556897 - [PATCH] Make executables non-writeable even by owner
Summary: [PATCH] Make executables non-writeable even by owner
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: redhat-rpm-config
Version: rawhide
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Panu Matilainen
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-01-19 19:01 UTC by Miloslav Trmač
Modified: 2010-01-26 15:10 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2010-01-26 15:10:11 UTC
Type: ---
Embargoed:


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

Description Miloslav Trmač 2010-01-19 19:01:44 UTC
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 19:02:08 UTC
Created attachment 385466 [details]
Spec file patch

Comment 2 Kevin Kofler 2010-01-26 15:10:11 UTC
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.