[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[ossec-list] Re: Install OSSEC to /: it's possible?
- To: ossec-list@xxxxxxxxxxxxxxxx
- Subject: [ossec-list] Re: Install OSSEC to /: it's possible?
- From: "Daniel Cid" <daniel.cid@xxxxxxxxx>
- Date: Sun, 9 Sep 2007 22:03:56 -0300
- Authentication-results: mx.google.com; spf=pass (google.com: domain of daniel.cid@xxxxxxxxx designates 64.233.166.176 as permitted sender) smtp.mail=daniel.cid@xxxxxxxxx; dkim=pass (test mode) header.i=@xxxxxxxxx
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=GB5kaije2GmP0lwy6fBc4jqhaiw6imyGxMkKOJ9ffBc=; b=FXomj3obdx0bNQM1V4TePEpHwFegweGKRqa3SbxLtGdFPGcUzJp3b6IjLvVrSb+v7SLwG5WP5VsgebfbiyfCEdWwVvoaK7L1YZpT9lIXVvOUUUKS/HtuCgI4M+fNs+z4x42bnjecjRJ8B7fd+m4Ii56PEG3E6BNedyn81x62hFc=
Hi Slava,
We do not allow the installation to be at "/", because we set the
permissions very tight and
it would probably break your system (just imagine /bin not being
accessible)... In addition
to that, ossec runs on chroot and it makes no sense to chroot to "/".
*Feel free to re-write the installation scripts, but just make sure
they work on all the operating systems we currently support (Linux,
*BSD, Solaris, AIX, etc) and have at
least all the current functionality (+ being easy to use :)).
Thanks,
--
Daniel B. Cid
dcid ( at ) ossec.net
On 9/6/07, Slava Semushin <php-coder@xxxxxxxxxxxx> wrote:
>
> Hello!
>
> In install.sh script exist following code:
> Code for verify installation dir not allow to me specify root (/) as
> installation directory:
>
> [c0der@rock ~]$ echo "/" |grep -E "^/[a-zA-Z0-9/-]{3,128}$">/dev/null
> 2>&1; echo rc=$?
> rc=1
>
> So I suggest change this behavior:
>
> - echo $ANSWER | grep -E "^/[a-zA-Z0-9/-]{3,128}$" >/dev/null 2>&1
> +printf '%s' "$ANSWER" | grep -E "^/[[:alnum:]/-]{0,128}$" >/dev/null 2>&1
>
> What's think developers about this change? Should I post the bug for this?
>
> Thanks in advance.
>
> P.S. I think It's impossible. All scripts expects /var/ossec =( But I
> want have FHS-compliant system.
>
> For example this code can broke system (build in chroot environment
> under unprivileged user saves my system):
>
> 120 # Default for all directories
> 121 chmod -R 550 ${DIR}
> 122 chown -R root:${GROUP} ${DIR}
>
> All works right when DIR equal to /var/ossec, but what happens when
> DIR=/ ?! :))))
>
>
> P.S. BTW, ideally all installation scripts should be completely rewritten IMHO.
>
> --
> + Slava Semushin | slava.semushin @ gmail.com
> + ALT Linux Team | php-coder @ altlinux.ru
>
OSSEC home |
Main Index |
Thread Index
OSSEC project: www.ossec.net.
Mailling list information: http://www.ossec.net/en/mailing_lists.html.