File: 20-chroot.t

package info (click to toggle)
modsecurity-apache 2.9.11-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 10,436 kB
  • sloc: ansic: 53,590; sh: 5,249; perl: 2,340; cpp: 1,930; makefile: 618; xml: 6
file content (35 lines) | stat: -rw-r--r-- 753 bytes parent folder | download | duplicates (13)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
### SecChroot tests
# TODO: Will not work as we need root access

#{
#	type => "config",
#	comment => "SecChroot",
#	httpd_opts => qw(
#		-DCHROOT
#	),
#	conf => qq(
#		# These will be in the chroot
#		PidFile /logs/httpd.pid
#		ScoreBoardFile /logs/httpd.scoreboard
#   User nobody
#		Group nogroup
#
#		SecAuditEngine On
#		SecDebugLog $ENV{DEBUG_LOG}
#		SecDebugLogLevel 9
#		SecAuditLog $ENV{AUDIT_LOG}
#		SecAuditLogStorageDir "/logs/audit"
#		SecAuditLogType Concurrent
#		SecChrootDir "$ENV{TEST_SERVER_ROOT}"
#	),
#	match_log => {
#		debug => [ qr/./, 1 ],
#		audit => [ qr/./, 1 ],
#	},
#	match_response => {
#		status => qr/^200$/,
#	},
#	request => new HTTP::Request(
#		GET => "http://$ENV{SERVER_NAME}:$ENV{SERVER_PORT}/test.txt",
#	),
#},