Skip to content

policy package implementation with xar

[email protected] selinux 3 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest3 patches 0 repliesNew
  2. v23 patches 0 repliesSuperseded
  3. v13 patches 14 repliesSuperseded

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3policy package classlibpolicyrep/include/policyrep/policy_package.hpp+72 -00 replies
2/3policy package implementationlibpolicyrep/src/policy_package.cpp+463 -00 replies
3/3semodule_package implementation in cpp for libpolicyreppolicycoreutils/semodule_package/semodule_package.c policycoreutils/semodule_package/semodule_package.cpp+197 -2570 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v3 yet.

Read the v3 thread

Cover letter [POLICYREP][patchv3 0/3] policy package implementation with xar

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.

This one is updated to use xar file attributes to identify the kind of file, use semodule_package to create policy packages, to break up the classes for creating the package from a file (PolicyPackageArchive) and reading/writing them from a package class (PolicyPackage). It also has lots of cleanups, including throwing std errors.

Note: The tests have been pulled out of this patchset as we are currently reimplementing the tests using a testing infrastructure like boost or cppunit.

There is additional functionality in this set, for writing policy modules to the xar packages. I still need to implement a Parser constructor that reads from a char* for the reading functionality, I'll send this out later.

This set has fixed formatting, note to self: do not run lident on c++ code. Instead I used astyle with the following ~/.astylerc:

brackets=attach
indent=tab=8
break-blocks
preserve-date
pad=oper
unpad=paren
one-line=keep-statements
one-line=keep-blocks

Signature · 4 lines
--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to [email protected] with
the words "unsubscribe selinux" without quotes as the message.