setcap.sh 672 B

1234567891011121314151617
  1. if [ -x /sbin/setcap ]; then
  2. bin=(
  3. jackdbus jack_monitor_client jack_latent_client alsa_in
  4. jack_midi_dump jack_showtime jack_rec jack_zombie jack_midiseq
  5. jack_thru jack_connect jack_net_slave jack_bufsize jack_wait
  6. alsa_out jack_freewheel jack_server_control jack_net_master
  7. jack_evmon jack_metro jack_simple_client jack_lsp jack_cpu
  8. jack_control jack_netsource jack_test jack_session_notify
  9. jack_alias jack_iodelay jackd jack_simple_session_client
  10. jack_midisine jack_unload jack_load jack_samplerate
  11. jack_midi_latency_test jack_cpu_load jack_multiple_metro)
  12. for i in ${bin[@]}; do
  13. /sbin/setcap cap_ipc_lock,cap_sys_nice=ep usr/bin/$i
  14. done
  15. fi