Today: Protection! Protection!

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

Today: Protection. Protection

Chapter 17: System Protection

Module 19: Protection

Chapter 14: System Protection

Module 19: Protection

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

Chapter 14: Protection. Operating System Concepts 9 th Edition

Silberschatz and Galvin Chapter 19

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

Operating Systems Comprehensive Exam. Spring Student ID # 3/20/2013

CSI3131 Final Exam Review

Operating Systems Comprehensive Exam. Spring Student ID # 3/16/2006

Department of Computer applications. [Part I: Medium Answer Type Questions]

INSTITUTE OF AERONAUTICAL ENGINEERING Dundigal, Hyderabad COMPUTER SCIENCE AND ENGINEERING QUESTION BANK OPERATING SYSTEMS

MC7204 OPERATING SYSTEMS

CSE 120 PRACTICE FINAL EXAM, WINTER 2013

CSE 4/521 Introduction to Operating Systems. Lecture 27 (Final Exam Review) Summer 2018

DEPARTMENT OF COMPUTER SCIENCE AND ENGINEERING UNIT I

Last Class: Deadlocks. Today

Operating Systems Comprehensive Exam. Fall Student ID # 10/31/2013

Operating Systems Comprehensive Exam. Spring Student ID # 2/17/2011

File. File System Implementation. Operations. Permissions and Data Layout. Storing and Accessing File Data. Opening a File

Exam Guide COMPSCI 386

Final Review. Geoffrey M. Voelker. Final mechanics Memory management Paging Page replacement Disk I/O File systems Advanced topics

CSE 153 Design of Operating Systems

Operating Systems 2010/2011

INSTITUTE OF AERONAUTICAL ENGINEERING (Autonomous) Dundigal, Hyderabad

QUESTION BANK UNIT I

May 19, Answer pieces in italics were not required to receive full points.

CS350: Final Exam Review

INSTITUTE OF AERONAUTICAL ENGINEERING

COMP 3361: Operating Systems 1 Final Exam Winter 2009

Main Points of the Computer Organization and System Software Module

Fall COMP3511 Review

Lecture 15: I/O Devices & Drivers

Architectural Support. Processes. OS Structure. Threads. Scheduling. CSE 451: Operating Systems Spring Module 28 Course Review

Administrative Details. CS 140 Final Review Session. Pre-Midterm. Plan For Today. Disks + I/O. Pre-Midterm, cont.

CSC369 Operating Systems. Spring 2007

Last Class: Synchronization Problems. Need to hold multiple resources to perform task. CS377: Operating Systems. Real-world Examples

CS153: Final Review1. Chengyu Song. Slides modified from Harsha Madhyvasta, Nael Abu-Ghazaleh, and Zhiyun Qian

Operating Systems (1DT020 & 1TT802)

CSc33200: Operating Systems, CS-CCNY, Fall 2003 Jinzhong Niu December 10, Review

SNS COLLEGE OF ENGINEERING

Final Exam Preparation Questions

King Fahd University of Petroleum and Minerals. Write clearly, precisely, and briefly!!

Lecture 9: Midterm Review

Chapter 13: I/O Systems

CIS 21 Final Study Guide. Final covers ch. 1-20, except for 17. Need to know:

Techno India Batanagar Department of Computer Science & Engineering. Model Questions. Multiple Choice Questions:

Memory management. Requirements. Relocation: program loading. Terms. Relocation. Protection. Sharing. Logical organization. Physical organization

CSE 120 Principles of Operating Systems

Disc Allocation and Disc Arm Scheduling?

Last Class: Memory management. Per-process Replacement

Where are we in the course?

File. File System Implementation. File Metadata. File System Implementation. Direct Memory Access Cont. Hardware background: Direct Memory Access

Protection and Security

CSE 421/521 - Operating Systems Fall Lecture - XXV. Final Review. University at Buffalo

Operating System MC Exercises

Example Sheet for Operating Systems I (Part IA)

Virtual Memory. Reading: Silberschatz chapter 10 Reading: Stallings. chapter 8 EEL 358

Midterm Exam. October 20th, Thursday NSC

CS140 Operating Systems and Systems Programming Midterm Exam

