signal: do auth check

This commit is contained in:
Matheus
2024-09-05 16:24:18 -03:00
parent ee254a81e9
commit c2e50547cc
5 changed files with 39 additions and 19 deletions
-5
View File
@@ -249,7 +249,6 @@ static int credlistener(cred_t *cred, int actions, void *arg0, void *arg1, void
static int process(cred_t *cred, int actions, void *arg0, void *arg1, void *arg2) {
proc_t *proc = arg0;
int *signal = arg1;
int weight = 0;
if (actions & AUTH_ACTIONS_PROCESS_SIGNAL) {
@@ -260,10 +259,6 @@ static int process(cred_t *cred, int actions, void *arg0, void *arg1, void *arg2
cred->euid == proc->cred.uid ||
cred->euid == proc->cred.suid)
weight += 1;
else if (*signal == SIGCONT) {
// TODO SIGCONT is supposed to work on the same process group; we are being a bit more permissive here for now
weight += 1;
}
DONE_CHECK(actions);
}