cancel
Showing results for 
Search instead for 
Did you mean: 
Trevor
Commander Commander
Commander
  • 1,285 Views

SELinux

When booting a Linux system, what is the kernel parameter that can be provided, 
so that no part of the SELinux infrastructure is loaded by the kernel?

Trevor "Red Hat Evangelist" Chandler
8 Replies
Chetan_Tiwary_
Community Manager
Community Manager
  • 1,240 Views

@Trevor such a great question! I remember being asked this question in one of my interviews long back!

Trevor
Commander Commander
Commander
  • 1,228 Views

Hello Chetan, thanks for the kind word on my question.

I hope the question didn't bring back any upleasant
memories

Trevor "Red Hat Evangelist" Chandler
Chetan_Tiwary_
Community Manager
Community Manager
  • 1,227 Views

haha no way ! I was well prepared for that grenade!

Trevor
Commander Commander
Commander
  • 1,213 Views

And I wouldn't doubt that of all the candidate that the hiring panel interviewed,
you were the only one who responded correctly, and with authority - sending 
shockwaves throughout the minds of the commiteee!!!

Trevor "Red Hat Evangelist" Chandler
Chetan_Tiwary_
Community Manager
Community Manager
  • 1,211 Views

Chetan_Tiwary__0-1728843227038.jpeg

0 Kudos
jkuhn0015
Cadet
Cadet
  • 89 Views

I am really just starting my journy with Red Hat and the community here. This is the first discussion that caught my attention. Where would I find the answer to this quetion?

0 Kudos
TudorRaduta
Community Manager
Community Manager
  • 80 Views

Good question to start your journey with, this one teaches you how the system behaves before user space even loads.
Here’s a structured hint to guide your research:

  • check the kernel parameters that are passed at boot. You can view them in /proc/cmdline.
  • look specifically for parameters related to SELinux initialization. The correct one disables SELinux loading entirely.

And here’s your challenge: once you find the parameter, try booting a lab system with it applied. After the reboot, run the SELinux status tools you’ve learned. What changes do you observe in how the system reports its security state?

Post your findings to confirm you’ve understood it correctly.

0 Kudos
Ad_astra
Flight Engineer Flight Engineer
Flight Engineer
  • 19 Views

Adding selinux=0 to the GRUB2 linux command line parameters will disable SE Linux. 

Commands such as sestatus and getsebool -a will show that SE Linux is in a disabled state.

0 Kudos
Join the discussion
You must log in to join this conversation.