From b4b732e6d8000ef988712d012fc2ddc7342d47ae Mon Sep 17 00:00:00 2001 From: steven_q Date: Mon, 9 May 2022 10:19:37 +0800 Subject: [PATCH] close param read check Change-Id: I988a57de8eaf0cd18f2f442ebb59465cf039653e --- interfaces/policycoreutils/src/paraperm_checker.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/interfaces/policycoreutils/src/paraperm_checker.cpp b/interfaces/policycoreutils/src/paraperm_checker.cpp index 51cfd2c33..c28313bd1 100644 --- a/interfaces/policycoreutils/src/paraperm_checker.cpp +++ b/interfaces/policycoreutils/src/paraperm_checker.cpp @@ -55,10 +55,10 @@ static int SelinuxAuditCallback(void *data, security_class_t cls, char *buf, siz selinux_log(SELINUX_ERROR, "Selinux audit msg invalid argument\n"); return -1; } - if (snprintf_s(buf, len, len - 1, "parameter=%s pid=%d uid=%d gid=%d", msg->name, msg->ucred->pid, msg->ucred->uid, - msg->ucred->gid) <= 0) { - return -1; - } + // if (snprintf_s(buf, len, len - 1, "parameter=%s pid=%d uid=%d gid=%d", msg->name, msg->ucred->pid, msg->ucred->uid, + // msg->ucred->gid) <= 0) { + // return -1; + // } return 0; } -- Gitee