blob: e231247f6c4d99b41eeb479c6e69443f737272bb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
// This test does not run any code. As long as mongod is
// up and running, it is successful
'use strict';
load('jstests/selinux/lib/selinux_base_test.js');
class TestDefinition extends SelinuxBaseTest {
async run() {
// The only things we are verifying here:
// - that we are connected
// - that process is running in correct SELinux context
assert(db);
assert.eq(0,
run("bash", "-c", "ps -efZ | grep -P 'system_u:system_r:mongod_t:s0[ ]+mongod'"));
jsTest.log("success");
}
}
|