网站大量收购独家精品文档,联系QQ:2885784924

计算机 操作系统ch2 (13).ppt

  1. 1、本文档共19页,可阅读全部内容。
  2. 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
  3. 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载
  4. 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
Module 14: Protection 第十四章 保护 Goals of Protection 保护目标 Domain of Protection 保护域 Access Matrix 访问矩阵 Implementation of Access Matrix 访问矩阵的实现 Revocation of Access Rights 访问权限的撤回 Capability-Based Systems 基于权限的系统 Language-Based Protection 基于语言的保护 Protection 保护 Operating system consists of a collection of objects, hardware or software. 操作系统由一组对象、硬件或者软件构成。 Each object has a unique name and can be accessed through a well-defined set of operations. 每个对象都具有唯一的名称,并且可以通过一组良好定义的操作访问。 Protection problem - ensure that each object is accessed correctly and only by those processes that are allowed to do so. 保护问题——确认每个对象均被正确的访问、并且只被那些得到授权的进程访问。 Domain Structure 域的结构 Access-right = object-name, rights-set 访问权 = 对象名,权限集 where rights-set is a subset of all valid operations that can be performed on the object. 权限集是所有可能作用于某个对象的操作集合的一个子集。 Domain = set of access-rights 域=访问权限的集合 Domain Implementation (UNIX) 域的实现(UNIX) System consists of 2 domains 系统由2个域组成: User 用户 Supervisor 管理者 UNIX Domain = user-id 域 = 用户标识 Domain switch accomplished via file system. 域的切换通过文件系统完成。 Each file has associated with it a domain bit (setuid bit). 每一个文件均和一个域的信息位相联系:setuid位。 When file is executed and setuid = on, then user-id is set to owner of the file being executed. When execution completes user-id is reset. 当文件被执行并且setuid = on,于是用户标识被设置成该文件的属主。当执行完之后用户标识被重置。 Domain Implementation (Multics) 域的实现(Multics) Let Di and Dj be any two domain rings. 令Di 和 Dj 为任意两个域的环。 If j I ? Di ? Dj Access Matrix 访问矩阵 View protection as a matrix (access matrix) 将保护模型抽象为一个矩阵(访问矩阵) Rows represent domains 行代表域 Columns represent objects 列代表对象 Access(i, j) is the set of operations that a process executing in Domaini can invoke on Objectj 访问条目(i, j)定义了在域Di中执行的进程在调用对象Oj时被允许执行的操作的集合。 Access Matrix 访问矩阵 Use of Access Matrix 访问矩阵的使用 If a process in Domain Di tries to do “op” on object Oj, then “op” must be in the access matrix. 若一个在域Di中的进程试图对对象Oj作操作“op”,“op”必须在访问矩阵中。 Can be expanded to dynamic p

文档评论(0)

qingfengxulai + 关注
实名认证
内容提供者

文档来源于网络

1亿VIP精品文档

相关文档