Changeset 2582

Show
Ignore:
Timestamp:
08/09/07 01:10:52 (1 year ago)
Author:
dhozac
Message:

Don't hardcode the spaces to create/unshare.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/lib/syscall_ctxcreate-v21.hc

    r2581 r2582  
    3939  if (res != VC_NOCTX) { 
    4040    if (utilvserver_checkCompatConfig() & VC_VCI_SPACES) { 
    41       sys_unshare(CLONE_NEWUTS | CLONE_NEWIPC); 
    42       vc_set_namespace(VC_SAMECTX, CLONE_NEWUTS | CLONE_NEWIPC); 
     41      uint32_t spaces = vc_get_space_mask() & ~(CLONE_NEWNS|CLONE_FS); 
     42      sys_unshare(spaces); 
     43      vc_set_namespace(VC_SAMECTX, spaces); 
    4344    } 
    4445  }