aboutsummaryrefslogtreecommitdiffstats
path: root/includes/shell/Shell.php
diff options
context:
space:
mode:
authorMax Semenik <maxsem.wiki@gmail.com>2018-05-30 19:30:29 -0700
committerMax Semenik <maxsem.wiki@gmail.com>2018-05-30 19:43:04 -0700
commit657a6b2497a8984fd0fa1262c8eb3a1f4e086e15 (patch)
tree07521e1e4fd40d6abbdb385e0dfce19f18875d48 /includes/shell/Shell.php
parent1af8d0d0c50a5c59808319cba05b96bbf9b6086e (diff)
downloadmediawikicore-657a6b2497a8984fd0fa1262c8eb3a1f4e086e15.tar.gz
mediawikicore-657a6b2497a8984fd0fa1262c8eb3a1f4e086e15.zip
Use PHP7 constant expression instead of a magic number
Change-Id: I84e13dc6019c429359df3395f0731d17859be06c
Diffstat (limited to 'includes/shell/Shell.php')
-rw-r--r--includes/shell/Shell.php23
1 files changed, 11 insertions, 12 deletions
diff --git a/includes/shell/Shell.php b/includes/shell/Shell.php
index 742e1424ad26..3f10c11a3281 100644
--- a/includes/shell/Shell.php
+++ b/includes/shell/Shell.php
@@ -44,18 +44,6 @@ use MediaWiki\MediaWikiServices;
class Shell {
/**
- * Apply a default set of restrictions for improved
- * security out of the box.
- *
- * Equal to NO_ROOT | SECCOMP | PRIVATE_DEV | NO_LOCALSETTINGS
- *
- * @note This value will change over time to provide increased security
- * by default, and is not guaranteed to be backwards-compatible.
- * @since 1.31
- */
- const RESTRICT_DEFAULT = 39;
-
- /**
* Disallow any root access. Any setuid binaries
* will be run without elevated access.
*
@@ -102,6 +90,17 @@ class Shell {
const NO_LOCALSETTINGS = 32;
/**
+ * Apply a default set of restrictions for improved
+ * security out of the box.
+ *
+ * @note This value will change over time to provide increased security
+ * by default, and is not guaranteed to be backwards-compatible.
+ * @since 1.31
+ */
+ const RESTRICT_DEFAULT = self::NO_ROOT | self::SECCOMP | self::PRIVATE_DEV |
+ self::NO_LOCALSETTINGS;
+
+ /**
* Don't apply any restrictions
*
* @since 1.31