selinux: use type safe function pointer assignment

This commit is contained in:
Christian Göttsche 2023-03-06 16:50:47 +01:00 committed by Iker Pedrosa
parent 37bf59067f
commit f2c4949707
1 changed files with 1 additions and 1 deletions

View File

@ -188,7 +188,7 @@ int check_selinux_permit (const char *perm_name)
return 0;
}
selinux_set_callback (SELINUX_CB_LOG, (union selinux_callback) selinux_log_cb);
selinux_set_callback (SELINUX_CB_LOG, (union selinux_callback) { .func_log = selinux_log_cb });
if (getprevcon_raw (&user_context_raw) != 0) {
fprintf (shadow_logfd,