Skip to content

Commit c2f323a

Browse files
RajatGupta02Rajat Gupta
andauthored
Remove testSystemCallFilter temporarily (#18123)
Signed-off-by: Rajat Gupta <gptrajat@amazon.com> Co-authored-by: Rajat Gupta <gptrajat@amazon.com>
1 parent 084ec06 commit c2f323a

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)