Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 64780 - portage does not merge directories correctly
Summary: portage does not merge directories correctly
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All All
: High critical
Assignee: Portage team
URL:
Whiteboard:
Keywords: InVCS
Depends on:
Blocks:
 
Reported: 2004-09-20 11:50 UTC by petre rodan (RETIRED)
Modified: 2004-10-15 12:10 UTC (History)
2 users (show)

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


Attachments
portage.py.diff (portage.py.diff,613 bytes, patch)
2004-09-20 11:51 UTC, petre rodan (RETIRED)
Details | Diff
portage.py.diff (portage.py.diff,822 bytes, patch)
2004-09-20 23:29 UTC, petre rodan (RETIRED)
Details | Diff
portage.py.diff (portage.py.diff,812 bytes, patch)
2004-09-22 08:24 UTC, petre rodan (RETIRED)
Details | Diff
portage-2.0.51_rc1.ebuild.diff (portage-2.0.51_rc1.ebuild.diff,701 bytes, patch)
2004-09-22 08:30 UTC, petre rodan (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description petre rodan (RETIRED) gentoo-dev 2004-09-20 11:50:51 UTC
during merge the SELinux labels are not set on the destination _directories_.

for S_ISREG, S_ISBLK, S_ISLNK, ... special care is taken (either by using selinux.secure_copy, selinux.secure_symlink), but for directories there is no labeling during the merge process.

have a look at my patch. it works for me :)
Comment 1 petre rodan (RETIRED) gentoo-dev 2004-09-20 11:51:56 UTC
Created attachment 40027 [details, diff]
portage.py.diff
Comment 2 petre rodan (RETIRED) gentoo-dev 2004-09-20 23:29:07 UTC
Created attachment 40054 [details, diff]
portage.py.diff

just realized that there is more than one place where labels have to be set for
merged directories
Comment 3 Chris PeBenito (RETIRED) gentoo-dev 2004-09-22 08:18:17 UTC
ok this is a problem, just have to get a correct patch for it :x
Comment 4 petre rodan (RETIRED) gentoo-dev 2004-09-22 08:24:07 UTC
Created attachment 40165 [details, diff]
portage.py.diff

latest version
Comment 5 petre rodan (RETIRED) gentoo-dev 2004-09-22 08:30:27 UTC
Created attachment 40166 [details, diff]
portage-2.0.51_rc1.ebuild.diff

updated RDEPEND line
Comment 6 Nicholas Jones (RETIRED) gentoo-dev 2004-09-27 08:06:19 UTC
in 2.0.51_rc6
Comment 7 petre rodan (RETIRED) gentoo-dev 2004-10-15 12:10:20 UTC
hmm, should have closed this ages ago.

thanks Nicholas, it works great.