shell: Add NO_LOCALSETTINGS restriction
[lhc/web/wiklou.git] / includes / shell / FirejailCommand.php
index 79f679d..68a1822 100644 (file)
@@ -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';
                }