update 0001-fix-libselinux-deprecated.patch.

This commit is contained in:
sigui 2020-09-15 20:32:33 +08:00 committed by Gitee
parent a0b83b72c1
commit 9087f05a12

View File

@ -41,7 +41,7 @@ index ac5028e..c09a2d0 100644
} }
- if (avc_init("libreswan", NULL, NULL, NULL, NULL) == 0) - if (avc_init("libreswan", NULL, NULL, NULL, NULL) == 0)
+ int within_range(char *sl, char *range) + if (avc_open(NULL, 0) == 0)
selinux_ready = 1; selinux_ready = 1;
else else
DBG_log("selinux: could not initialize avc."); DBG_log("selinux: could not initialize avc.");