Chapter 14: System Protection

Similar documents
Chapter 17: System Protection

Module 19: Protection

Module 19: Protection

Chapter 13: Protection. Operating System Concepts Essentials 8 th Edition

Chapter 14: Protection. Operating System Concepts 9 th Edition

Today: Protection. Protection

Protection Goals of Protection Principles of Protection principle of least privilege Domain Structure need to know principle

Silberschatz and Galvin Chapter 19

Today: Protection! Protection!

Today: Protection. Sermons in Computer Science. Domain Structure. Protection

Protection and Security

CS420: Operating Systems. OS Services & System Calls

Chapter 4: Threads. Operating System Concepts. Silberschatz, Galvin and Gagne

Chapter 2: System Structures. Operating System Concepts 9 th Edition

Chapter 4: Threads. Operating System Concepts 8 th Edition,

Chapter 14: File-System Implementation

Chapter 4: Threads. Chapter 4: Threads

Chapter 4: Threads. Operating System Concepts 9 th Edit9on

Chapter 2: Operating-System Structures. Operating System Concepts 9 th Edit9on

Chapter 4: Threads. Chapter 4: Threads

Chapter 2: Operating-System Structures

Chapter 4: Threads. Chapter 4: Threads. Overview Multicore Programming Multithreading Models Thread Libraries Implicit Threading Threading Issues

Chapter 4: Multithreaded Programming. Operating System Concepts 8 th Edition,

Module 3: Operating-System Structures

Chapter 2: Operating-System Structures. Chapter 2: Operating-System Structures. Objectives. Operating System Services

Often, more information is required when designing system call Information varies according to OS and types of system call

Chapter 11: File-System Interface

General Access Control Model for DAC

Chapter 4: Threads. Operating System Concepts with Java 8 th Edition

Chapter 4: Multithreaded Programming

Chapter 2: Operating-System Structures. Operating System Concepts 8 th Edition

Chapter 2: Operating-System Structures

Chapter 2: Operating-System Structures

Chapter 4: Threads. Overview Multithreading Models Threading Issues Pthreads Windows XP Threads Linux Threads Java Threads. Operating System Concepts

Chapter 7: Deadlocks. Operating System Concepts 9 th Edition

Chapter 5: Processes & Process Concept. Objectives. Process Concept Process Scheduling Operations on Processes. Communication in Client-Server Systems

Four Components of a Computer System. Operating System Concepts 7 th Edition, Jan 12, 2005

CSE 4/521 Introduction to Operating Systems

Chapter 2: Operating-System Structures. Operating System Concepts Essentials 8 th Edition

CS420: Operating Systems. Kernel I/O Subsystem

Chapter 4: Threads. Operating System Concepts 9 th Edition

Chapter 2: Operating-System

Part V. Process Management. Sadeghi, Cubaleska RUB Course Operating System Security Memory Management and Protection

Chapter 4: Multithreaded Programming

Chapter 7: Deadlocks. Operating System Concepts with Java 8 th Edition

Four Components of a Computer System

Chapter 3: Processes. Chapter 3: Processes. Process in Memory. Process Concept. Process State. Diagram of Process State

Chapter 7: Deadlocks. Operating System Concepts 9 th Edition

OPERATING SYSTEMS. Prescribed Text Book Operating System Principles, Seventh Edition By Abraham Silberschatz, Peter Baer Galvin and Greg Gagne

Roadmap. Tevfik Ko!ar. CSC Operating Systems Fall Lecture - VII CPU Scheduling - II. Louisiana State University

Roadmap. Multilevel Queue Scheduling. Multilevel Queue. Example of Multilevel Feedback Queue. Multilevel Feedback Queue. Tevfik Ko!

Chapter 4: Threads. Operating System Concepts 9 th Edition

Roadmap. Tevfik Ko!ar. CSC Operating Systems Spring Lecture - X Deadlocks - II. Louisiana State University. Deadlocks

P1L5 Access Control. Controlling Accesses to Resources

Chapter 10: File-System Interface. Operating System Concepts with Java 8 th Edition

Operating System Concepts Ch. 2: Operating System Structures

