Source

mindref-sbin / fs-readonly

Full commit
1
2
3
4
5
6
7
8
9
#!/bin/sh

/bin/mount -o remount,ro /usr || \
    echo 'Failed to remount /usr ro'
/bin/mount -o remount,noexec /var || \
    echo 'Failed to remount /var noexec'
/bin/mount -o remount,noexec /tmp || \
    echo 'Failed to remount /tmp noexec'