CSE 30341 Operating System Principles Protection.

Slides:



Advertisements
Similar presentations
Protection Goals of Protection Domain of Protection Access Matrix
Advertisements

Silberschatz, Galvin and Gagne ©2009 Operating System Concepts – 8 th Edition, Chapter 14: Protection.
Protection. Goals of Protection Operating system consists of a collection of objects, hardware or software Each object has a unique name and can be accessed.
Bilkent University Department of Computer Engineering
1999 Chapter 8-Protection Goals of Protection Domain of Protection Access Matrix Implementation of Access Matrix Revocation of Access Rights Capability-Based.
Reasons for Protection n Prevent users from accessing information they shouldn’t have access to. n Ensure that each program component uses system resources.
19: Protection1 PROTECTION Protection is the mechanism for controlling access to computer resources. Security concerns the physical integrity of the system.
Silberschatz, Galvin and Gagne ©2009 Operating System Concepts – 8 th Edition, Chapter 14: Protection.
CS-550 (M.Soneru): Protection and Security - 1 [SaS] 1 Protection and Security.
Chapter 14: Protection.
Chapter 14: Protection.
Chapter 14: Protection.
Silberschatz, Galvin and Gagne ©2013 Operating System Concepts – 9 th Edition Chapter 14: Protection.
Dr. Kalpakis CMSC 421, Operating Systems. Fall 2008 URL: Protection.
Page 19/4/2015 CSE 30341: Operating Systems Principles Raid storage  Raid – 0: Striping  Good I/O performance if spread across disks (equivalent to n.
Operating Systems Protection & Security.
U NIVERSITY OF M ASSACHUSETTS, A MHERST Department of Computer Science Emery Berger University of Massachusetts, Amherst Operating Systems CMPSCI 377 Lecture.
14.1 Silberschatz, Galvin and Gagne ©2009 Operating System Concepts with Java – 8 th Edition Chapter 14: Protection.
Protection.
14.1 Silberschatz, Galvin and Gagne ©2005 Operating System Concepts Chapter 14: Protection Goals of Protection Principles of Protection Domain of Protection.
Chapter 14 Protection Bernard Chen Spring Goal of Protection Protection was originally conceived as an adjunct to multiprogramming operation.
Silberschatz, Galvin and Gagne ©2009 Operating System Concepts – 8 th Edition, Chapter 14: Protection.
Chapter 14: Protection Silberschatz, Galvin and Gagne ©2005 AE4B33OSS Chapter 14: Protection Goals of Protection Principles of Protection Domain.
Silberschatz, Galvin, and Gagne  Applied Operating System Concepts Module 18: Protection Goals of Protection Domain of Protection Access Matrix.
Silberschatz, Galvin and Gagne  Operating System Concepts Chapter 18: Protection Goals of Protection Objects and Domains Access Matrix Implementation.
14.1 Silberschatz, Galvin and Gagne ©2009 Operating System Concepts with Java – 8 th Edition Chapter 14: Protection.
Silberschatz, Galvin and Gagne ©2009 Operating System Concepts – 8 th Edition, Protection (Chapter 14)
Cosc 4740 Chapter 13: Protection. Goals of Protection Operating system consists of a collection of objects, hardware or software Each object has a unique.
Protection Nadeem Majeed Choudhary
CE Operating Systems Lecture 21 Operating Systems Protection with examples from Linux & Windows.
Modul ke: Fakultas Program Studi Proteksi SISTEM OPERASI Misbahul Fajri, ST., MTI. 14 FASILKOM Teknik Informatika.
14.1/21 Part 5: protection and security Protection mechanisms control access to a system by limiting the types of file access permitted to users. In addition,
Chapter 14: Protection Silberschatz, Galvin and Gagne ©2005 Operating System Concepts – 7 th Edition, Apr 11, 2005 Chapter 14: Protection Goals.
Chapter 14: Protection Silberschatz, Galvin and Gagne ©2005 Operating System Concepts – 7 th Edition, Apr 11, 2005 Goals of Protection Operating.
Chapter 14: Protection Silberschatz, Galvin and Gagne ©2005 Operating System Concepts Goals of Protection Operating system consists of a collection.
Silberschatz, Galvin and Gagne ©2013 Operating System Concepts – 9 th Edition Chapter 14: Protection.
11.1 CSE Department MAITSandeep Tayal 11: Protection Goals of Protection Domain of Protection Access Matrix Implementation of Access Matrix Revocation.
CSS430 Protection1 Textbook Ch14 These slides were compiled from the OSC textbook slides (Silberschatz, Galvin, and Gagne) and the instructor’s class materials.
ACCESS MATRIX IMPLEMENTATION AND COMPARISON By: Rushabh Dharwadkar Roll no: TE COMP.
18.1 Silberschatz, Galvin and Gagne ©2003 Operating System Concepts with Java Chapter 18: Protection Goals of Protection Domain of Protection Access Matrix.
Chapter 17: System Protection Silberschatz, Galvin and Gagne ©2005 Operating System Concepts Chapter 17: Protection Goals of Protection Principles.
Saurav Karmakar. Chapter 14: Protection  Goals of Protection  Principles of Protection  Domain of Protection  Access Matrix  Implementation of Access.
PROTECTION.
Operating Systems Protection Alok Kumar Jagadev.
Chapter 14: Protection Modified by Dr. Neerja Mhaskar for CS 3SH3.
Chapter 14: System Protection
Operating System Concepts
Chapter 14: Protection.
Chapter 14: Protection Source & Copyright: Operating System Concepts, Silberschatz, Galvin and Gagne.
Chapter 14: Protection.
Chapter 14: Protection.
Chapter 14: Protection.
CE Operating Systems Lecture 21
EECE.4810/EECE.5730 Operating Systems
Chapter 14: Protection.
Chapter 14: Protection.
Chapter 14: Protection.
Chapter 14: Protection.
Unit VI part 2: Protection & Security
Chapter 14: Protection.
Chapter 14: Protection.
Chapter 14: Protection.
Operating System Concepts
Chapter 14: Protection.
Chapter 14: Protection.
Chapter 14: Protection.
Chapter 14: Protection.
Operating System Concepts
Chapter 14: Protection.
Presentation transcript:

CSE Operating System Principles Protection

CSE – Operating System Principles2 Overview Goals of Protection Principles of Protection Domain of Protection Access Matrix Implementation of Access Matrix Access Control Revocation of Access Rights Capability-Based Systems Language-Based Protection

CSE – Operating System Principles3 Objectives Discuss the goals and principles of protection in a modern computer system Explain how protection domains combined with an access matrix are used to specify the resources a process may access Examine capability-based protection systems

CSE – Operating System Principles4 Goals of Protection In one common protection model, a computer 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

CSE – Operating System Principles5 Principles of Protection Guiding principle – principle of least privilege – Static – Dynamic - domain switching, privilege escalation – “Need to know” a similar concept regarding access to data – “Containment of failure” Must consider “grain” aspect – Rough-grained – Fine-grained Domain can be user, process, procedure

CSE – Operating System Principles6 Domain Structure Access-right = where rights-set is a subset of all valid operations that can be performed on the object Domain = set of access-rights

CSE – Operating System Principles7 Domain Implementation (UNIX) Domain = user-id Domain switch accomplished via file system Each file has associated with it a domain bit (setuid bit) When file is executed and setuid = on, then user-id is set to owner of the file being executed (similary “setgid”) When execution completes user-id is reset Domain switch accomplished via passwords – su command temporarily switches to another user’s domain when other domain’s password provided Domain switching via commands – sudo command prefix executes specified command in another domain (if original domain has privilege or password given)

CSE – Operating System Principles8 Domain Implementation (MULTICS) Let D i and D j be any two domain rings If j < i  D i  D j

CSE – Operating System Principles9 Multics Benefits and Limits Ring / hierarchical structure provided more than the basic kernel / user or root / normal user design Fairly complex -> more overhead But does not allow strict need-to-know – Object accessible in D j but not in D i, then j must be < i – But then every segment accessible in D i also accessible in D j

CSE – Operating System Principles10 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 Domain i can invoke on Object j

CSE – Operating System Principles11 Access Matrix

CSE – Operating System Principles12 Use of Access Matrix If a process in Domain D i tries to do “op” on object O j, then “op” must be in the access matrix User who creates object can define access column for that object Can be expanded to dynamic protection – Operations to add, delete access rights – Special access rights: owner of O i copy op from D i to D j (denoted by “*”) control – D i can modify D j access rights transfer (switch) – switch from domain D i to D j – Copy and Owner applicable to an object – Control applicable to domain

CSE – Operating System Principles13 Use of Access Matrix (Cont.) Access matrix design separates mechanism from policy – Mechanism Operating system provides access-matrix + rules It ensures that the matrix is only manipulated by authorized agents and that rules are strictly enforced – Policy User dictates policy Who can access what object and in what mode Good policy supported by good default values

CSE – Operating System Principles14 Access Matrix Example

CSE – Operating System Principles15 Access Matrix Example

CSE – Operating System Principles16 Access Matrix Example

CSE – Operating System Principles17 Access Matrix Example

CSE – Operating System Principles18 Implementation of Access Matrix Generally, a sparse matrix Option 1 – Global table – Store ordered triples in table – A requested operation M on object O j within domain D i -> search table for with M ∈ R k – But table could be large -> won’t fit in main memory – Difficult to group objects (consider an object that all domains can read) Option 2 – Access lists for objects – Each column implemented as an access list for one object – Resulting per-object list consists of ordered pairs defining all domains with non-empty set of access rights for the object – Easily extended to contain default set -> If M ∈ default set, also allow access

CSE – Operating System Principles19 Implementation of Access Matrix Option 3 - Capability list for domains – Instead of object-based, list is domain based – Capability list for domain is list of objects together with operations allows on them – Object represented by its name or address, called a capability – Execute operation M on object O j, process requests operation and specifies capability as parameter Possession of capability means access is allowed

CSE – Operating System Principles20 Comparison of Implementations Many trade-offs to consider – Global table is simple, but can be large – Access lists correspond to needs of users Determining set of access rights for domain non-localized difficult Every access to an object must be checked – Many objects and access rights -> slow – Capability lists useful for localizing information for a given process But revocation capabilities can be inefficient – Lock-key effective and flexible, keys can be passed freely from domain to domain, easy revocation Most systems use combination of access lists and capabilities – First access to an object -> access list searched If allowed, capability created and attached to process – Additional accesses need not be checked After last access, capability destroyed

CSE – Operating System Principles21 Revocation of Access Rights Various options to remove the access right of a domain to an object – Immediate vs. delayed – Selective vs. general – Partial vs. total – Temporary vs. permanent