Chapter 2: Operating-System Structures. Operating System Concepts 9 th Edit9on

Chapter 2: Operating-System Structures. Operating System Concepts 9 th Edition

We ve seen: Protection: ACLs, Capabilities, and More. Access control. Principle of Least Privilege. ? Resource. What makes it hard?

When Deadlock Happens

Chapter 7: Deadlocks. Operating System Concepts 8 th Edition,

Chapter 5: Threads. Overview Multithreading Models Threading Issues Pthreads Windows XP Threads Linux Threads Java Threads

Chapter 7: Deadlocks. Chapter 7: Deadlocks. The Deadlock Problem. Chapter Objectives. System Model. Bridge Crossing Example

Chapter 3: Processes. Operating System Concepts 8 th Edition,

Processes and More. CSCI 315 Operating Systems Design Department of Computer Science

Chapter 8: Virtual Memory. Operating System Concepts Essentials 2 nd Edition

Chapter 8: Deadlocks. The Deadlock Problem

CSC Operating Systems Fall Lecture - XII Deadlocks - III. Tevfik Ko!ar. Louisiana State University. October 6 th, 2009

CS30002: Operating Systems. Arobinda Gupta Spring 2017

Chapter 7: Deadlocks

Chapter 1: Introduction. Operating System Concepts 9 th Edit9on

Chapter 3: Processes. Operating System Concepts 8 th Edition,

Chapter 7 : 7: Deadlocks Silberschatz, Galvin and Gagne 2009 Operating System Concepts 8th Edition, Chapter 7: Deadlocks

Deadlocks. Operating System Concepts - 7 th Edition, Feb 14, 2005

Roadmap. Tevfik Ko!ar. CSC Operating Systems Spring Lecture - XIV Virtual Memory - I. Louisiana State University.

Chapter 12: Mass-Storage Systems. Operating System Concepts 8 th Edition,

Chapter 3: Operating-System Structures

Operating System Services. User Services. System Operation Services. User Operating System Interface - CLI. A View of Operating System Services

TDDI04, K. Arvidsson, IDA, Linköpings universitet Operating System Structures. Operating System Structures Overview. Operating System Services

Roadmap. Tevfik Koşar. CSE 421/521 - Operating Systems Fall Lecture - II OS Structures. University at Buffalo. OS Design and Implementation

OS Design Approaches. Roadmap. System Calls. Tevfik Koşar. Operating System Design and Implementation. CSE 421/521 - Operating Systems Fall 2013

Operating-System Structures

Lecture 2 - Fundamental Concepts

Last class: OS and Architecture. OS and Computer Architecture

Last class: OS and Architecture. Chapter 3: Operating-System Structures. OS and Computer Architecture. Common System Components

Roadmap. Tevfik Koşar. CSE 421/521 - Operating Systems Fall Lecture - XI Deadlocks - II. University at Buffalo. Deadlocks. October 6 th, 2011

Chapter 2: System Structures. Operating System Concepts 9 th Edition

CS370 Operating Systems

More on Synchronization and Deadlock

OS Design Approaches. Roadmap. OS Design Approaches. Tevfik Koşar. Operating System Design and Implementation

Chapter 4: Processes. Process Concept

Chapter 4: Processes

Ricardo Rocha. Department of Computer Science Faculty of Sciences University of Porto

CS 450 Operating System Week 4 Lecture Notes

Introduction to Concurrency (Processes, Threads, Interrupts, etc.)

CS420: Operating Systems

Chapter 8: Deadlocks. Operating System Concepts with Java

CS370 Operating Systems

Roadmap. Tevfik Koşar. CSC Operating Systems Spring Lecture - XII Main Memory - II. Louisiana State University

Chapter 12: I/O Systems

Transcription:

Chapter 14: System Protection, Silberschatz, Galvin and Gagne 2009 Chapter 14: System Protection 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 14.2 Silberschatz, Galvin and Gagne 2009

