Re: [Jack-Devel] su, limits, PAM and JACK

PrevNext  Index
DateTue, 22 May 2012 20:35:36 +0000
From Fons Adriaensen <[hidden] at linuxaudio dot org>
ToRobin Gareus <[hidden] at gareus dot org>
CcJACK Mailing List <[hidden] at lists dot jackaudio dot org>
In-Reply-ToRobin Gareus [Jack-Devel] su, limits, PAM and JACK
On Tue, May 22, 2012 at 06:52:38PM +0200, Robin Gareus wrote:
 
> 'user' is in the audio group, and limits.conf is set up. All works fine
> if I log-in as 'user' and launch `jackd -d alsa ..` manually.
> 
> If I log in as root (or call it from init):
> 
>   su user -c 'jackd ..'     # fails -> no rt priv
>   su user -l -c 'jackd ..'  # fails -> no rt priv
> 
> the actual error message from jack is
>   Cannot use real-time scheduling (RR/10)(1: Operation not permitted)

(This could be complete nonsense - I'm no expert on this)

IIRC, when you make changes to limits.conf then a re-login is
required for them to be effective. Which would logically imply
that a login is required before anything in limits.conf is applied.

Don't know if this is 'basic system' cq PAM behaviour or something
added by consolekit or policykit or similar - nothing as confusing
(and in the end insecure) as parallel security systems.

Ciao,

-- 
FA

A world of exhaustive, reliable metadata would be an utopia.
It's also a pipe-dream, founded on self-delusion, nerd hubris
and hysterically inflated market opportunities. (Cory Doctorow)
PrevNext  Index

1337719061.13236_0.ltw:2, <20120522203535.GA25485 at linuxaudio dot org>