P1L3 Operating Systems Flashcards

1
Q

Operating System

A
  • -Makes it easier to use resources
  • -Hardware controlled by OS
  • -Provides isolation
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Trusted Computing Base (TCB)

A
  • -OS has direct control of hardware resources

- -OS must determine authorized user(s) of resources

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

TCB Requirements

A
  1. Complete Mediation–OS is between HW resources and apps
  2. OS must be tamper-proof
  3. OS must be correct–Protected resources are used properly.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

OS and Resource Protection

A
  • -Establish the source of the request (ie authenication)
  • -Authorization or Access Control
  • -OS follows policies for authorization and authentication
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

System calls

A

A request to the operating system.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Complete Mediation

A

Ensures that the OS cannot be bypassed when accessing a protected resource.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

How to meet the requirement for isolation

A
  • -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
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Are system calls more expensive?

A

Yes. Because of the info that must be saved, the memory mapping that must be done, and the special instructions.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Memory Protection

A

The HW determines if memory belongs to the OS and is therefore unwritable to users.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Unit of isolation

A

Each process gets an address space for it to use

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Physical addresses

A

Point to actual RAM or physical memory

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Logical addresses

A

Point to the address space

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Address translation

A

The translation between the logical and physical memory.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Logical addresses are stored on ____

A

pages

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Physical addresses are stored on _____

A

frames

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Page table

A

Table used to translate between pages and frames. It is built and protected by the OS

17
Q

T/F: Process A can access Process B’s memory if explicit sharing is desired.

A

True: This is the only way Process A can access Process B’s memory as long as the page table is managed by the OS.

18
Q

Memory Management Unit (MMU)

A

Handles the memory mapping. It uses page tables to resolve virtual addresses to physical addresses.

19
Q

TLB

A

Translation lookaside buffers store the translation tables

20
Q

RWX

A

Read, Write, Execute. Bits on the pages which determine the level of access to addressable memory.

21
Q

OS Isolation from Application Code

A
  • -The OS (kernel) resides in a portion of each process’s address space.
  • -Processes can only cross the fence in controlled and limited ways.
  • -OS protects itself and the processes from each other
22
Q

Tasks that should be performed by the OS

A
  • -Switching CPU from one process to another when the process blocks
  • -Page fault handling
  • -Changing who can access a protected resource
23
Q

This task should be performed by the user processes

A

Setting up a new stack frame when an application program calls one of its functions.

24
Q

Complete Mediation: The TCB

A
  • -make sure no protected resource can be accessed w/o going through the TCB.
  • -The TCB acts as a reference monitor that cannot be bypassed.
25
Q

Complete Mediation: User Code

A
  • -User code cannot access the OS part of the address space w/o changing to system mode.
  • -User code cannot access physical resources because they require privilege instructions that can only be executed in system mode.
26
Q

Complete Mediation: OS

A
  • -OS virtualizes physical resources and provides an API for virtualized resources
  • -File for storing persistent data on disk
  • -Virtual resource must be translated to physical by the OS
27
Q

Virtualization helps with limiting the damage caused by a compromised OS by…

A
  • -Using a hypervisor between OS and hardware

- -VMs on top of hypervisor have their own OS and apps (isolation)