Chapter 6. Structure Program Internals and Approach

 

Like a city whose walls are broken down is a man who lacks self-control.

 Proverbs 25:28 (NIV)
Table of Contents
6.1. Follow Good Software Engineering Principles for Secure Programs
6.2. Secure the Interface
6.3. Minimize Privileges
6.3.1. Minimize the Privileges Granted
6.3.2. Minimize the Time the Privilege Can Be Used
6.3.3. Minimize the Time the Privilege is Active
6.3.4. Minimize the Modules Granted the Privilege
6.3.5. Consider Using FSUID To Limit Privileges
6.3.6. Consider Using Chroot to Minimize Available Files
6.3.7. Consider Minimizing the Accessible Data
6.4. Avoid Creating Setuid/Setgid Scripts
6.5. Configure Safely and Use Safe Defaults
6.6. Fail Safe
6.7. Avoid Race Conditions
6.7.1. Sequencing (Non-Atomic) Problems
6.7.2. Locking
6.8. Trust Only Trustworthy Channels
6.9. Use Internal Consistency-Checking Code
6.10. Self-limit Resources
6.11. Prevent Cross-Site Malicious Content
6.11.1. Explanation of the Problem
6.11.2. Solutions to Cross-Site Malicious Content