PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Forums Hébergement > Forum Hébergement serveur > comp.info.servers.unix > apache 2 module's permissions and interaction with system
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
comp.info.servers.unix Web servers for UNIX platforms.

apache 2 module's permissions and interaction with system

Réponse
 
LinkBack Outils de la discussion
Vieux 31/03/2005, 16h07   #1
harry dot news
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut apache 2 module's permissions and interaction with system


I'm trying to convert a working module from apache 1 to 2.0.52 on
Fedora Core 3.

My problem is that the module seems to be quite disconnected from the
rest of the system, and in my tests can't manage to:
1. find if an external file exists:
access("path/file",F_OK) returns errno=13 (EACCESS)
2. send signal to a process:
signal(pid,SIGCLD) returns errno=1 (EPERM).

The above problems disappear if I change in httpd.conf the user/group
from apache/apache to some other account.
I conclude that this problem has to do with the permissions of the
apache user/group.

Can someone throw some light on the permissions of the apache account,
and explain if it's possible for a module to interact with the rest of
the system (specifically for the above 2 problems) when running under
this default account ?

Thanks for any or information,
Harry

  Réponse avec citation
Vieux 02/04/2005, 08h25   #2
Juha Laiho
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: apache 2 module's permissions and interaction with system

"harry dot news" <"harry dot news"@armadillo.fr> said:
>I'm trying to convert a working module from apache 1 to 2.0.52 on
>Fedora Core 3.

....
>Can someone throw some light on the permissions of the apache account,
>and explain if it's possible for a module to interact with the rest of
>the system (specifically for the above 2 problems) when running under
>this default account ?


If I recall correctly, Fedora Core 3 distribution has some security-
enhancement patches within the OS kernel. Look for 'SELinux', and
I think you should find what you're looking for.
--
Wolf a.k.a. Juha Laiho Espoo, Finland
(GC 3.0) GIT d- s+: a C++ ULSH++++$ P++@ L+++ E- W+$@ N++ !K w !O !M V
PS(+) PE Y+ PGP(+) t- 5 !X R !tv b+ !DI D G e+ h---- r+++ y++++
"...cancel my subscription to the resurrection!" (Jim Morrison)
  Réponse avec citation
Vieux 02/04/2005, 22h14   #3
Nick Kew
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: apache 2 module's permissions and interaction with system

harry dot news wrote:

> My problem is that the module seems to be quite disconnected from the
> rest of the system, and in my tests can't manage to:
> 1. find if an external file exists:
> access("path/file",F_OK) returns errno=13 (EACCESS)
> 2. send signal to a process:
> signal(pid,SIGCLD) returns errno=1 (EPERM).


That's basic security, and (unless you do something unusual and
probably dangerous) is the same in every apache version (and
indeed in its predecessor, the NCSA server).

Corollary: since you're converting a 1.x module, you can install
and test that on the same system as a control.

> The above problems disappear if I change in httpd.conf the user/group
> from apache/apache to some other account.
> I conclude that this problem has to do with the permissions of the
> apache user/group.


That'll be down to the setup on your platform (see Juha's reply for
a likely culprit).

--
Nick Kew
  Réponse avec citation
Vieux 04/04/2005, 13h53   #4
harry dot news
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: apache 2 module's permissions and interaction with system


Thanks for the answers, but SELinux doesn't seem to explain the problem.
The file /etc/selinux/config contains the lines -

SELINUX=disabled
SELINUXTYPE=targeted

which seems to rule out SELinux.
Is this correct ?

Harry

Juha Laiho wrote:

> "harry dot news" <"harry dot news"@armadillo.fr> said:
>
>>I'm trying to convert a working module from apache 1 to 2.0.52 on
>>Fedora Core 3.

>
> ...
>
>>Can someone throw some light on the permissions of the apache account,
>>and explain if it's possible for a module to interact with the rest of
>>the system (specifically for the above 2 problems) when running under
>>this default account ?

>
>
> If I recall correctly, Fedora Core 3 distribution has some security-
> enhancement patches within the OS kernel. Look for 'SELinux', and
> I think you should find what you're looking for.


  Réponse avec citation
Vieux 07/04/2005, 12h31   #5
harry dot news at armadillo dot fr
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: apache 2 module's permissions and interaction with system


Thanks for the answers, but SELinux doesn't seem to explain the problem.
The file /etc/selinux/config contains the lines -

SELINUX=disabled
SELINUXTYPE=targeted

which seems to rule out SELinux.
Is this correct ?

Harry

Juha Laiho wrote:

> "harry dot news" <"harry dot news"@armadillo.fr> said:
>
>>I'm trying to convert a working module from apache 1 to 2.0.52 on
>>Fedora Core 3.

>
> ...
>
>>Can someone throw some light on the permissions of the apache account,
>>and explain if it's possible for a module to interact with the rest of
>>the system (specifically for the above 2 problems) when running under
>>this default account ?

>
>
> If I recall correctly, Fedora Core 3 distribution has some security-
> enhancement patches within the OS kernel. Look for 'SELinux', and
> I think you should find what you're looking for.


  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 22h37.


Édité par : vBulletin® version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,09539 seconds with 13 queries