32 lines
1.1 KiB
Diff
32 lines
1.1 KiB
Diff
From a192cc0244da275615edd18118afcc249dd4e53d Mon Sep 17 00:00:00 2001
|
|
From: Petr Lautrbach <plautrba@redhat.com>
|
|
Date: Tue, 7 Apr 2020 11:56:52 +0200
|
|
Subject: [PATCH] Remove deprecation warning about flask.h usage
|
|
|
|
flask.h has been deprecated for a long time and will be dropped completely from
|
|
the next SELinux userspace release.
|
|
---
|
|
diff -up xinetd-2.3.15/xinetd/child.c.remove-flaskh xinetd-2.3.15/xinetd/child.c
|
|
--- xinetd-2.3.15/xinetd/child.c.remove-flaskh 2020-04-07 12:28:52.538123162 +0200
|
|
+++ xinetd-2.3.15/xinetd/child.c 2020-04-07 12:28:58.980980069 +0200
|
|
@@ -33,7 +33,6 @@
|
|
#endif
|
|
#ifdef LABELED_NET
|
|
#include <selinux/selinux.h>
|
|
-#include <selinux/flask.h>
|
|
#include <selinux/context.h>
|
|
#endif
|
|
|
|
@@ -551,7 +550,7 @@ static int set_context_from_socket( cons
|
|
if (!(new_context = context_str(bcon)))
|
|
goto fail;
|
|
|
|
- if (security_compute_create(new_context, exec_context, SECCLASS_PROCESS,
|
|
+ if (security_compute_create(new_context, exec_context, string_to_security_class("process"),
|
|
&new_exec_context) < 0)
|
|
goto fail;
|
|
|
|
--
|
|
1.8.3.1
|
|
|