LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > CentOS
User Name
Password
CentOS This forum is for the discussion of CentOS Linux. Note: This forum does not have any official participation.

Notices


Reply
  Search this Thread
Old 02-16-2017, 08:40 AM   #1
HMW
Member
 
Registered: Aug 2013
Location: Sweden
Distribution: Debian, Arch, Red Hat, CentOS
Posts: 773
Blog Entries: 3

Rep: Reputation: 369Reputation: 369Reputation: 369Reputation: 369
semanage login -l gives no output


As the headline says, when issuing:
Code:
# semanage login -l
I get no output at all. Nada!

I was expecting (as per the official documentation) something along the lines of:
Code:
# semanage login -l

Login Name                SELinux User              MLS/MCS Range

__default__               unconfined_u              s0-s0:c0.c1023
root                      unconfined_u              s0-s0:c0.c1023
system_u                  system_u                  s0-s0:c0.c1023
Any CentOS experts out there know why this is?

System info:
Code:
# uname -a
Linux centos 3.10.0-514.el7.x86_64 #1 SMP Tue Nov 22 16:42:41 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
 
Old 02-22-2017, 09:50 PM   #2
drillsar
Member
 
Registered: Jan 2017
Posts: 144

Rep: Reputation: Disabled
what is your current SELinux mode?
 
Old 02-23-2017, 01:47 AM   #3
HMW
Member
 
Registered: Aug 2013
Location: Sweden
Distribution: Debian, Arch, Red Hat, CentOS
Posts: 773

Original Poster
Blog Entries: 3

Rep: Reputation: 369Reputation: 369Reputation: 369Reputation: 369
Quote:
Originally Posted by drillsar View Post
what is your current SELinux mode?
Thank you for your reply. The mode is:
Code:
# getenforce 
Enforcing
 
Old 02-24-2017, 11:24 AM   #4
drillsar
Member
 
Registered: Jan 2017
Posts: 144

Rep: Reputation: Disabled
did you try going into permissive mode and check your audit log errors?

reboot and do the following:

sealert -a /var/log/audit/audit.log
 
Old 02-24-2017, 01:05 PM   #5
HMW
Member
 
Registered: Aug 2013
Location: Sweden
Distribution: Debian, Arch, Red Hat, CentOS
Posts: 773

Original Poster
Blog Entries: 3

Rep: Reputation: 369Reputation: 369Reputation: 369Reputation: 369
Quote:
Originally Posted by drillsar View Post
did you try going into permissive mode and check your audit log errors?

reboot and do the following:

sealert -a /var/log/audit/audit.log
Yep, been there, done that. Zero errors!

Edit:
But, the more I read about SELinux, I have come to realize that no one actually understand how SELinux works!!!

Last edited by HMW; 02-24-2017 at 01:15 PM.
 
Old 02-24-2017, 01:15 PM   #6
drillsar
Member
 
Registered: Jan 2017
Posts: 144

Rep: Reputation: Disabled
did you try reinstall policycoreutils-python ?
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
selinux: semanage vs restorecon fanoflq Linux - Security 6 01-29-2020 02:59 AM
[SOLVED] SELinux semanage is missing context of unconfied_u JockVSJock Linux - Security 7 02-23-2016 07:19 PM
How to disable login output in Solaris 11 sluge Solaris / OpenSolaris 4 10-21-2014 11:41 PM
Bash script output to console without login m.dam Linux - General 6 01-07-2011 10:07 AM
abnormal config output when login omababy Linux - Software 4 03-25-2003 11:52 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > CentOS

All times are GMT -5. The time now is 06:25 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration