diff options
author | Zdenek Kabelac <zkabelac@redhat.com> | 2021-04-10 21:55:19 +0200 |
---|---|---|
committer | Zdenek Kabelac <zkabelac@redhat.com> | 2021-04-12 09:54:16 +0200 |
commit | 75424dd6927ac38c97ca4acc78b7f4933cd7b139 (patch) | |
tree | ce3265703b9cef4d909c93acf081474c7d62df9e /libdm | |
parent | 57b5bc9c87ba090e198c9e5ec679ad81db88a093 (diff) | |
download | lvm2-75424dd6927ac38c97ca4acc78b7f4933cd7b139.tar.gz |
libdm: replace deprecated security_context_t
Use 'char *' instead of deprecated security_context_t.
In more details i.e.:
https://gitlab.gnome.org/GNOME/glib/-/merge_requests/1776
Diffstat (limited to 'libdm')
-rw-r--r-- | libdm/libdm-common.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libdm/libdm-common.c b/libdm/libdm-common.c index 1f3fe1642..708414676 100644 --- a/libdm/libdm-common.c +++ b/libdm/libdm-common.c @@ -929,7 +929,7 @@ int dm_task_add_target(struct dm_task *dmt, uint64_t start, uint64_t size, #ifdef HAVE_SELINUX static int _selabel_lookup(const char *path, mode_t mode, - security_context_t *scontext) + char **scontext) { #ifdef HAVE_SELINUX_LABEL_H if (!_selabel_handle && @@ -972,7 +972,7 @@ static int _is_selinux_enabled(void) int dm_prepare_selinux_context(const char *path, mode_t mode) { #ifdef HAVE_SELINUX - security_context_t scontext = NULL; + char *scontext = NULL; if (_is_selinux_enabled() <= 0) return 1; @@ -1000,7 +1000,7 @@ int dm_prepare_selinux_context(const char *path, mode_t mode) int dm_set_selinux_context(const char *path, mode_t mode) { #ifdef HAVE_SELINUX - security_context_t scontext = NULL; + char *scontext = NULL; if (_is_selinux_enabled() <= 0) return 1; |