repo: Add an API to init OstreeSePolicy from commit directly

This is part of `OstreeCommitModifier`, but I'm not using
that in some of the ostree-ext Rust code.

It just makes more sense as a direct policy API, where it should
have been in the first place.  There's already support for
setting a policy object on a commit modifier, so that's all the
old API needs to do now.
This commit is contained in:
Colin Walters committed 2021-09-30 15:54:48 -04:00
1 parent 4b61768e3d
commit 1b9e3a9375
6 files changed
+72 -34

No files matched your search

+5
View File
@@ -22,6 +22,11 @@
- uncomment the include in Makefile-libostree.am
*/
LIBOSTREE_2021.5 {
global:
ostree_sepolicy_new_from_commit;
} LIBOSTREE_2021.4;
/* Stub section for the stable release *after* this development one; don't
* edit this other than to update the year. This is just a copy/paste
* source. Replace $LASTSTABLE with the last stable version, and $NEWVERSION