Skip to contentSkip to conversation

compressed policy DB

DISCUSSION Russell Coker 2 participants 2 messages Jun 2, 2002 – Jun 24, 2002 SELinux security module

lore
Share & tools
lore
#0 lore raw

12 hours ago I gave a talk to the Nederlandse Linux Gebruikers Groep on SE Linux. During the talk one of the audience members asked why the policy db can't be gzip compressed.

This seems to be a good idea, the kernel already contains code for the gzip algorithm which is used for compressed initrd images, cramfs, and ppp. Using the same code for policy db's would not add any significant code to the kernel, and would save significant amounts of disk space on an initrd.

What do you think?

Signature · 3 lines
I do not get viruses because I do not use MS software.
If you use Outlook then please do not put my email address in your
address-book so that WHEN you get a virus it won't use my address in the
Quoted 1 line

From field.

--
You have received this message because you are subscribed to the selinux list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.

#1 lore raw
Quoted 10 lines · Russell Coker

12 hours ago I gave a talk to the Nederlandse Linux Gebruikers Groep on SE Linux. During the talk one of the audience members asked why the policy db can't be gzip compressed.

This seems to be a good idea, the kernel already contains code for the gzip algorithm which is used for compressed initrd images, cramfs, and ppp. Using the same code for policy db's would not add any significant code to the kernel, and would save significant amounts of disk space on an initrd.

What do you think?

Sounds reasonable, but I'm not sure about the actual code re-use. It appears that the boot code and the ramdisk code each use an #include'd copy of lib/inflate.c, the ppp code #include's drivers/net/zlib.c, and cramfs relies on fs/inflate_fs.

--
Stephen D. Smalley, NAI Labs
[email protected]

--
You have received this message because you are subscribed to the selinux list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.