/**
 * Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
 * Use of this source code is governed by a BSD-style license that can be
 * found in the LICENSE file.
 */
package cn.edu.zjnu.acm.judge.sandbox.win32;

/**
 * <table><caption><b>The Token level specifies a set of security profiles
 * designed to provide the bulk of the security of
 * sandbox.</b></caption><tr><td>TokenLevel</td><td>Restricting
 * Sids</td><td>Deny
 * Only</td><td>Privileges</td></tr><tr><td>USER_LOCKDOWN</td><td>Null
 * Sid</td><td>All</td><td>None</td></tr>
 * <tr><td>USER_RESTRICTED</td><td>RESTRICTED</td><td>All</td><td>Traverse</td></tr>
 * <tr><td>USER_LIMITED</td><td>Users, Everyone, RESTRICTED</td><td>All except:
 * Users, Everyone, Interactive</td><td>Traverse</td></tr>
 * <tr><td>USER_INTERACTIVE</td><td>Users, Everyone, RESTRICTED,
 * Owner</td><td>All except: Users, Everyone, Interactive, Local, Authent-users,
 * User</td><td>Traverse</td></tr>
 * <tr><td>USER_RESTRICTED_NON_ADMIN</td><td>Users,
 * Everyone,Interactive,Local,Authent-users,User</td><td>All except: Users,
 * Everyone, Interactive, Local, Authent-users, User</td><td>Traverse</td></tr>
 * <tr><td>USER_RESTRICTED_SAME_ACCESS</td><td>All</td><td>None</td><td>All</td></tr>
 * <tr><td>USER_UNPROTECTED</td><td>None</td><td>None</td><td>All</td></tr>
 * </table>
 * <p>
 * The above restrictions are actually a transformation that is applied to the
 * existing broker process token. The resulting token that will be applied to
 * the target process depends both on the token level selected and on the broker
 * token itself.</p>
 * <p>
 * The LOCKDOWN and RESTRICTED are designed to allow access to almost nothing
 * that has security associated with and they are the recommended levels to run
 * sandboxed code specially if there is a chance that the broker is process
 * might be started by a user that belongs to the Admins or power users
 * groups.</p>
 */
public enum TokenLevel {
    USER_LOCKDOWN,
    USER_RESTRICTED,
    USER_LIMITED,
    USER_INTERACTIVE,
    USER_RESTRICTED_NON_ADMIN,
    USER_RESTRICTED_SAME_ACCESS,
    USER_UNPROTECTED,
    USER_LAST
}

/**
 * Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
 * Use of this source code is governed by a BSD-style license that can be
 * found in the LICENSE file.
 */
package cn.edu.zjnu.acm.judge.sandbox.win32;

/**
 * <table><caption><b>The Token level specifies a set of security profiles
 * designed to provide the bulk of the security of
 * sandbox.</b></caption><tr><th>TokenLevel</th><th>Restricting
 * Sids</th><th>Deny
 * Only</th><th>Privileges</th></tr><tr><td>USER_LOCKDOWN</td><td>Null
 * Sid</td><td>All</td><td>None</td></tr>
 * <tr><td>USER_RESTRICTED</td><td>RESTRICTED</td><td>All</td><td>Traverse</td></tr>
 * <tr><td>USER_LIMITED</td><td>Users, Everyone, RESTRICTED</td><td>All except:
 * Users, Everyone, Interactive</td><td>Traverse</td></tr>
 * <tr><td>USER_INTERACTIVE</td><td>Users, Everyone, RESTRICTED,
 * Owner</td><td>All except: Users, Everyone, Interactive, Local, Authent-users,
 * User</td><td>Traverse</td></tr>
 * <tr><td>USER_RESTRICTED_NON_ADMIN</td><td>Users,
 * Everyone,Interactive,Local,Authent-users,User</td><td>All except: Users,
 * Everyone, Interactive, Local, Authent-users, User</td><td>Traverse</td></tr>
 * <tr><td>USER_RESTRICTED_SAME_ACCESS</td><td>All</td><td>None</td><td>All</td></tr>
 * <tr><td>USER_UNPROTECTED</td><td>None</td><td>None</td><td>All</td></tr>
 * </table>
 * <p>
 * The above restrictions are actually a transformation that is applied to the
 * existing broker process token. The resulting token that will be applied to
 * the target process depends both on the token level selected and on the broker
 * token itself.</p>
 * <p>
 * The LOCKDOWN and RESTRICTED are designed to allow access to almost nothing
 * that has security associated with and they are the recommended levels to run
 * sandboxed code specially if there is a chance that the broker is process
 * might be started by a user that belongs to the Admins or power users
 * groups.</p>
 */
public enum TokenLevel {
    USER_LOCKDOWN,
    USER_RESTRICTED,
    USER_LIMITED,
    USER_INTERACTIVE,
    USER_RESTRICTED_NON_ADMIN,
    USER_RESTRICTED_SAME_ACCESS,
    USER_UNPROTECTED,
    USER_LAST
}

Update TokenLevel.java