Details
-
Improvement
-
Status: Closed
-
Normal
-
Resolution: Duplicate
-
None
-
None
-
None
-
-
Night's Watch
-
Needs Assessment
Description
Puppet::Util::SElinux uses the deprecated matchpathcon(3) exposed by the C bindings for SELinux.
This should be changed to instead open a handle with selabel_open, doing the lookup with selabel_lookup then closing the handle with selabel_close.
This has been available since mid 2015 when it was introduced in [1] just need to verify it's included in all new major versions of supported operating systems.
[1] https://github.com/SELinuxProject/selinux/commit/e7f970ffd1a8dbb26051405719a2288d34e856f6