LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 08-24-2008, 04:06 PM   #1
ericcarlson
Member
 
Registered: Jan 2002
Posts: 162

Rep: Reputation: 30
"selinux is preventing sshd getattr to /usr/NX/home.nx"


I have search here but found no answer to the exact same problem this guy faced: http://forums.fedoraforum.org/showthread.php?p=1043553 - he got no answer either.

Is it too much of a co-incidence it just started happening after the fedora servers were hacked? I have automatic updates on.

System is Fed 9. Thank you.
 
Old 08-24-2008, 06:19 PM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Quote:
Originally Posted by ericcarlson View Post
Is it too much of a co-incidence it just started happening after the fedora servers were hacked? I have automatic updates on.
Which Fedora servers got cracked then?


Quote:
Originally Posted by ericcarlson View Post
I have search here but found no answer to the exact same problem this guy faced
Problem, OK, but you didn't post if you tried his workarounds? If you tried his local policy then that should not work because he makes an error using "file read" but that should be "file getattr".
 
Old 08-25-2008, 03:43 AM   #3
ericcarlson
Member
 
Registered: Jan 2002
Posts: 162

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by unSpawn View Post
Which Fedora servers got cracked then?
I'm sorry for saying that the way I did, I guess I was being paranoid! I suppose thats the knock on problem now, anything affecting SSH gets folk jumpy.

You were right, those workarounds didn't help, but I have some more information. First, there has been a change to nxsever because it used to put its keys in /etc/nxserver ... and now it uses /usr/NX/ ...

But the main thing I found is if I use setenforce 0 it all works! Does anyone know the exact change I need to make to SElinux to fix this please?

Here is the full line from /var/messages:

Aug 25 09:32:08 scooby setroubleshoot: SELinux is preventing sshd (sshd_t) "getattr" to /usr/NX/home/nx/.ssh/authorized_keys2 (usr_t). For complete SELinux messages. run sealert -l d89f8e82-3d16-454e-a990-8
c998f411d85
 
Old 08-25-2008, 12:04 PM   #4
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Quote:
Originally Posted by ericcarlson View Post
I'm sorry for saying that the way I did, I guess I was being paranoid!
Being paranoid is OK IMHO, just watch our for spreading FUD. If you suspect tampering with any distribution check their security mailing list. If it's not listed and you still suspect a problem check with the distribution's Security Officer or security team. They are able to deal with things swiftyly, accurately and decisively.


Quote:
Originally Posted by ericcarlson View Post
You were right, those workarounds didn't help,
Even *with* applying my note on the "getattr" attribute?


Quote:
Originally Posted by ericcarlson View Post
the main thing I found is if I use setenforce 0 it all works!
That puts SE Linux in permissive mode, in other words it does nothing but log errors.


Quote:
Originally Posted by ericcarlson View Post
Aug 25 09:32:08 scooby setroubleshoot: SELinux is preventing sshd (sshd_t) "getattr" to /usr/NX/home/nx/.ssh/authorized_keys2 (usr_t). For complete SELinux messages. run sealert -l d89f8e82-3d16-454e-a990-8c998f411d85
If you run 'sealert -l d89f8e82-3d16-454e-a990-8c998f411d85|audit2allow' you should get a line to add to your local policy.
 
  


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
"../system.h :selinux/selinux.h:no such file or directory" ashmita04 Linux From Scratch 4 02-05-2009 03:36 AM
Can't locate object method "splitpath" via package "PACK001" at /usr/lib/perl5/5.8.8/ sajigeorge Linux - Software 1 01-11-2009 06:33 AM
What does "Directory "/usr/src/linux" doesn't appear to contain kernel source." mean? jtp51 Linux - General 4 06-11-2007 12:22 AM
problem "make"ing gtk+ "/usr/bin/env: perl -w" caid Linux - Newbie 8 07-29-2005 04:51 AM
Compromised? Files "/usr/lib.hwm", "/usr/lib.pwd", "/usr/lib.pwi" Klaus Pforte Linux - Security 4 09-28-2004 11:33 PM

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

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