LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
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 02-27-2008, 05:01 AM   #1
Nicooo
LQ Newbie
 
Registered: Feb 2008
Posts: 1

Rep: Reputation: 0
chrooting and device permissions


Hello,

I'm currently trying to chroot an apache server on my system (RedHat EL5) with mod_perl and mod_ssl , but i encounter some difficulties. I have permissions problem with /dev/null /dev/random /dev/urandom.

To debug my chrooted apache, i'm using strace.

When i'm creating a node "null" (mknod null c 1 3) using mknode in my chrooted /dev/
I obtain the following error when running strace with my chrooted apache

open("/dev/null", O_RDONLY|O_LARGEFILE) = -1 EACCES (Permission denied)

but when i removed it and make "touch null"

i don't have any problem.

I chmoded the node to 777 and changed his owner, but i have the same error.

I set SELinux to disabled in /etc/sysconfig/selinux


Any ideas ?
Thanks
 
Old 03-02-2008, 11:11 AM   #2
raskin
Senior Member
 
Registered: Sep 2005
Location: France
Distribution: approximately NixOS (http://nixos.org)
Posts: 1,900

Rep: Reputation: 68
Is your chrooted system on an FS mounted with nodev?
 
  


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
device permissions after libdvdcss install mmartine Linux - Newbie 12 12-09-2007 10:51 PM
need help setting permissions for usb device hedpe Linux - Hardware 1 02-13-2007 10:32 AM
About joustick device permissions? markelo Fedora 0 10-13-2006 02:39 PM
device permissions lowebb Linux - Hardware 3 03-14-2006 04:26 AM
Making device permissions stick mugwump84 Linux - Newbie 3 04-05-2005 04:35 PM

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

All times are GMT -5. The time now is 12:10 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration