Skip to content

Instantly share code, notes, and snippets.

@donaldh
Last active August 29, 2015 14:21
Show Gist options
  • Save donaldh/8ef47058c0d5a68be413 to your computer and use it in GitHub Desktop.
Save donaldh/8ef47058c0d5a68be413 to your computer and use it in GitHub Desktop.
Linux capabilities to enable user access to /dev/mem
host% sudo setcap "cap_dac_override+ep cap_sys_rawio+ep" <filename>
host% getcap <filename>
<filename> = cap_dac_override,cap_sys_rawio+ep
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment