Skip to content

Commit 508766c

Browse files
committed
version 0.9.5
git-svn-id: https://mod-ruid.svn.sourceforge.net/svnroot/mod-ruid@34 541e799a-c857-49a9-9955-d080b115f20d
1 parent bccfe4b commit 508766c

File tree

4 files changed

+26
-22
lines changed

4 files changed

+26
-22
lines changed

README

+11-10
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
ABOUT
2-
mod_ruid2 is a suexec module for apache 2.0, based on mod_ruid and mod_suid2
2+
mod_ruid2 is a suexec module for apache 2.0, 2.2 and 2.4, based on mod_ruid and mod_suid2
33

44
-it runs only on linux because afaik only linux has implemented posix 1003.1e capabilities
55
-it has better performance than mod_suid2 because it doesn`t need to kill httpd children
@@ -9,12 +9,12 @@ mod_ruid2 is a suexec module for apache 2.0, based on mod_ruid and mod_suid2
99
or something..
1010

1111
-there are two main operation modes: stat and config
12-
1. stat
13-
is default, httpd setuid and setgid to uid and gid of requested filename(script)/directory
14-
this is good if you use mod_vhost_alias for virtual hosting
12+
1. config
13+
is default, you must define uid and gid. If no [ug]id is defined the default user and group are used.
1514

16-
2. config
17-
like mod_suid2, you must define uid and gid
15+
2. stat
16+
httpd setuid and setgid to uid and gid of requested filename(script)/directory
17+
this is good if you use mod_vhost_alias for virtual hosting
1818

1919
INSTALL
2020
1. download and install latest libcap from here
@@ -23,16 +23,17 @@ INSTALL
2323
4. restart apache
2424

2525
CONFIGURE OPTIONS:
26-
RMode config|stat (default is stat)
26+
RMode config|stat (default is config)
2727
RUidGid user|#uid group|#gid - when RMode is config, set to this uid and gid
2828

2929
RMinUidGid user|#uid group|#gid - when uid/gid is < than min uid/gid set to default uid/gid
3030
RDefaultUidGid user|#uid group|#gid
3131

3232
RGroups group1 group2 - aditional groups set via setgroups
33-
33+
@none erase al previous defined groups.
34+
3435
RDocumentChrRoot - Set chroot directory and the document root inside
35-
36+
3637

3738
EXAMPLE:
3839

@@ -49,7 +50,7 @@ EXAMPLE:
4950
RDocumentChRoot /home /example.com/public_html
5051
ServerName example.com
5152
ServerAlias www.example.com
52-
RMode config
53+
RMode config # unnecessary since config is the default
5354
RUidGid user1 group1
5455
RGroups apachetmp
5556

contrib/mod_ruid2-redhat.spec

+7-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Summary: Run all httpd process under user's access right.
22
Name: mod_ruid2
3-
Version: 0.9.4
3+
Version: 0.9.5
44
Release: 1%{dist}
55
Group: System Environment/Daemons
66
URL: http://sourceforge.net/projects/mod-ruid/
@@ -47,11 +47,16 @@ install -m 644 ruid2.conf \
4747

4848

4949
%changelog
50+
* Wed Mar 07 2012 Kees Monshouwer <km|monshouwer_com> 0.9.5-1
51+
- Update to 0.9.5
52+
- Switch default mode to 'config' !!!
53+
- Apache 2.4 compatibility
54+
5055
* Wed Feb 23 2011 Kees Monshouwer <km|monshouwer.com> 0.9.4-1
5156
- Update to 0.9.4
5257
- Fixed: mod_security incompatibility issue
5358

54-
* Tue Jan 04 2011 Kees Monshouwer <km|monshouwer.com> 0.9.3-1
59+
* Tue Jan 04 2011 Kees Monshouwer <km|monshouwer_com> 0.9.3-1
5560
- Update to 0.9.3
5661
- Fixed: chroot issue with sub-requests caused by mod_rewrite
5762

mod_ruid2.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
mod_ruid2 0.9.5b3
2+
mod_ruid2 0.9.5
33
Copyright (C) 2009-2012 Monshouwer Internet Diensten
44
55
Author: Kees Monshouwer
@@ -48,7 +48,7 @@
4848
#include <sys/capability.h>
4949

5050
#define MODULE_NAME "mod_ruid2"
51-
#define MODULE_VERSION "0.9.5b3"
51+
#define MODULE_VERSION "0.9.5"
5252

5353
#define RUID_MIN_UID 100
5454
#define RUID_MIN_GID 100

ruid2.conf

+6-8
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,14 @@
1313
# RDocumentChRoot /home /example.com/public_html
1414
# ServerName example.com
1515
# ServerAlias www.example.com
16-
# RMode config
16+
# RMode config # unnecessary since config is the default
1717
# RUidGid user1 group1
1818
# RGroups apachetmp
1919
#
2020
# <Directory /home/example.com/public_html/dir>
2121
# RMode stat
2222
# </Directory>
23-
#
23+
#
2424
# <Directory /home/example.com/public_html/dir/test>
2525
# RMode config
2626
# RUidGid user2 group2
@@ -48,9 +48,7 @@
4848

4949
LoadModule ruid2_module modules/mod_ruid2.so
5050

51-
<IfModule mod_ruid2.c>
52-
RMode config
53-
RDefaultUidGid apache apache
54-
RUidGid apache apache
55-
RGroups apache
56-
</IfModule>
51+
#<IfModule mod_ruid2.c>
52+
# RMode stat
53+
# RGroups @none
54+
#</IfModule>

0 commit comments

Comments
 (0)