Searched refs:rl_zero (Results 1 – 5 of 5) sorted by relevance
/freebsd/crypto/openssh/ |
H A D | sandbox-rlimit.c | 62 struct rlimit rl_zero; in ssh_sandbox_child() local 64 rl_zero.rlim_cur = rl_zero.rlim_max = 0; in ssh_sandbox_child() 67 if (setrlimit(RLIMIT_FSIZE, &rl_zero) == -1) in ssh_sandbox_child() 72 if (setrlimit(RLIMIT_NOFILE, &rl_zero) == -1) in ssh_sandbox_child() 77 if (setrlimit(RLIMIT_NPROC, &rl_zero) == -1) in ssh_sandbox_child()
|
H A D | sandbox-darwin.c | 63 struct rlimit rl_zero; in ssh_sandbox_child() local 74 rl_zero.rlim_cur = rl_zero.rlim_max = 0; in ssh_sandbox_child() 75 if (setrlimit(RLIMIT_FSIZE, &rl_zero) == -1) in ssh_sandbox_child() 78 if (setrlimit(RLIMIT_NOFILE, &rl_zero) == -1) in ssh_sandbox_child() 81 if (setrlimit(RLIMIT_NPROC, &rl_zero) == -1) in ssh_sandbox_child()
|
H A D | sandbox-capsicum.c | 72 struct rlimit rl_zero; in ssh_sandbox_child() local 79 rl_zero.rlim_cur = rl_zero.rlim_max = 0; in ssh_sandbox_child() 81 if (setrlimit(RLIMIT_FSIZE, &rl_zero) == -1) in ssh_sandbox_child() 85 if (setrlimit(RLIMIT_NOFILE, &rl_zero) == -1) in ssh_sandbox_child() 89 if (setrlimit(RLIMIT_NPROC, &rl_zero) == -1) in ssh_sandbox_child()
|
H A D | sandbox-seccomp-filter.c | 492 struct rlimit rl_zero, rl_one = {.rlim_cur = 1, .rlim_max = 1}; in ssh_sandbox_child() local 496 rl_zero.rlim_cur = rl_zero.rlim_max = 0; in ssh_sandbox_child() 497 if (setrlimit(RLIMIT_FSIZE, &rl_zero) == -1) in ssh_sandbox_child() 507 if (setrlimit(RLIMIT_NPROC, &rl_zero) == -1) in ssh_sandbox_child()
|
H A D | configure.ac | 3683 struct rlimit rl_zero; 3694 rl_zero.rlim_cur = rl_zero.rlim_max = 0; 3695 setrlimit(RLIMIT_FSIZE, &rl_zero); 3696 setrlimit(RLIMIT_NOFILE, &rl_zero); 3730 struct rlimit rl_zero; 3733 rl_zero.rlim_cur = rl_zero.rlim_max = 0; 3734 r = setrlimit(RLIMIT_NOFILE, &rl_zero); 3752 struct rlimit rl_zero; 3754 rl_zero.rlim_cur = rl_zero.rlim_max = 0; 3755 exit(setrlimit(RLIMIT_FSIZE, &rl_zero) != 0);
|