Re: [linux-audio-user] building new machine, couple simple questions

New Message Reply About this list Date view Thread view Subject view Author view Other groups

Subject: Re: [linux-audio-user] building new machine, couple simple questions
From: Fernando Pablo Lopez-Lezcano (nando_AT_ccrma.Stanford.EDU)
Date: Mon Mar 03 2003 - 06:44:55 EET


> Also, can someone point me to docs for enabling/using
> a capabilities enabled kernel? Enabling normal user
> capabilities for jackd is my objective. I believe
> Fernando has this included in the CCRMA stuff but a
> quick google didn't find any docs. They're probably
> there. Hints appreciated. I'll search LAD
> archives...it's probably all there.

This is what you need:
==== CUT HERE ====
--- linux/include/linux/capability.h~ Thu Nov 22 11:46:19 2001
+++ linux/include/linux/capability.h Fri Mar 15 15:16:20 2002
@@ -303,8 +303,8 @@

 #define CAP_EMPTY_SET to_cap_t(0)
 #define CAP_FULL_SET to_cap_t(~0)
-#define CAP_INIT_EFF_SET to_cap_t(~0 & ~CAP_TO_MASK(CAP_SETPCAP))
-#define CAP_INIT_INH_SET to_cap_t(0)
+#define CAP_INIT_EFF_SET to_cap_t(~0)
+#define CAP_INIT_INH_SET to_cap_t(~0)

 #define CAP_TO_MASK(x) (1 << (x))
 #define cap_raise(c, flag) (cap_t(c) |= CAP_TO_MASK(flag))
==== CUT HERE ====

-- Fernando


New Message Reply About this list Date view Thread view Subject view Author view Other groups

This archive was generated by hypermail 2b28 : Mon Mar 03 2003 - 06:46:27 EET