- add patch: setools-3.3.7-libselinux-2.3.patch fix build with libselinux-2.3 OBS-URL: https://build.opensuse.org/request/show/235465 OBS-URL: https://build.opensuse.org/package/show/security:SELinux/setools?expand=0&rev=48
21 lines
641 B
Diff
21 lines
641 B
Diff
--- a/secmds/replcon.cc
|
|
+++ b/secmds/replcon.cc
|
|
@@ -60,7 +60,7 @@
|
|
{NULL, 0, NULL, 0}
|
|
};
|
|
|
|
-extern int lsetfilecon_raw(const char *, security_context_t) __attribute__ ((weak));
|
|
+extern int lsetfilecon_raw(const char *, const char *) __attribute__ ((weak));
|
|
|
|
/**
|
|
* As that setools must work with older libselinux versions that may
|
|
@@ -68,7 +68,7 @@
|
|
* does indeed have the new functions then use them; otherwise
|
|
* fallback to the originals.
|
|
*/
|
|
-static int replcon_lsetfilecon(const char *path, security_context_t context)
|
|
+static int replcon_lsetfilecon(const char *path, const char *context)
|
|
{
|
|
if (lsetfilecon_raw != NULL)
|
|
{
|