Re: [Cooker] Virtual private servers

2002-03-25 Thread Oden Eriksson

On Sundayen den 24 March 2002 22.17, Stefan van der Eijk wrote:
 Would adding virtual private servers functionality
 (http://www.solucorp.qc.ca/miscprj/s_context.hc) be a nice feature for
 Mandrake?

 It's being developped by the same people that are doing Linuxconf it
 seems. It's GPL. The features on the website look good, I'm currently
 thinking about building a mdk kernel with support for it.

He he, I have also nagged about this... Hopefully we will see it included 
later on.

-- 
Regards // Oden Eriksson




[Cooker] Virtual private servers

2002-03-24 Thread Stefan van der Eijk

Would adding virtual private servers functionality 
(http://www.solucorp.qc.ca/miscprj/s_context.hc) be a nice feature for 
Mandrake?

It's being developped by the same people that are doing Linuxconf it 
seems. It's GPL. The features on the website look good, I'm currently 
thinking about building a mdk kernel with support for it.

While patching the kernel I've had a few conflicts with the patch:

kernel/signal.c

***
*** 678,683 
p = find_task_by_pid(pid);
error = -ESRCH;
!   if (p)
!   error = send_sig_info(sig, info, p);
read_unlock(tasklist_lock);
return error;
--- 680,701 
p = find_task_by_pid(pid);
error = -ESRCH;
!   if (p != NULL){
!   switch((unsigned long)info) {
!   case 0:
!   if(p-s_context == current-s_context){
!   error = send_sig_info(sig, info, p);
!   }
!   break;
!   case 1:
!   error = send_sig_info(sig, info, p);
!   break;
!   default:
!   if( info-si_code == SI_KERNEL
!   || p-s_context == current-s_context){
!   error = send_sig_info(sig, info, p);
!   }
!   break;
!   }
!   }
read_unlock(tasklist_lock);
return error

kernel/sys.c.rej
***
*** 1116,1119 
  {
int errno;
 
if (!capable(CAP_SYS_ADMIN))
--- 1186,1190 
  {
int errno;
+   char *domainname;
 
if (!capable(CAP_SYS_ADMIN))

both conflict with linux-2.4.18-rc4-grsecurity-1.9.2.patch.bz2

without the grsecurity patch the virtual server patch applies fine.

If the kernel compiles fine, I can post together with the vserver 
package it if there is interest for it.

Stefan