[PlanetCCRMA] root vs capabilities

Polashek, Matthew Matthew.Polashek@scottforesman.com
Tue Jun 1 09:29:01 2004


I cannot run Jack in a real-time manor as a regular user.  Jack simply wont
start up in that context.

Matt


> ----------
> From: 	R Parker
> Sent: 	Tuesday, June 1, 2004 12:07 PM
> To: 	PlanetCCRMA@ccrma.Stanford.EDU
> Subject: 	[PlanetCCRMA] root vs capabilities
> 
> Hi,
> 
> Linux stepdaddy 2.4.26-1.ll.rh90.ccrma #1 Fri Apr 16
> 21:56:56 PDT 2004 i686 athlon i386 GNU/Linux
> 
> [root@stepdaddy master03]# cat
> /proc/sys/kernel/lowlatency
> 1
> 
> I've been experiencing a greater number of xruns while
> running jack, ardour and jamin as a normal user than I
> see while working as root.
> 
> An observation, from the jack FAQ:
>  Go to /usr/src/linux/include/linux (or wherever you
> have your kernel sources) and in the file capability.h
> change the line
> 
>         #define CAP_INIT_EFF_SET   
> to_cap_t(~0&~CAP_TO_MASK(CAP_SETPCAP))
> 
> to
> 
>         #define CAP_INIT_EFF_SET    to_cap_t( ~0 )
> 
> and the line
> 
>         #define CAP_INIT_INH_SET    to_cap_t(0)
> 
> to
> 
>         #define CAP_INIT_INH_SET    to_cap_t( ~0 )
> 
> From 2.4.26-1.ll.rh90.ccrma:
> #define CAP_INIT_EFF_SET    to_cap_t(~0)
> #define CAP_INIT_INH_SET    to_cap_t(~0)
> 
> I imagine it's highly unlikely that the differnce in
> syntax makes any difference but being ignorant of the
> rules I suppose it's best to ask.
> 
> I am puzzled. How could there be a differnce between
> the two users?
> 
> If I understand capabilities, then in the context of
> my experience it's irrelevant what desktop I use (KDE)
> and what processes may be running as a result. Bottom
> line, everytime I attempt to work as a normal user I
> give up and run everything as su because xruns and
> disconnections from jack make it impossible to work.
> 
> Anyone else observed this or have any thoughts?
> 
> ron
> 
> 
> 	
> 		
> __________________________________
> Do you Yahoo!?
> Friends.  Fun.  Try the all-new Yahoo! Messenger.
> http://messenger.yahoo.com/ 
> 
> _______________________________________________
> PlanetCCRMA mailing list
> PlanetCCRMA@ccrma.stanford.edu
> http://ccrma-mail.stanford.edu/mailman/listinfo/planetccrma
> 
> 
> 
> 
****************************************************************************
This email may contain confidential material.
If you were not an intended recipient, 
please notify the sender and delete all copies.
We may monitor email to and from our network.

****************************************************************************