LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices


Reply
  Search this Thread
Old 03-26-2005, 04:16 PM   #1
stopmotion24
LQ Newbie
 
Registered: Mar 2005
Posts: 2

Rep: Reputation: 0
selinux question


I have a Fedora Core 3 sever setup with a hosting company.

If I SSH into the server is there a command to see if selinux was installed?
 
Old 03-26-2005, 08:51 PM   #2
mjmwired
Member
 
Registered: Apr 2004
Distribution: CentOS6, CentOS5, F16, F15, Ubuntu, OpenSuse
Posts: 620

Rep: Reputation: 39
I'm not sure, but maybe some of these commands will help:

This checks the name for every RPM installed to see if any is similar to "selinux":

[mirandam@portia ~]$ rpm -qa | grep selinux
libselinux-1.17.14-1
selinux-policy-targeted-1.17.30-2.19
libselinux-devel-1.17.14-1

This checks the last bootup log to see if any parts of SELinux were loaded or initialized:

[mirandam@portia ~]$ dmesg | grep SELinux
SELinux: Initializing.
SELinux: Starting in permissive mode
SELinux: Registering netfilter hooks
SELinux: Disabled at runtime.
SELinux: Unregistering netfilter hooks

This checks if the kernel which is loaded had selinux enabled in it. This command may not work for you, if there are NO 'config-2.6.xxxx' files in /boot.

[mirandam@portia ~]$ cat /boot/config-`uname -r` | grep SELINUX
CONFIG_SECURITY_SELINUX=y
CONFIG_SECURITY_SELINUX_BOOTPARAM=y
CONFIG_SECURITY_SELINUX_BOOTPARAM_VALUE=1
CONFIG_SECURITY_SELINUX_DISABLE=y
CONFIG_SECURITY_SELINUX_DEVELOP=y
# CONFIG_SECURITY_SELINUX_MLS is not set
 
Old 03-26-2005, 10:58 PM   #3
stopmotion24
LQ Newbie
 
Registered: Mar 2005
Posts: 2

Original Poster
Rep: Reputation: 0
Thank you those commands really helped!
 
  


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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
SELinux winxshadi76 Linux - Newbie 1 12-03-2004 11:04 AM
what is SELINUX?? masand Linux - Security 3 09-02-2004 07:57 AM
Selinux fedorafreak Fedora 2 08-15-2004 09:41 AM
Selinux tessx Linux - General 3 05-22-2004 12:46 AM
selinux question ronin4601 Linux - Newbie 0 04-18-2004 01:59 PM

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

All times are GMT -5. The time now is 07:15 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