~/talk

Tutorial: How to Write a Linux Security Module

slides:none on file

Covers how to implement an LSM end to end: which kernel hooks to use (inode/file/socket vs packet), how to store labels in per-object infrastructure-managed blobs, and how to expose context via /proc and sysfs; shows path-hook pitfalls—d_path reconstruction misses symlinks and struggles with hard links and mount namespaces—and warns packet labeling options: secmark and netlabel are practical, while labeled IPSec can explode into thousands of SAs; recommends netfilter/BPF for packet drops and audit integration for decisions.

AI-written summary · about

  1. 0:00Introduction and context
  2. 1:44Understanding LSMs
  3. 3:22LSM functionality limitations
  4. 4:29LSM inappropriate use cases
  5. 6:03LSM alternative mechanisms
  6. 8:23LSM design best practices
  7. 11:07Security module design phases
  8. 13:36Threat modeling in security
  9. 15:52Hooks and access control
  10. 21:22State maintenance and hooks
  11. 23:44Security blobs management
  12. 25:52Registering a new LSM
  13. 28:20SecID and Context handling
  14. 31:15Process attribute management
  15. 33:53Proc interfaces and security
  16. 37:14Object-based hooks and files
  17. 42:39Extended attributes usage
  18. 45:31Path-based hooks and aliasing
  19. 52:37Handling namespaces and mounts
  20. 55:07Network access control
  21. 59:17Network labeling protocols
  22. 1:02:54Socket option interfaces
  23. 1:07:06Networking limitations and risks
  24. 1:10:35Audit subsystem overview
  25. 1:13:39Audit record management
  26. 1:17:09Best practices for auditing
  27. 1:21:35Performance impact of auditing
  28. 1:24:11LSM interface configuration
  29. 1:25:48Adding new security hooks
  30. 1:28:27LSM boot configuration
  31. 1:31:09Conclusion and Q&A
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.