[MacPorts] #47592: File permissions causing warnings
MacPorts
noreply at macports.org
Wed Apr 29 01:57:26 PDT 2015
#47592: File permissions causing warnings
----------------------+--------------------------------
Reporter: mp@… | Owner: macports-tickets@…
Type: defect | Status: new
Priority: Not set | Milestone:
Component: base | Version: 2.3.99
Resolution: | Keywords:
Port: |
----------------------+--------------------------------
Comment (by mp@…):
Replying to [comment:1 ryandesign@…]:
> For each file, it can either be considered a bug that they are not world
readable, or else possibly it is intentional. You would have to ask the
developers of those programs. Cc'ing Marcus who maintains dbus.
Can see no reason why MacPorts should complain if a port chooses to
install files that are not world readable.
> If there is a base bug here at all, it is that "sudo port rev-upgrade",
though invoked as root, drops privileges and therefore cannot read files
that are not world-readable.
Exactly.
Since `macports::revupgrade_scanandrebuild` is called after the privileges
have been dropped (and then elevated for some actions),
{{{
if {[getuid] == 0 && [geteuid] != 0} {
seteuid 0; setegid 0
}
}}}
at the beginning of `macports::revupgrade_scanandrebuild` solves it. Maybe
the privileges should be dropped again at the end…
--
Ticket URL: <https://trac.macports.org/ticket/47592#comment:2>
MacPorts <https://www.macports.org/>
Ports system for OS X
More information about the macports-tickets
mailing list