CHAPTER 2: PROCESS MANAGEMENT

PESIT SOUTHCAMPUS. Question Bank

Institute of Engineering & Management. Course:CS603- Operating System. Course pre-requisites

First-In-First-Out (FIFO) Algorithm

Announcements. Program #1. Program #0. Reading. Is due at 9:00 AM on Thursday. Re-grade requests are due by Monday at 11:59:59 PM.

I/O Handling. ECE 650 Systems Programming & Engineering Duke University, Spring Based on Operating Systems Concepts, Silberschatz Chapter 13

Operating Systems. No. 9 ศร ณย อ นทโกส ม Sarun Intakosum

Sample Questions. Amir H. Payberah. Amirkabir University of Technology (Tehran Polytechnic)

Chapter 9. Storage Management

(b) External fragmentation can happen in a virtual memory paging system.

Following are a few basic questions that cover the essentials of OS:

OS and Computer Architecture. Chapter 3: Operating-System Structures. Common System Components. Process Management

Virtual Memory Management

Addresses in the source program are generally symbolic. A compiler will typically bind these symbolic addresses to re-locatable addresses.

CHAPTER NO - 1 : Introduction:

Example Sheet for Operating Systems I (Part IA)

CONTENTS. Computer-System Structures

Operating System Design

CS450/550 Operating Systems

Announcements/Reminders

Chapter 9: Virtual-Memory

Memory Management Virtual Memory

OPERATING SYSTEMS UNIT - 1

November 13, Networking/Interprocess Communication (25 pts)

2 nd Half. Memory management Disk management Network and Security Virtual machine

MEMORY MANAGEMENT/1 CS 409, FALL 2013

Course Outline. Processes CPU Scheduling Synchronization & Deadlock Memory Management File Systems & I/O Distributed Systems

CS 318 Principles of Operating Systems

COMP SCI 3SH3: Operating System Concepts (Term 2 Winter 2006) Test 2 February 27, 2006; Time: 50 Minutes ;. Questions Instructor: Dr.

Unit In a time - sharing operating system, when the time slot given to a process is completed, the process goes from the RUNNING state to the

CLASS: II YEAR / IV SEMESTER CSE SUBJECT CODE AND NAME: CS6401 OPERATING SYSTEMS UNIT I OPERATING SYSTEMS OVERVIEW

Chapter 8: Virtual Memory. Operating System Concepts

Lecture 2 Process Management

Windows 7 Overview. Windows 7. Objectives. The History of Windows. CS140M Fall Lake 1

CS2506 Quick Revision

CS370 Operating Systems

University of Waterloo Midterm Examination Model Solution CS350 Operating Systems

Transcription:

Today: Protection! Goals of Protection Domain of Protection Access Matrix Implementation of Access Matrix Revocation of Access Rights Capability-Based Systems Language-Based Protection Lecture 27, page 1 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. Lecture 27, page 2

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 Lecture 27, page 3 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. Lecture 27, page 4

Domain Implementation (Multics)! Let D i and D j be any two domain rings. If j < I! D i " D j Multics Rings Lecture 27, page 5 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 Lecture 27, page 6

Access Matrix! Figure A Lecture 27, page 7 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 Lecture 27, page 8

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. Lecture 27, page 9 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! Each Row = Capability List (like a key) For each domain, what operations allowed on what objects. Object 1 Read Object 4 Read, Write, Execute Object 5 Read, Write, Delete, Copy Lecture 27, page 10

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. Lecture 27, page 11 Capability-Based Systems! Hydra Fixed set of access rights known to and interpreted by 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. Lecture 27, page 12

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 hardwaresupported checking is unavailable. Interpret protection specifications to generate calls on whatever protection system is provided by the hardware and the operating system. Lecture 27, page 13 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. Lecture 27, page 14

