You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit:
- Deprecates get_selinux_default_context which calls the deprecated
Selinux.matchpathcon and replaces it with
get_selinux_default_context_with_handle which calls Selinux.selabel_lookup
instead. The new method requires a handle since selabel_lookup requires a
handle
- Adds a getter method for the class variable, selinux_handle, in the POSIX
file provider which is used to get the handle for
get_selinux_default_context_with_handle. With this getter method,
selinux_handle will only initialized once with Selinux.selabel_lookup.
- Updates post_resource_eval in the POSIX file provider to call
Selinux.selabel_close instead of the deprecated Selinux.matchpathcon_fini
when terminating selinux_handle. After, selinux_handle is set to nil.
Co-authored-by: William Bradford Clark <[email protected]>
0 commit comments