Objectives Discuss the goals and principles of protection in a modern computer system Explain how protection ti domains combined with an access matrix are used to specify the resources a process may access Examine capability and language-based protection systems 14.3 Silberschatz, Galvin and Gagne 2009 Goals of Protection Operating system consists of a collection of objects, hardware or software Each object has a unique name and can be accessed through a welldefined set of operations. Protection problem - ensure that each object is accessed correctly and only by those processes that are allowed to do so. 14.4 Silberschatz, Galvin and Gagne 2009

Principles of Protection Guiding principle principle of least privilege Programs, users and systems should be given just enough privileges il to perform their tasks 14.5 Silberschatz, Galvin and Gagne 2009 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 14.6 Silberschatz, Galvin and Gagne 2009

Domain Implementation (UNIX) System consists of 2 domains: User Supervisor 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. When execution completes user-id is reset. 14.7 Silberschatz, Galvin and Gagne 2009 Domain Implementation (MULTICS) Let D i and D j be any two domain rings. If j < I D i D j 14.8 Silberschatz, Galvin and Gagne 2009

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 14.9 Silberschatz, Galvin and Gagne 2009 Access Matrix 14.10 Silberschatz, Galvin and Gagne 2009

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. Can be expanded to dynamic protection. Operations to add, delete access rights. Special access rights: owner of O i copy op from O i to O j control D i can modify D j access rights transfer switch from domain D i to D j 14.11 Silberschatz, Galvin and Gagne 2009 Use of Access Matrix (Cont.) Access matrix design separates mechanism from policy. Mechanism Operating system provides access-matrix + rules. If 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. 14.12 Silberschatz, Galvin and Gagne 2009

Implementation of Access Matrix Each column = Access-control list for one object Defines who can perform what operation. Domain 1 = Read, Write Domain 2 = Read Domain 3 = Read M Each Row = Capability List (like a key) Fore each domain, what operations allowed on what objects. Object 1 Read Object 4 Read, Write, Execute Object 5 Read, Write, Delete, Copy 14.13 Silberschatz, Galvin and Gagne 2009 Access Matrix of Figure A With Domains as Objects Figure B 14.14 Silberschatz, Galvin and Gagne 2009

Access Matrix with Copy Rights 14.15 Silberschatz, Galvin and Gagne 2009 Access Matrix With Owner Rights 14.16 Silberschatz, Galvin and Gagne 2009

Modified Access Matrix of Figure B 14.17 Silberschatz, Galvin and Gagne 2009 Access Control Protection can be applied to non-file resources Solaris 10 provides role-based access control to implement least privilege il Privilege is right to execute system call or use an option within a system call Can be assigned to processes Users assigned roles granting access to privileges and programs 14.18 Silberschatz, Galvin and Gagne 2009

Role-based Access Control in Solaris 10 14.19 Silberschatz, Galvin and Gagne 2009 Revocation of Access Rights Access List Delete access rights from access list. Simple Immediate Capability List Scheme required to locate capability in the system before capability can be revoked. Reacquisition Back-pointers Indirection Keys 14.20 Silberschatz, Galvin and Gagne 2009

Capability-Based Systems Hydra Fixed set of access rights known to and dinterpreted t dby the system. Interpretation of user-defined rights performed solely by user's program; system provides access protection for use of these rights. Cambridge CAP System Data capability - provides standard read, write, execute of individual storage segments associated with object. Software capability -interpretation left to the subsystem, through its protected procedures. 14.21 Silberschatz, Galvin and Gagne 2009 Language-Based Protection Specification of protection in a programming language allows the high-level description of policies for the allocation and use of resources. Language implementation can provide software for protection enforcement when automatic ti hardware-supported d checking is unavailable. Interpret protection specifications to generate calls on whatever protection system is provided by the hardware and the operating system. 14.22 Silberschatz, Galvin and Gagne 2009

Protection in Java 2 Protection is handled by the Java Virtual Machine (JVM) A class is assigned a protection domain when it is loaded by the JVM. The protection domain indicates what operations the class can (and cannot) perform. If a library method is invoked that performs a privileged operation, the stack is inspected to ensure the operation can be performed by the library. 14.23 Silberschatz, Galvin and Gagne 2009 Stack Inspection 14.24 Silberschatz, Galvin and Gagne 2009

End of Chapter 14, Silberschatz, Galvin and Gagne 2009