From: "Török Edwin" <edwintorok@gmail.com>
To: russell@coker.com.au
Cc: Eric Paris <eparis@parisplace.org>, "SE-Linux" <selinux@tycho.nsa.gov>
Subject: Re: clamav RWX
Date: Mon, 12 Jul 2010 15:45:28 +0300 [thread overview]
Message-ID: <20100712154528.47864541@debian> (raw)
In-Reply-To: <201007122208.13078.russell@coker.com.au>
On Mon, 12 Jul 2010 22:08:12 +1000
Russell Coker <russell@coker.com.au> wrote:
> On Mon, 12 Jul 2010, Eric Paris <eparis@parisplace.org> wrote:
> > > I have some plans to make the JIT work without RWX, since ClamAV
> > > has 2 phases:
> > > - load DB, JIT compile bytecode (should use only RW- mapping, but
> > > currently needs RWX)
> > > - execute (JIT compiled) bytecode (should change mapping to be
> > > R-X)
> >
> > Just so you know that is going to require the same permissions.
> > (Hopefully) The only way to get around the SELinux permissions is to
> > have 2 separate mappings. Basically in really really rough
> > sudo-code,
>
> According to the comments the code will fall-back to interpreting the
> data if WRITE/EXEC is denied.
>
> Now given that freshclam doesn't do any serious work with the data,
> is interpreting it going to cause any problem that we will care
> about? If we are talking about 1 hour of CPU time vs 2 hours for jit
> vs interpreted for run- time stuff then it makes a difference, but if
> we are talking about 1 second vs 2 seconds for freshclam then maybe
> there's not much point.
>
Well the purpose of loading the database with freshclam is to avoid
causing problems to clamd. So it is important that they are either both
JIT, or both non-JIT.
If for example freshclam would crash when running the JITed code, then
it would prevent loading a faulty DB into clamd. clamd would keep
running with the last DB that worked.
If freshclam falls back to nonJIT mode, and clamd doesn't, then it
could accept the database and clamd may crash.
Best regards,
--Edwin
--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to majordomo@tycho.nsa.gov with
the words "unsubscribe selinux" without quotes as the message.
next prev parent reply other threads:[~2010-07-12 12:45 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-07-12 9:22 clamav RWX Russell Coker
2010-07-12 11:01 ` Török Edwin
2010-07-12 11:48 ` Eric Paris
2010-07-12 12:08 ` Russell Coker
2010-07-12 12:45 ` Török Edwin [this message]
2010-07-12 14:32 ` Martin Orr
2010-07-12 14:35 ` Török Edwin
2010-07-29 11:42 ` Martin Orr
2010-07-12 12:55 ` Török Edwin
2010-07-12 16:31 ` Stephen Smalley
2010-07-12 18:08 ` Török Edwin
2010-07-12 20:26 ` Stephen Smalley
2010-07-13 6:29 ` Török Edwin
2010-07-13 6:41 ` Russell Coker
2010-09-23 20:12 ` Török Edwin
2010-07-13 15:26 ` Stephen Smalley
2010-07-12 21:32 ` Russell Coker
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20100712154528.47864541@debian \
--to=edwintorok@gmail.com \
--cc=eparis@parisplace.org \
--cc=russell@coker.com.au \
--cc=selinux@tycho.nsa.gov \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.