All of lore.kernel.org
 help / color / mirror / Atom feed
* [POLICYREP] [RFC/PATCH 0/3] policy package implementation with xar
@ 2007-07-17 15:03 method
  2007-07-17 15:03 ` [POLICYREP] [RFC/PATCH 1/3] policy package class method
                   ` (2 more replies)
  0 siblings, 3 replies; 18+ messages in thread
From: method @ 2007-07-17 15:03 UTC (permalink / raw)
  To: selinux, kmacmillan

This uses xar <http://code.google.com/p/xar/> to implement policy packages. This brings in a fair number of dependancies, unfortunately, but provides a useful featureset in exchange. This includes transparent compression of files in the package, signature support and so on. 

Currently it uses the filename to determine the kind of file (eg., file_context file vs. policy module) which is non-ideal, I think it might be better to use xar attributes in the ToC to specify the file but that means we'd have to implement our own packaging functions and could not use the xar command line utility to create packages. Since we don't currently do anything special like that there is no package_write functionality (or set operators for the implimentation). 

I also have concerns about using the module name property as that should be abstract to this code, instead using a xar subdocument could allow us to define the 'name' of the policy as a policy package attribute instead of putting it in the module. This is completely different from how the current code works but I feel like the name should be associated with the policy package rather than the module.

Comments welcome. This is primarilly an RFC to see if this is how we want to handle policy packages, though it should be mergable in its current state if everyone agrees this is the ideal implementation.

FWIW I also looked for more 'lightweight' archival systems and found that no libraries exist for tar, ar or cpio. A quick search of yum only shows one archive library and it is zip format.
-- 

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

^ permalink raw reply	[flat|nested] 18+ messages in thread

end of thread, other threads:[~2007-07-18 12:35 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-07-17 15:03 [POLICYREP] [RFC/PATCH 0/3] policy package implementation with xar method
2007-07-17 15:03 ` [POLICYREP] [RFC/PATCH 1/3] policy package class method
2007-07-17 15:31   ` Karl MacMillan
2007-07-17 16:23     ` Joshua Brindle
2007-07-17 18:30       ` Karl MacMillan
2007-07-17 20:33         ` Joshua Brindle
2007-07-17 21:01           ` Karl MacMillan
2007-07-17 15:03 ` [POLICYREP] [RFC/PATCH 2/3] policy package implementation method
2007-07-17 15:38   ` Karl MacMillan
2007-07-17 16:40     ` Joshua Brindle
2007-07-17 18:35       ` Karl MacMillan
2007-07-17 20:48         ` Joshua Brindle
2007-07-17 20:48         ` Joshua Brindle
2007-07-17 20:56           ` Karl MacMillan
2007-07-17 21:01             ` Joshua Brindle
2007-07-17 21:11               ` Karl MacMillan
2007-07-18 12:32                 ` Christopher J. PeBenito
2007-07-17 15:03 ` [POLICYREP] [RFC/PATCH 3/3] policy package tests method

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.