Re: semodule patch to use new semanage interfaces

[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:
Allows semodule to read bzip compressed policy packages directly.

I'm finally looking at these (sorry it took so long)..

I thought one part of it was suppose to make hard links to files if you
install but after merging this patch and the compression support I try
semodule -i /usr/share/selinux/targeted/somepolicy.pp.bz2 (I'm on F10
and they are already bzip'd) and instead of making a hard link to the
bz2 it looks like it writes the uncompressed file to
/etc/selinux/targeted/modules/active/modules. Am I misunderstanding the
intention of these patches?

Originally this was the intention but it was wrong.  The problem is the
file context would start to get screwed up every where and we end up
with the /etc/selinux/targeted/modules/active/ directory looking like a
patchwork of labels.

So the patch makes a compressed copy whether or not the file is
originally compressed in the new location.

It does use the hard links for creating the snapshot directory though.


So... what is the purpose of the *_file functions if you don't copy the data anymore?

I see now that the files in /etc/selinux/.../modules/active are bzip files but with a .pp extension, confusing.


--
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