qssb_append_group_syscall_policy(): Make QSSB_SYSCGROUP_NONE an invalid group

Cette révision appartient à :
Albert S. 2021-11-14 21:46:38 +01:00
Parent 1a2443db18
révision d847d0f996

6
qssb.h
Voir le fichier

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