Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 554362 - net-misc/dhcpcd installs files u-w
Summary: net-misc/dhcpcd installs files u-w
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: William Hubbs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: u-w
  Show dependency tree
 
Reported: 2015-07-09 16:22 UTC by Michał Górny
Modified: 2020-04-22 17:34 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2015-07-09 16:22:38 UTC
net-misc/dhcpcd:0 -r-xr-xr-x root:root /sbin/dhcpcd
net-misc/dhcpcd:0 -r--r--r-- root:root /usr/share/man/man5/dhcpcd.conf.5.lz
net-misc/dhcpcd:0 -r--r--r-- root:root /usr/share/man/man8/dhcpcd.8.lz
net-misc/dhcpcd:0 -r--r--r-- root:root /usr/share/man/man8/dhcpcd-run-hooks.8.lz

See the tracker for more complete explanation of issues with files not writeable by owner.
Comment 1 Roy Marples 2015-07-09 22:31:47 UTC
I disagree with this being a bug - the files are installed like that by design.

I'm surprised the file in /lib/dhcpcd (or /libexec) didn't come up either as they are installed without the write bit set as well.

If you must go down this route, change the ebuild by setting BINMODE, NONBINMODE, MANMODE and CONFMODE to whatever 0XXX mode you want during the install phase.
Comment 2 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2015-07-10 05:12:09 UTC
I would really appreciate if people followed common patterns rather than invented their own fancy stupid designs that break stuff for no good reason.
Comment 3 Roy Marples 2015-07-10 08:00:51 UTC
(In reply to Michał Górny from comment #2)
> I would really appreciate if people followed common patterns rather than
> invented their own fancy stupid designs that break stuff for no good reason.

That depends on your perspective.
The dhcpcd install pattern matches what the BSD's do. To me, that is the common pattern.
Comment 4 Roy Marples 2015-07-10 08:14:25 UTC
And on a another node, dhcpcd uses the common variables BINMODE and others as noted above. So it's possible this could be set maybe in a profile and not in the ebuild.

I would imagine there are other packages that use a BSD based install so they would automatically benefit as well. I don't know if GNU tools work with the standard BSD variables or not.