diff options
author | Colin Walters <walters@verbum.org> | 2017-03-20 20:51:22 -0400 |
---|---|---|
committer | Atomic Bot <atomic-devel@projectatomic.io> | 2017-03-22 16:24:06 +0000 |
commit | 7b2370dc869ce5ba76769853ef7fd0b081b15010 (patch) | |
tree | 0cfa81ee2fdce314e3edcd5e5facf5247297e21a /cfg.mk | |
parent | d7f4a326b98cb1bfe3fb939348620013e1ec5a9b (diff) | |
download | ostree-7b2370dc869ce5ba76769853ef7fd0b081b15010.tar.gz |
sepolicy: Add better private API for setfscreatecon
Use `g_auto()` more sanely with a struct implmenting the "is initialized"
pattern. This is way less ugly for callers, and fixes bugs like
us calling `setfscreatecon()` even if an error occurred beforehand.
Also fold in the logic for "NULL or not loaded" sepolicy into the setup rather
than requiring callers to inline it.
Prep for more users of this function.
Closes: #746
Approved by: jlebon
Diffstat (limited to 'cfg.mk')
0 files changed, 0 insertions, 0 deletions