dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
shell: Add NO_LOCALSETTINGS restriction
[lhc/web/wiklou.git]
/
includes
/
shell
/
FirejailCommand.php
diff --git
a/includes/shell/FirejailCommand.php
b/includes/shell/FirejailCommand.php
index
79f679d
..
68a1822
100644
(file)
--- a/
includes/shell/FirejailCommand.php
+++ b/
includes/shell/FirejailCommand.php
@@
-110,6
+110,10
@@
class FirejailCommand extends Command {
}
}
+ if ( $this->hasRestriction( Shell::NO_LOCALSETTINGS ) ) {
+ $cmd[] = '--blacklist=' . realpath( MW_CONFIG_FILE );
+ }
+
if ( $this->hasRestriction( Shell::NO_ROOT ) ) {
$cmd[] = '--noroot';
}