[PlanetCCRMA] redhat trouble with grub

Noah Garrett Wallach logic@enabled.com
Mon Oct 11 06:39:01 2004


> >
> > I have not seen a response to this so far.  can you please just tell me how to
> > extract the "capabilities patch".  I will try to add it to the source rpm of
> > the Enterprise kernel.  I have a really nice tutorial for rebuilding a redhat
> > kernel.  I just need to know how to find and obtain the patch.
> 
> It is very small so here it is:
> 


Fernando,

I am not completely clear why this patch is not working.  What am I doing
wrong here?  any clues please?


--- snip ----

[root@dhcp-183-1-168-192 src]# cat patch
--- 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))
[root@dhcp-183-1-168-192 src]# patch -p0 < patch
patching file linux/include/linux/capability.h
patch: **** malformed patch at line 5: #define CAP_EMPTY_SET       to_cap_t(0)
 
[root@dhcp-183-1-168-192 src]# ls -l linux
lrwxrwxrwx    1 root     root           19 Oct 10 11:27 linux ->
linux-2.4.21-20.EL/
[root@dhcp-183-1-168-192 src]#

--- snip ---


cheers,

Noah



> ==== 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 ====
> 
> This will enable you to run jackstart (ie: jackd) with -R as a non-root
> user. It will obviously not do anything with regards to the latecy
> behavior of the kernel.
> 
> -- Fernando
> 
> _______________________________________________
> PlanetCCRMA mailing list
> PlanetCCRMA@ccrma.stanford.edu
> http://ccrma-mail.stanford.edu/mailman/listinfo/planetccrma