From 7a2cf18c197041887d8db368ab5aa2dd630326df Mon Sep 17 00:00:00 2001 From: Albert S Date: Sat, 9 Nov 2019 15:47:08 +0100 Subject: [PATCH] check drop_caps() return value ; silence compiler warning --- qssb.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/qssb.h b/qssb.h index 04641dd..01e9d13 100644 --- a/qssb.h +++ b/qssb.h @@ -156,7 +156,7 @@ static int mount_to_chroot(const char *chroot_target_path, char **paths, unsigne /* TODO: can this function do actually anything useful?*/ static int qssb_end_policy(struct qssb_policy *ctxt) { - + return 0; } /* @@ -357,7 +357,11 @@ int qssb_enable_policy(struct qssb_policy *policy) if(policy->drop_caps) { - drop_caps(); + if(drop_caps() < 0) + { + QSSB_LOG_ERROR("failed to drop capabilities\n"); + return -1; + } } if(policy->not_dumpable)