LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 12-15-2011, 08:30 AM   #1
ggstone
LQ Newbie
 
Registered: Dec 2011
Posts: 4

Rep: Reputation: Disabled
Lightbulb How can I solve the chcon problem ?


when I install the ati video card driver to my system,it's show that:
/usr/bin/chcon: can't apply partial context to unlabeled file /usr/lib/xorg/modules/drivers/fglrx_drv.so'
/usr/bin/chcon: can't apply partial context to unlabeled file `/usr/lib/fglrx/fglrx-libGL.so.1.2'
...........and so on.
Shall I set some parameter for "/usr/lib/" using "chcon" command ?
Please help me.
Thanks a lot!
 
Old 12-15-2011, 04:10 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 ggstone View Post
Shall I set some parameter for "/usr/lib/" using "chcon" command ?
I think you should first check if your file system needs relabeling. What does 'restorecon -i -R -n -vv /usr/lib 2>&1| grep -v symbolic;' say?
 
Old 12-15-2011, 07:14 PM   #3
ggstone
LQ Newbie
 
Registered: Dec 2011
Posts: 4

Original Poster
Rep: Reputation: Disabled
restorecon -i -R -n -vv /usr/lib 2>&1| grep -v symbolic
say nothing.....
why?
 
Old 12-16-2011, 04:52 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
Hmm. If it would need relabeling it would return something. What does '\ls -alZ /usr/lib/xorg/modules/drivers/ /usr/lib/fglrx/' return? (Find out if this is an unlabeled system.)
 
Old 12-18-2011, 09:24 PM   #5
ggstone
LQ Newbie
 
Registered: Dec 2011
Posts: 4

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by unSpawn View Post
Hmm. If it would need relabeling it would return something. What does '\ls -alZ /usr/lib/xorg/modules/drivers/ /usr/lib/fglrx/' return? (Find out if this is an unlabeled system.)
unSpawn,Thanks a lot!
I fixed it.
I modify the libselinux-2.0.94-5.2.el6.src.rpm source code,make is_selinux_enabled() function return 0, and then the ati driver installed OK.
 
Old 12-19-2011, 01:11 AM   #6
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 ggstone View Post
I fixed it. I modify the libselinux-2.0.94-5.2.el6.src.rpm source code,make is_selinux_enabled() function return 0
That's not a "fix", that's deliberate destruction, subversion and completely out of proportion.
 
Old 12-21-2011, 07:30 PM   #7
ggstone
LQ Newbie
 
Registered: Dec 2011
Posts: 4

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by unSpawn View Post
That's not a "fix", that's deliberate destruction, subversion and completely out of proportion.
How to find out if this is an unlabeled system? if so,how to label the system? Thanks.
 
Old 12-22-2011, 03:46 AM   #8
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
OK, let's identify components. I'm sure I've got more questions (bit short on time right now), after you have restored libselinux-2.0.94-5.2.el6, what do the following return:
rpm -q kernel
rpm -qa|grep selinux
grep -v ^# /etc/selinux/config|grep .
/usr/sbin/selinuxenabled; echo $?
cat /proc/mounts
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
how to solve solve broken shell problem prasanth.george Red Hat 1 01-21-2011 09:48 AM
PROBLEM WITH chcon COMMAND meandsushil Linux - Newbie 1 04-26-2010 11:38 AM
SELinux & help with chcon rn8849 Linux - Security 22 10-28-2009 01:29 PM
how to run chcon command justsimran Linux - General 1 04-15-2007 12:21 PM
mistake with chcon Archproject Red Hat 2 04-27-2006 11:26 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 04:36 PM.

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