martin      98/05/06 14:12:40

  Modified:    conf     httpd.conf-dist
               src      Configure
  Log:
  Some kernels refuse to setgid(group) or semctl(IPC_SET) when the group
  number is above 60000. The Apache Default of #-1 is interpreted by these
  kernels as a huge positive integer, and semctl() fails with EINVAL.
  A NOTE was added to the httpd.conf-dist file to warn about such a problem.
  I was mislead into thinking that ReliantUNIX had semctl() problems, but
  the reason was a wrong group id; the ReliantUNIX 5.44 fallback to
  USE_FCNTL_SERIALIZED_ACCEPT was therefore unnecessary, I reverted to the
  old default.
  
  Revision  Changes    Path
  1.27      +3 -0      apache-1.3/conf/httpd.conf-dist
  
  Index: httpd.conf-dist
  ===================================================================
  RCS file: /export/home/cvs/apache-1.3/conf/httpd.conf-dist,v
  retrieving revision 1.26
  retrieving revision 1.27
  diff -u -u -r1.26 -r1.27
  --- httpd.conf-dist   1998/04/17 08:05:50     1.26
  +++ httpd.conf-dist   1998/05/06 21:12:39     1.27
  @@ -45,6 +45,9 @@
   #  On SCO (ODT 3) use User nouser and Group nogroup
   #  On HPUX you may not be able to use shared memory as nobody, and the
   #  suggested workaround is to create a user www and use that user.
  +#  NOTE that some kernels refuse to setgid(Group) or semctl(IPC_SET)
  +#  when the value of (unsigned)Group is above 60000; 
  +#  don't use Group #-1 on these systems!
   
   User nobody
   Group #-1
  
  
  
  1.256     +1 -7      apache-1.3/src/Configure
  
  Index: Configure
  ===================================================================
  RCS file: /export/home/cvs/apache-1.3/src/Configure,v
  retrieving revision 1.255
  retrieving revision 1.256
  diff -u -u -r1.255 -r1.256
  --- Configure 1998/05/06 15:17:59     1.255
  +++ Configure 1998/05/06 21:12:40     1.256
  @@ -591,13 +591,7 @@
        ;;
       *-sni-sysv4*)
        OS='SVR4'
  -     case `uname -r` in
  -       # 5.44 sometimes has problems with SysV IPC
  -       5.44)
  -         CFLAGS="$CFLAGS -DSVR4 -D_XPG_IV -DHAS_DLFCN -DUSE_MMAP_FILES 
-DUSE_FCNTL_SERIALIZED_ACCEPT -DNEED_UNION_SEMUN";;
  -       *)
  -         CFLAGS="$CFLAGS -DSVR4 -D_XPG_IV -DHAS_DLFCN -DUSE_MMAP_FILES 
-DUSE_SYSVSEM_SERIALIZED_ACCEPT -DNEED_UNION_SEMUN";;
  -     esac
  +     CFLAGS="$CFLAGS -DSVR4 -D_XPG_IV -DHAS_DLFCN -DUSE_MMAP_FILES 
-DUSE_SYSVSEM_SERIALIZED_ACCEPT -DNEED_UNION_SEMUN"
        DEF_WANTHSREGEX=yes
        LIBS="$LIBS -lsocket -lnsl -lc"
        ;;
  
  
  

Reply via email to