Lecture SELinuxRadhika
Lecture SELinuxRadhika
SELinux
By
Radhika B S
1
Overview
● Linux Basics
● Linux DAC and its Drawbacks
● Linux Security Module
● SELinux
2
What is Linux?
● The Linux Kernel: Open source monolithic kernel which forms the
core of Operating system. Handles core OS functionalities like
memory management, scheduling, access control etc.
3
Widespread use of Linux
4
Access Control Using Reference Monitor
5
Traditional Access Control in Linux
6
DAC Identifiers used in Access Control
● Files: Files are associated with owner uid and a single gid
7
Drawbacks of DAC
8
Hands-on
9
Password Management in Linux
10
Set-UID
11
Dirty COW attack
12
Linux Security Module
● Realizing the need for a better access control, several MAC based
systems were developed
● Many of those solutions had similar design approach
● LSM was developed to provide a framework for supporting variety
of custom MAC implementations
● Exposes hooks for labeling and access control decision making
● Some of the systems include AppArmor, TOMOYO, Smack
13
Linux Security Module
Kernel Space
System Call
DAC checks
Allow/Deny
14
SELinux
15
Security Context
user:role:type[:levels]
16
Type Enforcement
17
Allow rules
18
Allow Rules
19
Neverallow Rules
20
Information Flow Analysis in SELinux
21
Information Flow Analysis in SELinux
22
Information Flow Analysis in SELinux
23
Analysing Inconssitencies in SELinux using RWFM
24
References
25
SELinux Installation
26