forked from konstruktoid/hardening
-
Notifications
You must be signed in to change notification settings - Fork 0
/
disablemod.bats
78 lines (62 loc) · 2.22 KB
/
disablemod.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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
#!/usr/bin/env bats
load test_helper
@test "Verify that kernel module bluetooth is disabled" {
run bash -c "modprobe -n -v bluetooth | grep 'install /bin/true'"
[ "$status" -eq 0 ]
}
@test "Verify that kernel module bnep is disabled" {
run bash -c "modprobe -n -v bnep | grep 'install /bin/true'"
[ "$status" -eq 0 ]
}
@test "Verify that kernel module btusb is disabled" {
run bash -c "modprobe -n -v btusb | grep 'install /bin/true'"
[ "$status" -eq 0 ]
}
@test "Verify that kernel module cpia2 is disabled" {
run bash -c "modprobe -n -v cpia2 | grep 'install /bin/true'"
[ "$status" -eq 0 ]
}
@test "Verify that kernel module firewire-core is disabled" {
run bash -c "modprobe -n -v firewire-core | grep 'install /bin/true'"
[ "$status" -eq 0 ]
}
@test "Verify that kernel module floppy is disabled" {
run bash -c "modprobe -n -v floppy | grep 'install /bin/true'"
[ "$status" -eq 0 ]
}
@test "Verify that kernel module n_hdlc is disabled" {
run bash -c "modprobe -n -v n_hdlc | grep 'install /bin/true'"
[ "$status" -eq 0 ]
}
@test "Verify that kernel module net-pf-31 is disabled" {
run bash -c "modprobe -n -v net-pf-31 | grep 'install /bin/true'"
[ "$status" -eq 0 ]
}
@test "Verify that kernel module pcspkr is disabled" {
run bash -c "modprobe -n -v pcspkr | grep 'install /bin/true'"
[ "$status" -eq 0 ]
}
@test "Verify that kernel module soundcore is disabled" {
run bash -c "modprobe -n -v soundcore | grep 'install /bin/true'"
[ "$status" -eq 0 ]
}
@test "Verify that kernel module thunderbolt is disabled" {
run bash -c "modprobe -n -v thunderbolt | grep 'install /bin/true'"
[ "$status" -eq 0 ]
}
@test "Verify that kernel module usb-midi is disabled" {
run bash -c "modprobe -n -v usb-midi | grep 'install /bin/true'"
[ "$status" -eq 0 ]
}
@test "Verify that kernel module usb-storage is disabled" {
run bash -c "modprobe -n -v usb-storage | grep 'install /bin/true'"
[ "$status" -eq 0 ]
}
@test "Verify that kernel module uvcvideo is disabled" {
run bash -c "modprobe -n -v uvcvideo | grep 'install /bin/true'"
[ "$status" -eq 0 ]
}
@test "Verify that kernel module v4l2_common is disabled" {
run bash -c "modprobe -n -v v4l2_common | grep 'install /bin/true'"
[ "$status" -eq 0 ]
}