brians | 343bc11 | 2013-02-10 01:53:46 +0000 | [diff] [blame] | 1 | #!/bin/bash |
Brian | 74aa260 | 2014-04-02 12:25:14 -0700 | [diff] [blame] | 2 | |
3 | # Sets capabilities on a binary so it can run as realtime code as a user who | ||||
4 | # doesn't have those rlimits or some other reason they can. | ||||
5 | # Has to be run as root. | ||||
brians | 343bc11 | 2013-02-10 01:53:46 +0000 | [diff] [blame] | 6 | |
7 | setcap 'CAP_IPC_LOCK+pie CAP_SYS_NICE+pie' $0 | ||||
8 |