From: Joshua Brindle <method@manicmethod.com>
To: Daniel J Walsh <dwalsh@redhat.com>
Cc: SE Linux <selinux@tycho.nsa.gov>
Subject: Re: Now that F11 has started, I am putting in the compression support.
Date: Mon, 12 Jan 2009 12:32:55 -0500 [thread overview]
Message-ID: <496B7EC7.7040408@manicmethod.com> (raw)
In-Reply-To: <496B63B3.6030905@redhat.com>
Daniel J Walsh wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Joshua Brindle wrote:
>> Daniel J Walsh wrote:
>>> -----BEGIN PGP SIGNED MESSAGE-----
>>> Hash: SHA1
>>>
>>> libsemanage patch to add compression.
>>>
>>> Uses bzip compression, all pp files in active/previous stored in
>>> compressed state. Added new interfaces to be user by policycoreutils to
>>> specify file rather then memory map.
>>>
>>> Also uses link instead of copy whenever possible to save disk space.
>>> Seeing about a 10 fold savings on policy footprint.
>> resend
>>
Ok, I'm getting some errors with the new patch. I did semodule -l on my
F10 system:
[method@riddler selinux]$ sudo semodule -l
libsemanage.semanage_direct_list: Out of memory!
semodule: Failed on list!
gdb'ing it I see:
1320 if ((size = bunzip(fp, &data)) != 0) {
(gdb)
1321 fclose(fp);
(gdb)
1322 fp = fmemopen(data, size, "rb");
(gdb)
1323 if (!fp) {
(gdb) print fp
$1 = (FILE *) 0x0
(gdb) print errno
$2 = 12
(gdb) call perror()
Cannot allocate memory
$4 = 0
(gdb) print size
$5 = 4294967295
(gdb) print module_filenames[i]
$6 = 0x8b34b18 "/etc/selinux/targeted/modules/active/modules/ada.pp"
[method@riddler selinux]$ sudo file
/etc/selinux/targeted/modules/active/modules/ada.pp
/etc/selinux/targeted/modules/active/modules/ada.pp: data
So this is not a compressed module
--
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:[~2009-01-12 17:33 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-11-07 14:18 Now that F11 has started, I am putting in the compression support Daniel J Walsh
2009-01-09 18:56 ` Joshua Brindle
2009-01-09 19:23 ` Joshua Brindle
2009-01-12 15:37 ` Daniel J Walsh
2009-01-12 17:32 ` Joshua Brindle [this message]
2009-01-12 19:01 ` Daniel J Walsh
2009-01-12 20:56 ` Joshua Brindle
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=496B7EC7.7040408@manicmethod.com \
--to=method@manicmethod.com \
--cc=dwalsh@redhat.com \
--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.