aboutsummaryrefslogtreecommitdiff
path: root/NOFORK_NOEXEC.sh
blob: f4eeeef87a78cc669dd15ed6e578e889909f05e3 (plain)
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
#!/bin/sh

exec >NOFORK_NOEXEC.lst1

false && grep -Fv 'NOFORK' NOFORK_NOEXEC.lst \
| grep -v 'noexec.' | grep -v 'noexec$' \
| grep -v ' suid' \
| grep -v ' daemon' \
| grep -v ' longterm' \
| grep rare

echo === nofork candidate
grep -F 'nofork candidate' NOFORK_NOEXEC.lst \

echo === noexec candidate
grep -F 'noexec candidate' NOFORK_NOEXEC.lst \

echo === ^C
grep -F '^C' NOFORK_NOEXEC.lst \
| grep -F ' - ' \

echo === talks
grep -F 'talks' NOFORK_NOEXEC.lst \
| grep -F ' - ' \

echo ===
grep -Fv 'NOFORK' NOFORK_NOEXEC.lst \
| grep '^[^ ][^ ]* - ' \
| grep -v 'noexec.' | grep -v ' - noexec$' \
| grep -v ' suid' \
| grep -v ' daemon' \
| grep -v 'longterm' \
| grep -v 'interactive' \
| grep -v 'hardware' \