Course Wrap-up and Review! Final Exam covers: 50% of the exam is on I/O systems and distributed systems 50% of the exam is on the rest of the course Lecture 27, page 15 Highlights of Process Management! 1. What is a context switch? What happens during a context switch? What causes a context switch to occur? 2. What is the difference between a process and a thread? 3. What are FCFS, Round Robin, SJF, and Multilevel Feedback Queue algorithms? 4. What is an I/O bound process? What is a CPU bound process? Is there any reason to treat them differently for scheduling purposes? 5. What is a semaphore? What are the three things a semaphore can be used for? 6. What is a monitor? What is a condition variable? 7. What is busy waiting? 8. What are the four necessary conditions for deadlock to occur? 9. What is the difference between deadlock detection and deadlock prevention? 10. After detecting deadlock, what options are conceivable for recovering from deadlock? Lecture 27, page 16

Highlights of Memory and I/O Management! 1. What is virtual memory and why do we use it? 2. What is paging, a page? 3. What does the OS store in the page table? 4. What is a TLB? How is one used? 5. What is a page fault, how does the OS know it needs to take one, and what does the OS do when a page fault occurs? 6. Page replacement algorithms: FIFO, MIN, LRU, Second chance. For each understand how they work, advantages and disadvantages. 7. How does the OS communicate with I/O devices? 8. What are I/O buffers used for? 9. What are I/O caches used for? How do they affect reading and writing to I/O devices? 10. What is seek time? 11. What is rotational latency? 12. What is transfer time? 13. Disk scheduling algorithms: FIFO, SSTF, SCAN, C-SCAN. How do they work, advantages and disadvantages. Lecture 27, page 17 Memory Management! Topics you should understand: 1. What is virtual memory and why do we use it? 2. Memory allocation strategies: Contiguous allocation (first-fit and best-fit algorithms) Paging Segmentation Paged segmentation Lecture 27, page 18

Memory Management (cont.)! For each strategy, understand these concepts: Address translation Hardware support required Coping with fragmentation Ability to grow processes Ability to share memory with other processes Ability to move processes Memory protection What needs to happen on a context switch to support memory management Lecture 27, page 19 File Systems! Topics you should understand: 1. What is a file, a file type? 2. What types of access are typical for files? 3. What does the OS do on a file open, file close? 4. What is a directory? 5. What is a link? 6. What happens if the directory structure is a graph? 7. How does an OS support multiple users of shared files? 8. Strategies for laying files out on disk. Advantages and disadvantages. a) Contiguous allocation b) Linked c) Indexed Lecture 27, page 20

I/O Systems! Topics you should understand Direct Memory Access Polling and Interrupts Caching and Buffering Lecture 27, page 21 Distributed Systems! 1. What is the difference between a distributed system and a parallel system? 2. What advantages do distributed systems have over isolated systems? 3. What advantages do isolated systems have over distributed systems? Lecture 27, page 22

1. What is a LAN? Networks! 2. What is a WAN? 3. What are common network topologies? Which are most suitable to WANs? Which to LANs? 4. How do node failures affect the different network topologies? 5. What are the expected communication costs for the different network topologies? 6. What are packets? 7. What is a network protocol stack? What is TCP/IP? Lecture 27, page 23 Distributed sharing! 1. What is data migration? When would you use it? 2. What is computation migration? When would you use it? 3. What is job migration? When would you use it? Lecture 27, page 24

1. What is RPC? Remote Procedure Call! 2. How does RPC differ from normal procedure call? 3. What extra computation is required to do RPC instead of a normal procedure call? 4. Would you ever use RPC to communicate between two processes on the same machine? Lecture 27, page 25 Distributed file systems! 1. What are location transparent names? 2. What are location independent names? 3. What does it mean to say that a distributed file system has a single (global) namespace? 4. What is a cache? 5. What are the advantages of using a cache in a distributed file system? What are the disadvantages? 6. What are the advantages and disadvantages of write-back and write-through caches? Lecture 27, page 26

Protection! 1. What is protection and how does it differ from security? 2. What is a domain? 3. What is a domain access matrix? How are these implemented in actual operating systems? 4. How can entries in an access matrix be modified? What is a domain switch and why is it needed? Lecture 27, page 27 General Skills! You should have a good sense of how the pieces fit together and how changes in one part of the OS might impact another. You will not be asked to read or write Java code. You will not be asked detailed questions about any specific operating system such as Unix, Windows NT. Lecture 27, page 28

Sermons in! Simplicity Performance Programming as Craft Information is Property Stay Broad Lecture 27, page 29