portsentry

Tomasz Wittner Tomasz.Wittner w xl.wp.pl
Śro, 1 Wrz 2004, 18:43:17 CEST


On Wednesday 01 of September 2004 17:58, Tomasz Wittner wrote:
> On Wednesday 01 of September 2004 16:17, Grzegorz Konopko wrote:
> > Prosze o brzebudowanie portsentry, nie współpracował z host.deny.
>
> hosts.deny != host.deny - to nie ma nic wspólnego z hosts.{allow,deny} z
> tcp_raperrów ;)
>
> $ ls -l /mnt/hda7/etc/tcpd/*
> -rw-r--r--  1 root  wheel  2,4K  9 Sie 05:43 /mnt/hda7/etc/tcpd/hosts.allow
> -rw-r--r--  1 root  wheel  435B 30 Gru  2003 /mnt/hda7/etc/tcpd/hosts.deny
>
> Źródła nie zawierają includowania nagłówka <tcpd.h> z libwrap-devel
>
> Przy czym hosts.deny powinno zniknąć (jak w fbsd) i zostać przeniesione
> do /etc/hosts.allow (jak w ... ;), ponieważ jest redundantne (czy jak to
> tam się pisało).
>
> daemon : adres : allow/deny w hosts.allow == daemon : adres w hosts.deny
>
> Czy do %{__make } nie wypadałoby dodać %_cc ?
A - sorry - grep mnie zmylił - portsentry_config.h:
[...]
/* The location of Wietse Venema's TCP Wrapper hosts.deny file */
#define WRAPPER_HOSTS_DENY "/etc/tcpd/hosts.deny"
[...]
Ale co z hosts.allow ?

Po za tym:
%build
%{__sed} -i -e 's@\/etc\/hosts.deny@\/etc\/tcpd\/hosts.deny@' 
portsentry_config.h

To powinno być w %prep a w ogóle to jest chyba brzydki hack w programie (jakby 
nie można było dodać kilku zmiennych do Makefila):
portsentry-1.1/README.install:

Install
=-=-=-=

Step ONE:

Pull the portsentry_config.h file into your editor and make sure the
following are to your liking:

CONFIG_FILE - The path to the PortSentry configuration file.
WRAPPER_HOSTS_DENY - The path and name of TCP wrapper hosts.deny file.
SYSLOG_FACILITY - The syslog facility for PortSentry to use.
SYSLOG_LEVEL - The syslog level to send messages.

Całość wygląda na crapowatą.
-- 
Tomasz Wittner




Więcej informacji o liście dyskusyjnej pld-devel-pl