Denys Vlasenko | 6f1c942 | 2018-01-14 14:44:30 +0100 | [diff] [blame] | 1 | #!/bin/sh |
| 2 | |
| 3 | exec >NOFORK_NOEXEC.lst1 |
| 4 | |
| 5 | false && grep -Fv 'NOFORK' NOFORK_NOEXEC.lst \ |
| 6 | | grep -v 'noexec.' | grep -v 'noexec$' \ |
| 7 | | grep -v ' suid' \ |
| 8 | | grep -v ' daemon' \ |
| 9 | | grep -v ' longterm' \ |
| 10 | | grep rare |
| 11 | |
| 12 | echo === nofork candidate |
| 13 | grep -F 'nofork candidate' NOFORK_NOEXEC.lst \ |
| 14 | |
| 15 | echo === noexec candidate |
| 16 | grep -F 'noexec candidate' NOFORK_NOEXEC.lst \ |
| 17 | |
| 18 | echo === ^C |
| 19 | grep -F '^C' NOFORK_NOEXEC.lst \ |
| 20 | | grep -F ' - ' \ |
| 21 | |
| 22 | echo === talks |
| 23 | grep -F 'talks' NOFORK_NOEXEC.lst \ |
| 24 | | grep -F ' - ' \ |
| 25 | |
| 26 | echo === |
| 27 | grep -Fv 'NOFORK' NOFORK_NOEXEC.lst \ |
| 28 | | grep '^[^ ][^ ]* - ' \ |
| 29 | | grep -v 'noexec.' | grep -v ' - noexec$' \ |
| 30 | | grep -v ' suid' \ |
| 31 | | grep -v ' daemon' \ |
| 32 | | grep -v 'longterm' \ |
| 33 | | grep -v 'interactive' \ |
| 34 | | grep -v 'hardware' \ |