Skip to contentSkip to conversation

How does policy loading work at bootup?

DISCUSSION dE 2 participants 4 messages May 4, 2014 – May 6, 2014 SELinux security module

lore
Share & tools
lore

dE

author
#0 lore raw

Does the kernel automatically searches for and reads the policies in hard coded locations or does some userspace tool does that at startup via init/systemd scripts/units?

#1 lore raw
Quoted 1 line · dE

Does the kernel automatically searches for and reads the policies in hard coded locations or does some userspace tool does that at startup via init/systemd scripts/units?

A long long time ago (before SELinux was accepted into Linus's tree), the kernel used to read the policy itself. Now it is loaded by userspace, typically either by the init program, or by the initramfs.

Signature · 3 lines
Chris PeBenito
Tresys Technology, LLC
www.tresys.com | oss.tresys.com
author
#2 lore raw
Quoted 4 lines · Christopher J. PeBenito
Quoted 1 line · dE

Does the kernel automatically searches for and reads the policies in hard coded locations or does some userspace tool does that at startup via init/systemd scripts/units?

A long long time ago (before SELinux was accepted into Linus's tree), the kernel used to read the policy itself. Now it is loaded by userspace, typically either by the init program, or by the initramfs.

Is it the semodule utility?

author
#3 lore raw
In reply to Christopher J. PeBenito
Quoted 4 lines · Christopher J. PeBenito
Quoted 1 line · dE

Does the kernel automatically searches for and reads the policies in hard coded locations or does some userspace tool does that at startup via init/systemd scripts/units?

A long long time ago (before SELinux was accepted into Linus's tree), the kernel used to read the policy itself. Now it is loaded by userspace, typically either by the init program, or by the initramfs.

Got it. It's load_policy.

Thanks for the assistance.