Skip to content

Commit

Permalink
Remove references to bootstrap.system_call_filter (elastic#85964)
Browse files Browse the repository at this point in the history
  • Loading branch information
grcevski committed Apr 18, 2022
1 parent a42e4bf commit 127bdd9
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 15 deletions.
5 changes: 2 additions & 3 deletions docs/reference/setup/bootstrap-checks.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -195,10 +195,9 @@ filters are installed to prevent the ability to execute system calls
related to forking as a defense mechanism against arbitrary code
execution attacks on Elasticsearch. The system call filter check ensures
that if system call filters are enabled, then they were successfully
installed. To pass the system call filter check you must either fix any
installed. To pass the system call filter check you must fix any
configuration errors on your system that prevented system call filters
from installing (check your logs), or *at your own risk* disable system
call filters by setting `bootstrap.system_call_filter` to `false`.
from installing (check your logs).

=== OnError and OnOutOfMemoryError checks

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,7 @@ private BootstrapSettings() {}
);

public static final Setting<Boolean> MEMORY_LOCK_SETTING = Setting.boolSetting("bootstrap.memory_lock", false, Property.NodeScope);
public static final Setting<Boolean> SYSTEM_CALL_FILTER_SETTING = Setting.boolSetting(
"bootstrap.system_call_filter",
true,
Property.DeprecatedWarning,
Property.NodeScope
);

public static final Setting<Boolean> CTRLHANDLER_SETTING = Setting.boolSetting("bootstrap.ctrlhandler", true, Property.NodeScope);

}
Original file line number Diff line number Diff line change
Expand Up @@ -441,12 +441,7 @@ String getUseSerialGC() {

public void testSystemCallFilterCheck() throws NodeValidationException {
final AtomicBoolean isSystemCallFilterInstalled = new AtomicBoolean();
final BootstrapContext context;
if (randomBoolean()) {
context = createTestContext(Settings.builder().put("bootstrap.system_call_filter", true).build(), null);
} else {
context = emptyContext;
}
final BootstrapContext context = emptyContext;

final BootstrapChecks.SystemCallFilterCheck systemCallFilterEnabledCheck = new BootstrapChecks.SystemCallFilterCheck() {

Expand Down

0 comments on commit 127bdd9

Please sign in to comment.