x86 privilege introduce

1.Concept of privilege
     The concept of privilege is implemented by assigning a value from zero to three to key objects recognized by the processor.This value is called the privilege level.
     ● Descriptors contain a field called the descriptor privilege level(DPL).
     ● Selectors contain a field called the requestor's privilege level(RPL). The RPL is intended to represent the privilege level ofthe procedure that originates a selector.
     ● An internal processor register records the current privilege level(CPL).Normally the CPL is equal to the DPL of the segment thatthe processor is currently executing.CPL changes as control is transferred to segments with differing DPLs. 


2.Restricting access to Data
     Three different privilege levels enter into this type of privilege check:
     1)The CPL (current privilege level).
     2)The RPL (requestor's privilege level) of the selector used to specify the target segment.
     3)The DPL of the descriptor of the target segment.   
     Instructions may load a data-segment register only if the DPL of the target segment is numerically greaterthan or equal to the maximum of the CPL and the selector's RPL.   
     In other words, a procedure can only access data that is at the same or lessprivileged level.

    Level value: 0(kernel) & 3(application)  And   Privilege priority : kernel > application

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值