lpic-303-v3

LPIC-303 V3 study materials

View on GitHub

333.2 - Mandatory Access Control

Key Knowledge Areas:

Partial list of the used files, terms and utilities:

Files

/etc/selinux/*

Utilities

selinuxenabled

Command that returns exit status 0 if SELinux is enabled, or else 1.

sestatus

Show an overview of the SELinux status (i.e. state, paths, policies, etc.)

seinfo, apol

Get information on SELinux policy or analyze SELinux policy graphically (similar output)

seaudit

Analyze audit logs graphically

audit2allow, audit2why

Generate audit rules from logs or describe why access was denied (alias for audit2allow -w)

semanage

Manage SELinux policies

getenforce, setenforce

Get or set the SELinux state

getsebool, setsebool, togglesebool

Get, set, or toggle SELinux booleans

fixfiles, setfiles

Correct or set SELinux context of files

chcon, restorecon

Change SELinux context or restore default SELinux context of files

newrole

Switch SELinux role for a shell

setcon

Set SELinux context of a process

runcon

Switch SELinux context for a command

Notes

Type enforcement

Type enforcement

Role based access control (RBAC)

Role-based access control

Mandatory access control (MAC)

Mandatory access control

Discretionary access control

Discretionary access control

AppArmor

AppArmor

Smack

Smack (software)