From: Colin Walters <walters@verbum.org>
To: Daniel J Walsh <dwalsh@redhat.com>
Cc: russell@coker.com.au, Eric Paris <eparis@redhat.com>,
selinux@tycho.nsa.gov, lennart@poettering.net, sds@tycho.nsa.gov
Subject: Re: A filename to label translation daemon
Date: Thu, 09 Aug 2012 13:51:09 -0400 [thread overview]
Message-ID: <1344534669.8427.11.camel@lenny> (raw)
In-Reply-To: <5023EE1C.5060205@redhat.com>
On Thu, 2012-08-09 at 13:06 -0400, Daniel J Walsh wrote:
> I believe we just add support for this service and have the labeling fall back
> to the default if the labeling socket does not exists, and then distributions
> can decide whether or not they want to use it.
There are other possible intermediate steps though - for example,
caching the precompiled regular expressions in a file accessible via
mmap().
Basically:
* Your mmap file is in some data format - you can make up your own, but
I like using http://developer.gnome.org/glib/stable/glib-GVariant.html
* Check the timestamp on the regexp text file versus the cached copy, if
newer, use the text file
* Otherwise, mmap the cached blob, loop through each regexp, passing
a pointer to the mmap cache file for regexec()
The mmap cache file would probably need to be tied to a specific version
of glibc though; you wouldn't want to upgrade and use old compiled
regexps that the new glibc doesn't understand.
--
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:[~2012-08-09 17:51 UTC|newest]
Thread overview: 26+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-08-08 19:31 A filename to label translation daemon Eric Paris
2012-08-08 20:05 ` Stephen Smalley
2012-08-08 20:52 ` Daniel J Walsh
2012-08-08 20:55 ` Eric Paris
2012-08-08 21:26 ` Colin Walters
2012-08-09 14:37 ` Russell Coker
2012-08-09 17:06 ` Daniel J Walsh
2012-08-09 17:51 ` Colin Walters [this message]
[not found] ` <20120810141101.GC32076@tango.0pointer.de>
[not found] ` <20120810141747.GA909@tango.0pointer.de>
2012-08-13 17:36 ` Daniel J Walsh
2012-08-13 17:55 ` Colin Walters
2012-08-13 18:06 ` Daniel J Walsh
2012-08-14 11:18 ` Russell Coker
2012-08-14 12:38 ` Eric Paris
2012-08-14 14:01 ` Eric Paris
2012-08-14 16:48 ` Stephen Smalley
2012-08-14 17:21 ` Eric Paris
2012-08-14 22:34 ` Russell Coker
2012-08-15 5:56 ` Russell Coker
2012-08-15 13:22 ` Eric Paris
2012-08-16 23:51 ` Eric Paris
2012-08-10 2:28 ` Russell Coker
2012-08-10 12:39 ` Daniel J Walsh
2012-08-10 13:35 ` Russell Coker
2012-08-12 11:02 ` Daniel J Walsh
[not found] ` <20120810140503.GB32076@tango.0pointer.de>
2012-08-12 11:03 ` Daniel J Walsh
[not found] ` <20120813151821.GB4861@redhat.com>
2012-08-13 16:37 ` Daniel J Walsh
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=1344534669.8427.11.camel@lenny \
--to=walters@verbum.org \
--cc=dwalsh@redhat.com \
--cc=eparis@redhat.com \
--cc=lennart@poettering.net \
--cc=russell@coker.com.au \
--cc=sds@tycho.nsa.gov \
--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.