14. Memory Safety Flashcards
What is an operating system?
Interface between applications and the hardware
What are the execution modes on unix?
- user mode - kernel mode
What is user mode?
Access to resources through syscall to kernel
What is kernel mode
Direct access to resources
What is a process?
Program that is currently executing
What is a PID?
Process ID, used to identify a process
What is a fork?
Method by which a process starts a child process
How are file permissions represented in unix?
What’s a UID (unix)?
Real user ID, user that launched program
What is euid (unix)?
Effective user ID, user that owns program
What is the setuid property?
Sets euid of process to owner (as apposed to user that executed the program) to allow restricted access to sensitive resources
What direction does the heap grow?
Upwards
What direction does the stack grow?
Downwards
What does the text space contain?
- Program instructions - Static data
What is the stack comprised of?
Stack frames