LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 12-01-2010, 09:23 PM   #1
fmillion
Member
 
Registered: Nov 2006
Posts: 93

Rep: Reputation: 27
LFS + Chroot on Grsec kernel + Apache = fail


I have compiled an LFS tree that I wish to run on a friend's box who is going to host for me. He is running kernel 2.6.19 with Grsecurity. I did not have a Grsec kernel on the source box (the one I compiled the LFS on) and I am not sure if this is the problem in and of itself.

In any case, I tried to run Apache on his box (after chrooting into the environment) and got the following message:

Code:
[root@host] /home/fmillion # chroot lfs_environment /bin/bash -l
[root@host) /root # cd /home/www/apache/bin
[root@host] /home/www/apache/bin # ./apachectl start
[Thu Dec 02 03:21:12 2010] [crit] (22)Invalid argument: alloc_listener: failed to get a socket for x.x.x.x
Syntax error on line 41 of /home/www/apache/conf/httpd.conf:
Listen setup failed
[root@host] /home/www/apache/bin #
(Note, the x.x.x.x is the actual IP on which Apache will be listening. IT is not "(null)" as I've seen on other posts related to this issue.)

Line 41 simply reads:

Code:
Listen x.x.x.x:80
(again, x.x.x.x is the real IP)

I've heard this has to do with APR not being able to make certain kernel calls. As I'm not highly familiar with Grsec, can I 1) assume that this is the root of the problem and 2) fix it somehow without having to ask my friend to change his setup, or redo an entire LFS with Grsec or something?

Simpler apps (nc for example) run fine and can open listening sockets and receive on them. This problem appears specific to Apache, and possibly may also include other daemons (but I haven't tried other ones yet.)

Advice greatly appreciated.

Thanks

FM

Last edited by fmillion; 12-02-2010 at 12:06 AM.
 
Old 12-02-2010, 09:59 PM   #2
slimm609
Member
 
Registered: May 2007
Location: Chas, SC
Distribution: slackware, gentoo, fedora, LFS, sidewinder G2, solaris, FreeBSD, RHEL, SUSE, Backtrack
Posts: 430

Rep: Reputation: 67
see here. Its the same issue as stated in my other post.


http://www.linuxquestions.org/questi...6/#post4179015
 
Old 12-03-2010, 09:49 AM   #3
fmillion
Member
 
Registered: Nov 2006
Posts: 93

Original Poster
Rep: Reputation: 27
I figured out that it has to do with the fact that the kernel on the destination system is different than the one on the build system. The destination system's kernel is older and lacks some kernel features needed. I was able to find a post with some Configure variables that will solve the problem.

That problem is solved, and I used my build system to recompile Apache, and transferred it up to the production system and it worked.We're still faced with the other issue on this same box though:


http://www.linuxquestions.org/questi...d.php?t=848016


Thanks

fm
 
  


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
devfs not mounted (kernel 2.6.24.5-grsec) Marko L Linux - Kernel 0 06-24-2008 02:52 PM
LFS Book Chapter 6 - 1st step (chroot to /mnt/lfs) doens't work bauld Linux From Scratch 11 03-15-2006 12:31 AM
ALSA & kernel with grsec drenal Linux - Software 0 01-26-2004 05:34 PM
grsec+kernel 2.4.23+iptables f1uke Linux - Newbie 0 12-07-2003 12:36 PM
grsec signal 11 generates segment faults in Apache/Tomcat connection MJatIFAD Linux - Security 5 12-06-2003 02:16 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

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