From 064bd1e65617ace973e97c0234319f87f7622a2f Mon Sep 17 00:00:00 2001 From: Flash-LHR <2479082762@qq.com> Date: Fri, 21 Apr 2023 19:29:22 +0800 Subject: [PATCH] fix: exec_object_restorecon --- contrib/sepgsql/label.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/sepgsql/label.cpp b/contrib/sepgsql/label.cpp index 8e04c94ed..32cb757fa 100644 --- a/contrib/sepgsql/label.cpp +++ b/contrib/sepgsql/label.cpp @@ -683,7 +683,7 @@ static void exec_object_restorecon(struct selabel_handle* sehnd, Oid catalogId) objtype = SELABEL_DB_TABLE; else if (RELKIND_IS_SEQUENCE(relForm->relkind)) objtype = SELABEL_DB_SEQUENCE; - else if (relForm->relkind == RELKIND_VIEW || (relForm->relkind == RELKIND_CONTQUERY) + else if (relForm->relkind == RELKIND_VIEW || (relForm->relkind == RELKIND_CONTQUERY)) objtype = SELABEL_DB_VIEW; else continue; /* no need to assign security label */