Re: Now that F11 has started, I am putting in the compression support.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxx with
the words "unsubscribe selinux" without quotes as the message.

[Index of Archives]     [Selinux Refpolicy]     [Linux SGX]     [Fedora Users]     [Fedora Desktop]     [Yosemite Photos]     [Yosemite Camping]     [Yosemite Campsites]     [KDE Users]     [Gnome Users]

  Powered by Linux