Skip to content

Instantly share code, notes, and snippets.

@eam
Created February 11, 2016 18:46
Show Gist options
  • Select an option

  • Save eam/57d9cbff37feefe9db8c to your computer and use it in GitHub Desktop.

Select an option

Save eam/57d9cbff37feefe9db8c to your computer and use it in GitHub Desktop.
Illustrating that mapped executable segments cannot be modified -- by anyone at any privilege level.
[eam@nitre ~]$ cp $(which sleep) /tmp/my_sleep
[eam@nitre ~]$ /tmp/my_sleep 60
[root@nitre ~]# echo test >> /tmp/my_sleep
-bash: /tmp/my_sleep: Text file busy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment