P1L3 Operating Systems Flashcards
Operating System
- -Makes it easier to use resources
- -Hardware controlled by OS
- -Provides isolation
Trusted Computing Base (TCB)
- -OS has direct control of hardware resources
- -OS must determine authorized user(s) of resources
TCB Requirements
- Complete Mediation–OS is between HW resources and apps
- OS must be tamper-proof
- OS must be correct–Protected resources are used properly.
OS and Resource Protection
- -Establish the source of the request (ie authenication)
- -Authorization or Access Control
- -OS follows policies for authorization and authentication
System calls
A request to the operating system.
Complete Mediation
Ensures that the OS cannot be bypassed when accessing a protected resource.
How to meet the requirement for isolation
- -requires HW support for memory protection
- -The processor must keep track of what kind of code is being executed
- -Privileged instructions can only be executed in system mode
Are system calls more expensive?
Yes. Because of the info that must be saved, the memory mapping that must be done, and the special instructions.
Memory Protection
The HW determines if memory belongs to the OS and is therefore unwritable to users.
Unit of isolation
Each process gets an address space for it to use
Physical addresses
Point to actual RAM or physical memory
Logical addresses
Point to the address space
Address translation
The translation between the logical and physical memory.
Logical addresses are stored on ____
pages
Physical addresses are stored on _____
frames