mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-10-27 20:58:22 +00:00
signal: do auth check
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user