-
-
Notifications
You must be signed in to change notification settings - Fork 274
/
Copy pathdisablefs.bats
38 lines (30 loc) · 1.02 KB
/
disablefs.bats
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#!/usr/bin/env bats
load test_helper
@test "Verify that kernel module cramfs is disabled" {
run bash -c "modprobe -n -v cramfs | grep 'install /bin/true'"
[ "$status" -eq 0 ]
}
@test "Verify that kernel module freevxfs is disabled" {
run bash -c "modprobe -n -v freevxfs | grep 'install /bin/true'"
[ "$status" -eq 0 ]
}
@test "Verify that kernel module hfs is disabled" {
run bash -c "modprobe -n -v hfs | grep 'install /bin/true'"
[ "$status" -eq 0 ]
}
@test "Verify that kernel module hfsplus is disabled" {
run bash -c "modprobe -n -v hfsplus | grep 'install /bin/true'"
[ "$status" -eq 0 ]
}
@test "Verify that kernel module ksmbd is disabled" {
run bash -c "modprobe -n -v ksmbd | grep 'install /bin/true'"
[ "$status" -eq 0 ]
}
@test "Verify that kernel module jffs2 is disabled" {
run bash -c "modprobe -n -v jffs2 | grep 'install /bin/true'"
[ "$status" -eq 0 ]
}
@test "Verify that kernel module udf is disabled" {
run bash -c "modprobe -n -v udf | grep 'install /bin/true'"
[ "$status" -eq 0 ]
}