Changeset 2593

Show
Ignore:
Timestamp:
08/21/07 20:39:03 (1 year ago)
Author:
dhozac
Message:

Add a static context sanity check.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/scripts/vserver.functions

    r2589 r2593  
    10811081procfs-security. Please read the FAQ for more details 
    10821082http://linux-vserver.org/Proc-Security" 
     1083 
     1084    test -e "$cfgdir"/context || { 
     1085        TYPE=$( $_VSERVER_INFO 49152 XIDTYPE ) 
     1086        test "$TYPE" != "static" || panic $"\ 
     1087The kernel does not have dynamic contexts enabled. Please configure 
     1088a static one by executing 
     1089 
     1090  echo [number between 2 and 49151] > $cfgdir/context" 
     1091    } 
    10831092} 
    10841093