CSS430 Protection1 Textbook Ch14 These slides were compiled from the OSC textbook slides (Silberschatz, Galvin, and Gagne) and the instructor’s class materials.

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-2 Protection Silberschatz, Galvin and Gagne ©2005 Operating System Concepts Chapter 14-2: Protection Chapter 14-1 Goals of Protection.
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.
Protection.
14.1 Silberschatz, Galvin and Gagne ©2005 Operating System Concepts Chapter 14: Protection Goals of Protection Principles of Protection Domain of Protection.
Announcements Assignment 3 due. Invite friends, co-workers to your presentations. Course evaluations on Friday.
Chapter 14 Protection Bernard Chen Spring Goal of Protection Protection was originally conceived as an adjunct to multiprogramming operation.
14.1 Silberschatz, Galvin and Gagne ©2009 Operating System Concepts – 8 th Edition The Security Requirements Triad Data confidentiality Privacy Data Integrity.
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,
Fall 2015 SILICON VALLEY UNIVERSITY CONFIDENTIAL 1 Operating System Design Dr. Jerry Shiao, Silicon Valley University.
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.
CSE Operating System Principles Protection.
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
Chapter 14: 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.
Chapter 14: Protection.
Chapter 14: Protection.
Chapter 14: Protection.
Chapter 14: Protection.
Chapter 14: Protection.
Chapter 14: Protection.
Chapter 14: Protection.
Operating System Concepts
Chapter 14: Protection.
Presentation transcript:

CSS430 Protection1 Textbook Ch14 These slides were compiled from the OSC textbook slides (Silberschatz, Galvin, and Gagne) and the instructor’s class materials.

CSS430 Protection2 Goals of Protection Reasons: Prevent mischievous or intentional access violation of user programs Protect computer components Goal: Provide a mechanism for policy enforcement governing resource use. Give users just enough privileges to perform their tasks. (Principle of least privilege) Policies What will be done Policies depend on applications and change over time. Mechanism How policies will be enforced

CSS430 Protection3 Domain Structure Objects = H/W and S/W computing resources Need-to-know principle = A process should be allowed to access only objects necessary for its computation Access-right = Rights-set is a subset of all valid operations that can be performed on the object. Domain = set of access-rights Each process is statically or dynamically associated with a domain. P1P2 transfer Phase 1 Phase 2

CSS430 Protection4 Domain Example Processes move back and forth between user mode, (i.e., user domain) and kernel mode, (i.e., kernel domain). Unix setuid shell owner=100 setuid bit=0 a.out owner=100 setuid bit=1 real user id = 201 effective user id = 201 execvl(“shell”) real user id = 201 effective user id = 201 execvl(“a.out”) load 100load User mode process Kernel mode

CSS430 Protection5 Discussions 1 In what situation or applications do we have to use Unix setuid?

CSS430 Protection6 Domain Implementation in Multics Process Ring i Procedure (Library) Allowed anytime Procedure (Library) Procedure (Library) parameters copied Gatekeeper Allowed only if process has a permission Let D i and D j be any two domain rings. If j < I  D i  D j Disadvantages: Too complicated Violating need-to- know principle

CSS430 Protection7 Access Matrix Operation examples: A process running D1 (in row 1) can read F1 and F3, (i.e. access(1,1) and access(1,3)) Merit: A variety of polices can be specified Objects Domains

CSS430 Protection8 Access Matrix with Domains as Objects D1 D2D3 D4 P

CSS430 Protection9 Access Matrix with Copy Rights Process running D2 Has a copy right of F2 Can copy a read operation to D3

CSS430 Protection10 Access Matrix With Owner Rights Process running D2 Owns F2 Can add and remove any access right on F2 in D1 and D3

CSS430 Protection11 Access Matrix with Control Rights Process running in D2 Has a right to modify all access rights in D4 read

CSS430 Protection12 Implementation of Access Matrix Global Table Triple : Domain i has an access Right k for Object j. Table is too large to fit to memory. Access Lists for Objects Each object has Tuple Empty entries are discarded or assumed to have a default access rights. Example: Unix file protection User must determine domains allowed for his/her new object. Access lists must be scanned every access. Capability Lists for Domains Each domain has Tuple Object has a capability tag (to denote if it is a capability list or data). Program carries a capability list only accessible by OS Revocation requires to examine all capability lists.

CSS430 Protection13 Lock-Key Mechanism A compromise between access lists and capability lists. Lock: Object has a list of bit patters Key: Process receives a list of bit patterns from Domain OS: allows a process if key matches lock. Object 0011 Object 1001 Object 0101 Object 1001 Lock Process 1001 Key Only OS can check the key with each lock

Language-Based Protection Motivation Comprehensive access validation incurs considerable overheads Satisfying all protection goals is difficult Policies for resource use may vary Merits High-level description of policies for use of recourses Software support when hardware supports are not available Generating calls on whatever underlying protection system is provided Solution: Use of a software capability that could be used as an object of computation Stack inspection CSS430 Protection14

Stack Inspection Simple Inspection Xsystemfile.open( cache) systemfile.open(l ocal) systemurl.opensystemurl.open untrustedapplet.ma in untruste d applet.mai n FlagPrincipalMethodFlagPrincipalMethod Real Inspection in Java Xetworkopen(a)networkOpen(b) XURL loader doPrivilaged{ open(“a”); } URL loader untruste d applet gui.get(url)untrusted applet gui.open(“b”) FPrincipalMethodFPrincipalMethod CSS430 Protection15 Thread A’s stack passes Thread B’s stack fails Based on Thread A’s stack passes Thread B’s stack fails From Textbook

CSS430 Protection16 Exercises (No Turn-In) 1.Solve Exercise in your textbook. 2.Solve Exercise in your textbook. 3.Solve Exercise in your textbook.

CSS430 Protection17 Exercises (No Turn-In) 3.Consider the LAB320’s file protection policy. Assume that the user “mickey” belongs to the “student” group. He created and gave some access permissions to three new files as shown below: Fill out the following access matrix that enforces the protection policy for those three files and six domains. File nameAccess permission /tmp/a.outrwx r-x --x /tmp/b.javarw- r /tmp/c.classrw- r– r-- a.outb.javac.classsumickeyfacultystudentstaffuniverse su mickey faculty student staff universe