Lines 1384-1392
Link Here
|
1384 |
|
1384 |
|
1385 |
# @FUNCTION: filter_readonly_variables |
1385 |
# @FUNCTION: filter_readonly_variables |
1386 |
# @DESCRIPTION: [--filter-sandbox] [--allow-extra-vars] |
1386 |
# @DESCRIPTION: [--filter-sandbox] [--allow-extra-vars] |
1387 |
# Read an environment from stdin and echo to stdout while filtering readonly |
1387 |
# Read an environment from stdin and echo to stdout while filtering variables |
1388 |
# variables. |
1388 |
# with names that are known to cause interference: |
1389 |
# |
1389 |
# |
|
|
1390 |
# * some specific variables for which bash does not allow assignment |
1391 |
# * some specific variables that affect portage or sandbox behavior |
1392 |
# * variable names that begin with a digit or that contain any |
1393 |
# non-alphanumeric characters that are not be supported by bash |
1394 |
# |
1390 |
# --filter-sandbox causes all SANDBOX_* variables to be filtered, which |
1395 |
# --filter-sandbox causes all SANDBOX_* variables to be filtered, which |
1391 |
# is only desired in certain cases, such as during preprocessing or when |
1396 |
# is only desired in certain cases, such as during preprocessing or when |
1392 |
# saving environment.bz2 for a binary or installed package. |
1397 |
# saving environment.bz2 for a binary or installed package. |
Lines 1414-1420
Link Here
|
1414 |
SANDBOX_DEBUG_LOG SANDBOX_DISABLED SANDBOX_LIB |
1419 |
SANDBOX_DEBUG_LOG SANDBOX_DISABLED SANDBOX_LIB |
1415 |
SANDBOX_LOG SANDBOX_ON" |
1420 |
SANDBOX_LOG SANDBOX_ON" |
1416 |
filtered_vars="${readonly_bash_vars} ${READONLY_PORTAGE_VARS} |
1421 |
filtered_vars="${readonly_bash_vars} ${READONLY_PORTAGE_VARS} |
1417 |
BASH_[_[:alnum:]]* PATH" |
1422 |
BASH_[_[:alnum:]]* PATH |
|
|
1423 |
[[:digit:]][_[:alnum:]]* |
1424 |
[^=[:space:]]*[^_[:alnum:]=[:space:]][^=[:space:]]*" |
1418 |
if hasq --filter-sandbox $* ; then |
1425 |
if hasq --filter-sandbox $* ; then |
1419 |
filtered_vars="${filtered_vars} SANDBOX_[_[:alnum:]]*" |
1426 |
filtered_vars="${filtered_vars} SANDBOX_[_[:alnum:]]*" |
1420 |
else |
1427 |
else |