-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
(PUP-7126) Replace matchpathcon with selabel_lookup
Since Selinux.matchpathcon is deprecated, selabel_lookup needs to be used instead. This commit replaces calls to matchpathcon with selabel_lookup by deprecating get_selinux_default_context and replacing it with get_selinux_default_context_with_handle. The new method requires a handle since it calls selabel_lookup instead of matchpathcon and selabel_lookup requires a handle. Co-authored-by: William Bradford Clark <wclark@redhat.com>
- Loading branch information
Showing
4 changed files
with
74 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters