Merge "shell: Add NO_LOCALSETTINGS restriction"
[lhc/web/wiklou.git] / includes / shell / FirejailCommand.php
index ec9eb09..a71b376 100644 (file)
@@ -115,6 +115,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';
                }