Skip to content

Commit d11e44a

Browse files
opensearch-trigger-bot[bot]github-actions[bot]Rajat Gupta
authored
Remove testSystemCallFilter temporarily (#18123) (#18127)
(cherry picked from commit c2f323a) Signed-off-by: Rajat Gupta <gptrajat@amazon.com> Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: Rajat Gupta <gptrajat@amazon.com>
1 parent f55af4e commit d11e44a

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

qa/systemd-test/src/test/java/org/opensearch/systemdinteg/SystemdIntegTests.java

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -135,19 +135,6 @@ public void testFileDescriptorLimit() throws IOException, InterruptedException {
135135
limits.contains("Max open files unlimited unlimited"));
136136
}
137137

138-
public void testSystemCallFilter() throws IOException, InterruptedException {
139-
// Check if Seccomp is enabled
140-
String seccomp = executeCommand("sudo su -c 'grep Seccomp /proc/" + opensearchPid + "/status'", "Failed to read Seccomp status");
141-
assertFalse("Seccomp should be enabled", seccomp.contains("0"));
142-
143-
// Test specific system calls that should be blocked
144-
String rebootResult = executeCommand("sudo su opensearch -c 'kill -s SIGHUP 1' 2>&1 || echo 'Operation not permitted'", "Failed to test reboot system call");
145-
assertTrue("Reboot system call should be blocked", rebootResult.contains("Operation not permitted"));
146-
147-
String swapResult = executeCommand("sudo su opensearch -c 'swapon -a' 2>&1 || echo 'Operation not permitted'", "Failed to test swap system call");
148-
assertTrue("Swap system call should be blocked", swapResult.contains("Operation not permitted"));
149-
}
150-
151138
public void testOpenSearchProcessCannotExit() throws IOException, InterruptedException {
152139

153140
String scriptPath;

0 commit comments

Comments
 (0)