35 lines
1.4 KiB
Diff
35 lines
1.4 KiB
Diff
|
From a2304cef5780d72ef0eb927b799337982c599ca9 Mon Sep 17 00:00:00 2001
|
||
|
From: =?UTF-8?q?Christian=20G=C3=B6ttsche?= <cgzones@googlemail.com>
|
||
|
Date: Mon, 10 May 2021 12:56:46 +0200
|
||
|
Subject: [PATCH] libselinux: avc_destroy(3) closes status page
|
||
|
MIME-Version: 1.0
|
||
|
Content-Type: text/plain; charset=UTF-8
|
||
|
Content-Transfer-Encoding: 8bit
|
||
|
|
||
|
Mention in the manpage of avc_destroy(3) that it does close the SELinux
|
||
|
status page, which might have been opened manually by the client
|
||
|
application.
|
||
|
|
||
|
Signed-off-by: Christian Göttsche <cgzones@googlemail.com>
|
||
|
---
|
||
|
libselinux/man/man3/avc_open.3 | 3 +++
|
||
|
1 file changed, 3 insertions(+)
|
||
|
|
||
|
diff --git a/libselinux/man/man3/avc_open.3 b/libselinux/man/man3/avc_open.3
|
||
|
index 3090dd5077c7..55683bb6594b 100644
|
||
|
--- a/libselinux/man/man3/avc_open.3
|
||
|
+++ b/libselinux/man/man3/avc_open.3
|
||
|
@@ -26,6 +26,9 @@ initializes the userspace AVC and must be called before any other AVC operation
|
||
|
destroys the userspace AVC, freeing all internal memory structures. After this call has been made,
|
||
|
.BR avc_open ()
|
||
|
must be called again before any AVC operations can be performed.
|
||
|
+.BR avc_destroy ()
|
||
|
+also closes the SELinux status page, which might have been opened manually by
|
||
|
+.BR selinux_status_open (3).
|
||
|
|
||
|
.BR avc_reset ()
|
||
|
flushes the userspace AVC, causing it to forget any cached access decisions. The userspace AVC normally calls this function automatically when needed, see
|
||
|
--
|
||
|
2.32.0
|
||
|
|