Access Rights for Access-Token Objects(访问令牌对象的访问权限)

An application cannot change the access control list of an object unless the application has the rights to do so. These rights are controlled by a security descriptor in the access token for the object. For more information about security, see Access Control Model.

(应用程序不能更改对象的ACL,除非应用程序拥有修改对象ACL的权限。这些权限由对象的访问令牌中的一个安全描述符控制。)

To get or set the security descriptor for an access token, call the GetKernelObjectSecurity and SetKernelObjectSecurity functions.

(GetKernelObjectSecurity可以获取访问令牌的安全描述符,SetKernelObjectSecurity函数可以设置安全访问令牌的安全描述符。)

When you call the OpenProcessToken or OpenThreadToken function to get a handle to an access token, the system checks the requested access rights against the DACL in the token's security descriptor.

(当调用OpenProcessToken或者OpenThreadToken函数请求获取访问令牌的句柄时,系统使用访问令牌的安全描述符中的DACL检查该请求的访问权限。)

The following are valid access rights for access-token objects:

  • The DELETE, READ_CONTROL, WRITE_DAC, and WRITE_OWNER standard access rights. Access tokens do not support the SYNCHRONIZE standard access right.
  • The ACCESS_SYSTEM_SECURITY right to get or set the SACL in the object's security descriptor.
  • The specific access rights for access tokens, which are listed in the following table.

(以下是对于访问令牌对象有效的访问权限:

  • 标准的访问权限,DELETE、READ_CONTROL、WRITE_DAC、WRITE_OWNER。访问令牌不支持SYNCHRONIZE这一标准的访问权限
  • ACCESS_SYSTEM_SECURITY权限,该权限可以获取或者修改对象的安全描述符中的SACL
  • 访问令牌特定的访问权限,如下表所示)

 

 ValueMeaning
TOKEN_ADJUST_DEFAULTRequired to change the default owner, primary group, or DACL of an access token.
TOKEN_ADJUST_GROUPSRequired to adjust the attributes of the groups in an access token.
TOKEN_ADJUST_PRIVILEGESRequired to enable or disable the privileges in an access token.
TOKEN_ADJUST_SESSIONIDRequired to adjust the session ID of an access token. The SE_TCB_NAME privilege is required.
TOKEN_ASSIGN_PRIMARYRequired to attach a primary token to a process. The SE_ASSIGNPRIMARYTOKEN_NAME privilege is also required to accomplish this task.
TOKEN_DUPLICATERequired to duplicate an access token.
TOKEN_EXECUTECombines STANDARD_RIGHTS_EXECUTE and TOKEN_IMPERSONATE.
TOKEN_IMPERSONATERequired to attach an impersonation access token to a process.
TOKEN_QUERYRequired to query an access token.
TOKEN_QUERY_SOURCERequired to query the source of an access token.
TOKEN_READCombines STANDARD_RIGHTS_READ and TOKEN_QUERY.
TOKEN_WRITECombines STANDARD_RIGHTS_WRITE, TOKEN_ADJUST_PRIVILEGES, TOKEN_ADJUST_GROUPS, and TOKEN_ADJUST_DEFAULT.
TOKEN_ALL_ACCESSCombines all possible access rights for a token.

转载于:https://www.cnblogs.com/debug-me/p/6947768.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值