check drop_caps() return value ; silence compiler warning

This commit is contained in:
Albert S. 2019-11-09 15:47:08 +01:00
parent 200cd7878c
commit 7a2cf18c19
1 changed files with 6 additions and 2 deletions

8
qssb.h
View File

@ -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)