[PlanetCCRMA] redhat trouble with grub

Noah Garrett Wallach logic@enabled.com
Sun Oct 10 11:32:01 2004


On 08 Oct 2004 12:06:09 -0700, Fernando Pablo Lopez-Lezcano wrote
> On Fri, 2004-10-08 at 11:50, Noah Garrett Wallach wrote:
> > > 
> > > Yes, I remember now. Sorry, but I don't have the time to build custom
> > > kernels for more distros, at least not now :-(
> > > 
> > > You could download the source for this kernel, extract the "capabilities
> > > patch" (very simple) patch, and try to add it to the source rpm of 
> > > the Enterprise kernel you are using and rebuild it...
> > > 
> > > http://ccrma.stanford.edu/planetccrma/mirror/all/linux/SRPMS/kernel-
> > > 2.4.20-30.1.caps.src.rpm
> >
> > 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.  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