1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37
|
/*
* SYSCALL_DEFINE4(rt_sigaction, int, sig,
const struct sigaction __user *, act,
struct sigaction __user *, oact,
size_t, sigsetsize)
*/
#include <signal.h>
#include <stdlib.h>
#include "sanitise.h"
#include "random.h"
#include "shm.h"
void sanitise_rt_sigaction(int childno)
{
if (rand_bool())
shm->a2[childno] = 0;
if (rand_bool())
shm->a3[childno] = 0;
shm->a4[childno] = sizeof(sigset_t);
}
struct syscall syscall_rt_sigaction = {
.name = "rt_sigaction",
.num_args = 4,
.sanitise = sanitise_rt_sigaction,
.arg1name = "sig",
.arg1type = ARG_RANGE,
.low1range = 0,
.hi1range = _NSIG,
.arg2name = "act",
.arg2type = ARG_ADDRESS,
.arg3name = "oact",
.arg3type = ARG_ADDRESS,
.arg4name = "sigsetsize",
};
|