Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 260326 - incorrect perms in src_install on virtualbox binaries
Summary: incorrect perms in src_install on virtualbox binaries
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High major (vote)
Assignee: Markus Ullmann (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-02-26 00:44 UTC by SpanKY
Modified: 2009-03-05 07:15 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 SpanKY gentoo-dev 2009-02-26 00:44:41 UTC
some binaries are wrongly run with fperms 4511 when they should be 4510

src_install() {
...
    for each in VBox{Manage,SVC,XPCOMIPCD,Tunctl}; do
        fowners root:vboxusers /opt/VirtualBox/${each}
        fperms 0750 /opt/VirtualBox/${each}
        pax-mark -m "${D}"/opt/VirtualBox/${each}
    done
...
        for each in VBox{SDL,Headless} VirtualBox; do
            fowners root:vboxusers /opt/VirtualBox/${each}
            fperms 4511 /opt/VirtualBox/${each}
            pax-mark -m "${D}"/opt/VirtualBox/${each}
        done
...
        # Hardened build: Mark selected binaries set-user-ID-on-execution
        fowners root:vboxusers /opt/VirtualBox/VBoxHeadless
        fperms 4511 /opt/VirtualBox/VBoxHeadless
        pax-mark -m "${D}"/opt/VirtualBox/VBoxHeadless
...
Comment 1 Alessio Cassibba (X-Drum) 2009-02-26 20:40:44 UTC
(In reply to comment #0)
[..]

Thanks for your report, ebuilds for 2.1.2, 2.1.4 fixed in jokey's overlay,
other ebuilds in portage should be pruned/fixed