Lines 11-16
Link Here
|
11 |
import sys |
11 |
import sys |
12 |
import portage |
12 |
import portage |
13 |
from portage import os |
13 |
from portage import os |
|
|
14 |
from portage.const import BASH_BINARY |
15 |
from portage import selinux |
14 |
from portage.util._pty import _create_pty_or_pipe |
16 |
from portage.util._pty import _create_pty_or_pipe |
15 |
|
17 |
|
16 |
if sys.hexversion >= 0x3000000: |
18 |
if sys.hexversion >= 0x3000000: |
Lines 100-106
Link Here
|
100 |
|
102 |
|
101 |
self.args = fetch_args |
103 |
self.args = fetch_args |
102 |
self.env = fetch_env |
104 |
self.env = fetch_env |
|
|
105 |
if settings.selinux_enabled(): |
106 |
selinux.setexec(selinux.settype(settings['PORTAGE_FETCH_T'])) |
107 |
self.args = [BASH_BINARY, "-c", "exec \"$@\"", self.args[0]] + self.args |
108 |
|
103 |
SpawnProcess._start(self) |
109 |
SpawnProcess._start(self) |
|
|
110 |
|
111 |
if settings.selinux_enabled(): |
112 |
selinux.setexec(selinux.settype(settings['PORTAGE_T'])) |
113 |
|
104 |
|
114 |
|
105 |
def _pipe(self, fd_pipes): |
115 |
def _pipe(self, fd_pipes): |
106 |
"""When appropriate, use a pty so that fetcher progress bars, |
116 |
"""When appropriate, use a pty so that fetcher progress bars, |