blob: 1ba4f656ca59f30e854d301108e618797e6a483d [file] [log] [blame]
brians343bc112013-02-10 01:53:46 +00001#!/bin/bash
Brian74aa2602014-04-02 12:25:14 -07002
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.
brians343bc112013-02-10 01:53:46 +00006
7setcap 'CAP_IPC_LOCK+pie CAP_SYS_NICE+pie' $0
8