Projects
Mega:24.03:SP1:Everything
libselinux
_service:tar_scm:do-malloc-trim-after-load-poli...
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File _service:tar_scm:do-malloc-trim-after-load-policy.patch of Package libselinux
From 3d5049f849226d54070651fdf96019d263c38363 Mon Sep 17 00:00:00 2001 From: luhuaxin <1539327763@qq.com> Date: Wed, 2 Jun 2021 16:24:47 +0800 Subject: [PATCH] do malloc trim after load policy --- src/load_policy.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/load_policy.c b/src/load_policy.c index 2aea826..ace898c 100644 --- a/src/load_policy.c +++ b/src/load_policy.c @@ -18,6 +18,7 @@ #include <dlfcn.h> #include "policy.h" #include <limits.h> +#include <malloc.h> #ifndef MNT_DETACH #define MNT_DETACH 2 @@ -365,7 +366,9 @@ int selinux_init_load_policy(int *enforce) } /* Load the policy. */ - return selinux_mkload_policy(0); + rc = selinux_mkload_policy(0); + malloc_trim(0); + return rc; noload: /* -- 1.8.3.1
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.
浙ICP备2022010568号-2