Protection and Security Operating System
Protection and Security Operating System
Access Matrix
Implementation of Access Matrix Access Control Revocation of Access Rights
Capability-Based Systems
Language-Based 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
Principles of Protection
Guiding principle principle of least privilege
Programs, users and systems should be given just enough privileges to perform their tasks
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
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.
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
Access Matrix
owner of Oi copy op from Oi to Oj control Di can modify Dj access rights transfer switch from domain Di to Dj
Mechanism
Operating system provides access-matrix + rules. If ensures that the matrix is only manipulated by authorized agents and that rules are strictly enforced. User dictates policy. Who can access what object and in what mode.
Policy
Figure B
Access Control
Protection can be applied to non-file resources
privilege
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
Simple
Immediate
Capability-Based Systems
Hydra
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
Specification of protection in a programming language allows the