Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 280507 Details for
Bug 375835
Enhance BinpkgFetcher to support SELinux
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Support transition to portage_fetch_t
BinpkgFetcher.patch (text/plain), 1014 bytes, created by
Sven Vermeulen
on 2011-07-21 08:22:37 UTC
(
hide
)
Description:
Support transition to portage_fetch_t
Filename:
MIME Type:
Creator:
Sven Vermeulen
Created:
2011-07-21 08:22:37 UTC
Size:
1014 bytes
patch
obsolete
>--- /usr/lib64/portage/pym/_emerge/BinpkgFetcher.py 2011-07-03 09:05:48.000000000 +0200 >+++ BinpkgFetcher.py 2011-07-21 09:52:04.954000228 +0200 >@@ -11,6 +11,8 @@ > import sys > import portage > from portage import os >+from portage.const import BASH_BINARY >+from portage import selinux > from portage.util._pty import _create_pty_or_pipe > > if sys.hexversion >= 0x3000000: >@@ -100,7 +102,15 @@ > > self.args = fetch_args > self.env = fetch_env >+ if settings.selinux_enabled(): >+ selinux.setexec(selinux.settype(settings['PORTAGE_FETCH_T'])) >+ self.args = [BASH_BINARY, "-c", "exec \"$@\"", self.args[0]] + self.args >+ > SpawnProcess._start(self) >+ >+ if settings.selinux_enabled(): >+ selinux.setexec(selinux.settype(settings['PORTAGE_T'])) >+ > > def _pipe(self, fd_pipes): > """When appropriate, use a pty so that fetcher progress bars,
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 375835
:
280507
|
280541