gio: ‘security_context_t’ is deprecated

From:
9eb9c93275

"we found that the const security_context_t declarations in libselinux
are incorrect; const char * was intended, but const security_context_t
translates to char * const and triggers warnings on passing const char *
from the caller. Easiest fix is to replace them all with const char *."

And later marked deprecated in commit:
7a124ca275

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
This commit is contained in:
Marc-André Lureau 2020-12-01 11:38:55 +04:00
parent 159ed036d4
commit 20e23c701c

View File

@ -2715,7 +2715,7 @@ set_selinux_context (char *filename,
}
if (is_selinux_enabled ()) {
security_context_t val_s;
char *val_s;
val_s = g_strdup (val);