postfix-mailgraph/postfix-mailgraph.patch

Mon, 20 Apr 2009 19:22:00 +0200

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Mon, 20 Apr 2009 19:22:00 +0200
changeset 178
0ba300bdf30a
child 199
bf21249327af
permissions
-rw-r--r--

Change unfortunate but partly useful overreaching security tradeoff.
The principle of allocating each running process an individual system
user and group can have security benefits, however maintining a plethora
of users, groups, processes, file modes, file permissions, and even
nonportable file ACLs on a host serving from a hundred processes has
some security disadvantages. This tradeoff is even worse for systems
like OpenPKG which benefit from administration transparency through the
use of minimal system intrusion and only three usage privilege levels.

     1 Index: mailgraph.cgi
     2 --- mailgraph.cgi.orig	2007-08-29 11:06:01 +0200
     3 +++ mailgraph.cgi	2007-08-29 19:05:41 +0200
     4 @@ -160,7 +160,7 @@
     5  <html>
     6  <head>
     7  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
     8 -<title>Mail statistics for $host</title>
     9 +<title>Postfix Mail statistics for $host</title>
    10  <meta http-equiv="Refresh" content="300" />
    11  <meta http-equiv="Pragma" content="no-cache" />
    12  <link rel="stylesheet" href="mailgraph.css" type="text/css" />
    13 @@ -168,7 +168,7 @@
    14  <body>
    15  HEADER
    17 -	print "<h1>Mail statistics for $host</h1>\n";
    18 +	print "<h1>Postfix Mail statistics for $host</h1>\n";
    20  	print "<ul id=\"jump\">\n";
    21  	for my $n (0..$#graphs) {
    22 @@ -183,13 +183,6 @@
    23  	}
    25  	print <<FOOTER;
    26 -<hr/>
    27 -<table><tr><td>
    28 -<a href="http://mailgraph.schweikert.ch/">Mailgraph</a> $VERSION
    29 -by <a href="http://david.schweikert.ch/">David Schweikert</a></td>
    30 -<td align="right">
    31 -<a href="http://oss.oetiker.ch/rrdtool/"><img src="http://oss.oetiker.ch/rrdtool/.pics/rrdtool.gif" alt="" width="120" height="34"/></a>
    32 -</td></tr></table>
    33  </body></html>
    34  FOOTER
    35  }
    36 Index: mailgraph.pl
    37 --- mailgraph.pl.orig	2007-08-29 11:06:01 +0200
    38 +++ mailgraph.pl	2007-08-29 19:03:59 +0200
    39 @@ -211,6 +211,8 @@
    40              \s
    41              ([-\w\.\@:]+)        # host  -- 6
    42              \s+
    43 +            <[^>]+>              # OSSP fsl log level
    44 +            \s+
    45              (?:\[LOG_[A-Z]+\]\s+)?  # FreeBSD
    46              (.*)                 # text  -- 7
    47              $/x or do

mercurial