Re: [vserver] context count

About this list Date view Thread view Subject view Author view Attachment view

From: Joel Vandal (jvandal_at_infoteck.qc.ca)
Date: Tue May 14 2002 - 14:01:23 EDT


> Am I correct in my understanding that the security context is essentially
4
> hex digits (2 bytes long)? So if I were to start and stop vservers in a
> continuous loop for 65535 times, then on the next time it will fail?

If you check on the Kernel Patch, on signal.c (sys_new_s_context function)
you will see something like:

#define MAX_S_CONTEXT 65535

if (alloc_ctx == 1) { ... }
else if (alloc_ctx > MAX_S_CONTEXT) {
 alloc_ctx = 2;
}

I assume that when the countern reach 65535, they restart the count at 2
(Context 0 and 1 are reserved).

--
Joel Vandal

About this list Date view Thread view Subject view Author view Attachment view

This archive was generated by hypermail 2.1.4 : Mon Aug 19 2002 - 12:01:01 EDT