Assume the Linux root
sets a trap on some signal in /etc/bash.bashrc
, say:
trap 'rm -f ~/tmpfile' EXIT
root
does not want any other user to mess up with this trap. So, he wants to make the trap "read only," such that no user can change it. Is this possible in bash
?