qssb_append_group_syscall_policy(): Make QSSB_SYSCGROUP_NONE an invalid group

This commit is contained in:
Albert S. 2021-11-14 21:46:38 +01:00
orang tua 1a2443db18
melakukan d847d0f996

6
qssb.h
Melihat File

@ -840,6 +840,12 @@ int qssb_append_group_syscall_policy(struct qssb_policy *qssb_policy, unsigned i
{
long syscalls[400] = { 0 };
size_t n = 0;
if(groupmask & QSSB_SYSCGROUP_NONE)
{
QSSB_LOG_ERROR("Error: 'None' is an illegal group name\n");
return -EINVAL;
}
get_group_syscalls(groupmask, syscalls, &n);
if(n == 0)
{