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.
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.
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.
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
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.
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.
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
IMPLEMENTATION OF ACCESS MATRIX
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
Chapter 14: Protection.
Chapter 14: Protection.
Chapter 2: System Structures
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:

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 through a well-defined set of operations. The processes in an operating system must be protected from one another's activities. Early detection of interface errors can often prevent contamination of a healthy subsystem by malfunctioning subsystem.

The role of protection in a computer system is to provide a mechanism for the enforcement of the policies governing resource use. The application programmer needs to use protection mechanisms as well, to guard resources created and supported by an application subsystem against misuse.

Principles of Protection A guiding principle for protection is the principle of least privilege. An operating system implements its features, programs, system calls, and data structures so that failure or compromise of a component does the minimum damage. Managing users with the principle of least privilege entails creating a separate account for each user, with just the privileges that the user needs.

Domain of Protection A computer system is a collection of processes and objects Objects, mean both hardware objects (such as the CPU, memory segments, printers, disks, and tape drives) and software objects (such as files, programs) Each object has a unique name that differentiates it from all other objects in the system A process should be allowed to access only those resources for which it has authorization The compiler should not be able to access files arbitrarily but should have access only to a well-defined subset of files

Domain Structure Each domain defines a set of objects and the types of operations that may be invoked on each object. The ability to execute an operation on an object is an access right 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

A domain can be realized in a variety of ways: Each user may be a domain, Domain switching occurs when the user is changed—generally when one user logs out and another user logs in. Each process may be a domain. Domain switching occurs when one process sends a message to another process and then waits for a response. Each procedure may be a domain. Domain switching occurs when a procedure call is made.

Example (UNIX) A domain is associated with the user Switching the domain corresponds to changing the user identification temporarily. UNIX 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. On a UNIX system, the setuid bit on a networking program would be set, causing the user ID to change when the program was run. Special techniques must be used to allow users access to privileged facilities.

Example: MULTICS In the MULTICS system, the protection domains are organized hierarchically into a ring structure. Each ring corresponds to a single domain MULTICS has a segmented address space; each segment is a file, and each segment is associated with one of the rings.

A segment description includes an entry that identifies the ring number A current-ring-number counter is associated with each process, identifying the ring in which the process is executing currently. Domain switching in MULTICS occurs when a process crosses from one ring to another by calling a procedure in a different ring. The MULT1CS protection system is generally more complex and less efficient than are those used in current operating systems

Access Matrix The model of protection can be viewed abstractly as a matrix, called an access matrix. The rows of the access matrix represent domains, and the columns represent objects. Each entry in the matrix consists of a set of access rights. Access(i, j) is the set of operations that a process executing in Domaini can invoke on Objectj There are four domains and four objects—three files (F1, F2, F3) and one laser printer. A process executing in domain D1 can read files F1 and F3.

Access Matrix

The access matrix provides an appropriate mechanism for defining and implementing strict control for both the static and dynamic association between processes and domains. When we switch a process from one domain to another, we are executing an operation (switch) on an object (the domain) We need to consider only the operations possible on these new objects (domains and the access matrix) and decide how we want processes to be able to execute these operations..

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) Fore each domain, what operations allowed on what objects. Object 1 – Read Object 4 – Read, Write, Execute Object 5 – Read, Write, Delete, Copy

Processes should be able to switch from one domain to another. A process executing in domain D2 can switch to domain D3 or to domain D4. A process in domain D4 can switch to D1. Access Matrix of Figure A With Domains as Objects

The ability to copy an access right from one domain (or row) of the access matrix to another is denoted by an asterisk (*) appended to the access right. The copy right allows the copying of the access right only within the column (that is, for the object) for which the right is defined A process executing in domain D2 can copy the read operation into any entry associated with file F2. A system may select only one of these three copy rights, or it may provide all three by identifying them as separate rights: copy, transfer, and limited copy.

Access Matrix with Copy Rights

The owner right controls these operations The owner right controls these operations. If access(i,j) includes the owner right, then a process executing in domain Di, can add and remove any right in any entry in column

Implementation of Access Matrix Global Table The simplest implementation of the access matrix is a global table consisting of a set of ordered triples <domain, object, rights-set> Access Lists for Objects Each column in the access matrix can be implemented as an access list for one object The resulting list for each object consists of ordered pairs <domain, rights-set>, which define all domains with a nonempty set of access rights for that object

Capability Lists for Domains Rather than associating the columns of the access matrix with the objects as access lists, we can associate each row with its domain. A capability list for a domain is a list of objects together with the operations allowed on those objects. An object is often represented by its physical, name or address, called a capability. Capabilities are usually distinguished from other data in one of two ways: Each object has a tag to denote its type either as a capability or as accessible data. Alternatively, the address space associated with a program can be split into two parts.

Access Control Each file and directory are assigned an owner, a group, or possibly a list of users, and for each of those entities, access-control information is assigned. Solaris 10 advances the protection available in the Sun Microsystems operating system by explicitly adding the principle of least privilege via role-based access control (RBAC). 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

Role-based Access Control in Solaris 10

Revocation of Access Rights In a dynamic protection system, we may sometimes need to revoke access rights to objects shared by different users. Access List – Delete access rights from access list. Simple Immediate Schemes that implement revocation for capabilities Reacquisition. Periodically, capabilities are deleted from each domain Back-pointers. A list of pointers is maintained with each object, pointing to all capabilities associated with that object Indirection. The capabilities point indirectly, not directly, to the objects Keys. A key is a unique bit pattern that can be associated with a capability.

Capability-Based Systems Hydra Fixed set of access rights known to and interpreted by the system. These rights include such basic forms of access as the right to read, write, or execute a memory segment. 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.

Language-Based Protection Protection at the programming language level: Objects of protection are finer grain: down to the level of objects and method calls in an object oriented language 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 hardware-supported checking is unavailable. Interpret protection specifications to generate calls on whatever protection system is provided by the hardware and the operating system.

Compiler-Based Enforcement When protection is declared along with data typing, the designer of each subsystem can specify its requirements for protection Such a specification should be given directly as a program is composed, and in the language in which the program itself is stated.. This approach has several significant advantages Protection needs are simply declared Protection requirements can be stated independently of the facilities provided by a particular operating system. The means for enforcement need not be provided by the designer of a subsystem. A declarative notation is natural because access privileges are closely related to the linguistic concept of data type.

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. Note that you need to trust the stack.