LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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 09-17-2001, 01:09 AM   #1
JackD
LQ Newbie
 
Registered: Sep 2001
Posts: 2

Rep: Reputation: 0
Unhappy Daemon cannot open device driver


I have added some code to OpenSSL. This gets compiled in by apache to create the httpd. httpd is unable to open the device. The same device opens successfully from an application. The open() request fails and never reaches the device (gets rejected by the OS).

Anyone with detailed knowledge about access right and permissions may be able to help. Thanks in advance.
 
Old 09-17-2001, 02:03 AM   #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
What device are you referring to?
Could you post some log errors?
 
Old 09-18-2001, 01:31 PM   #3
JackD
LQ Newbie
 
Registered: Sep 2001
Posts: 2

Original Poster
Rep: Reputation: 0
The device is a driver that I have written to allow some of the OpenSSL PK operations to be accelerated. The driver is started as /dev/ce0.

I have now figured out why the open() on /dev/ce0 and /dev/mem fails. Both these have uid=root, whereas the httpd has uid=nobody. The only way that I got this to work is to recompile the http daemon with -DBIG_SECURITY_HOLE. Then run the httpd with a uid=root.

If anyone knows the correct way to achive this without leaving a big security hole please let me know.
 
  


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
sshd: fatal: daemon() failed: No such device oru Linux - Networking 10 08-13-2013 03:06 PM
Failed to open device /dev/usb/ttyUSB0: No such device efm Linux - Newbie 2 04-04-2005 08:46 PM
Can't open USSP device. No such device (19). triona Linux - Software 0 02-04-2005 02:21 AM
CUPS Driver for Cannon i850 (or alternate daemon?)? enigma Z Linux - Hardware 6 09-04-2004 08:23 PM
loop: can't open device /dev/loop0: No such device or address miaviator278 Linux - Security 3 06-09-2004 09:24 PM

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

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