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

Similar documents
Today: Protection! 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

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

CSI3131 Final Exam Review

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

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

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

DEPARTMENT OF COMPUTER SCIENCE AND ENGINEERING UNIT I

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

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

Exam Guide COMPSCI 386

Last Class: Deadlocks. Today

Operating Systems 2010/2011

INSTITUTE OF AERONAUTICAL ENGINEERING

INSTITUTE OF AERONAUTICAL ENGINEERING (Autonomous) Dundigal, Hyderabad

QUESTION BANK UNIT I

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

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

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

CS350: Final Exam Review

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

Operating Systems (1DT020 & 1TT802)

SNS COLLEGE OF ENGINEERING

Final Exam Preparation Questions

Chapter 13: I/O Systems

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

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

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

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

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

Disc Allocation and Disc Arm Scheduling?

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

Protection and Security

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

Operating System MC Exercises

Example Sheet for Operating Systems I (Part IA)

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

Lecture 9: Midterm Review

CHAPTER 2: PROCESS MANAGEMENT

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

PESIT SOUTHCAMPUS. Question Bank

First-In-First-Out (FIFO) Algorithm

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

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

Last Class: Memory management. Per-process Replacement

Chapter 9. Storage Management

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

Virtual Memory Management

CSE 120 Principles of Operating Systems

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

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

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

CHAPTER NO - 1 : Introduction:

Where are we in the course?

Example Sheet for Operating Systems I (Part IA)

CONTENTS. Computer-System Structures

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

Chapter 9: Virtual-Memory

Memory Management Virtual Memory

Operating System(16MCA24)

OPERATING SYSTEMS UNIT - 1

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

November 13, Networking/Interprocess Communication (25 pts)

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

Midterm Exam. October 20th, Thursday NSC

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

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.

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

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

CS2506 Quick Revision

CS140 Operating Systems and Systems Programming Midterm Exam

Device-Functionality Progression

Chapter 12: I/O Systems. I/O Hardware

SYED AMMAL ENGINEERING COLLEGE CS6401- OPERATING SYSTEM

CS 537 Fall 2017 Review Session

Last class: OS and Architecture. OS and Computer Architecture

Operating Systems. V. Input / Output. Eurecom

Transcription:

Sermons in Simplicity Performance Programming as Craft Information is Property Stay Broad Ack: Tom Anderson, U. Washington Today: Protection Goals of Protection Domain of Protection Access Matrix Implementation of Access Matrix Revocation of Access Rights Capability-Based Systems Language-Based Protection 1 2 Protection Domain Structure 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. 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 Protection problem - ensure that each object is accessed correctly and only by those processes that are allowed to do so. 3 4

Domain Implementation (UNIX) System consists of 2 domains: User Supervisor Domain Implementation (Multics) Let D i and D j be any two domain rings. If j < I D i D j 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. Multics Rings 5 6 Access Matrix 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 Figure A 7 8

Use of Access Matrix Use of Access Matrix (Cont.) 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 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. transfer switch from domain D i to D j 9 10 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 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. 11 12

Capability-Based Systems Language-Based Protection 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. 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. 13 14 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. Course Wrap-up and Review Final Exam covers: More emphasis on I/O systems and distributed systems Final is comprehensive 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. 15 16

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? 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. 17 18 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 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 19 20

Topics you should understand: File Systems Topics you should understand I/O Systems 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. Contiguous allocation Linked Indexed Direct Memory Access Polling and Interrupts Caching and Buffering 21 22 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? Networks 1. What is a LAN? 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? 23 24

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? Remote Procedure Call 1. What is RPC? 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? 25 26 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? 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? 27 28

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. Sermons in Simplicity Performance Programming as Craft Information is Property Stay Broad 29 30