Home
last modified time | relevance | path

Searched refs:rl_zero (Results 1 – 5 of 5) sorted by relevance

/freebsd/crypto/openssh/
H A Dsandbox-rlimit.c62 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 Dsandbox-darwin.c63 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 Dsandbox-capsicum.c72 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 Dsandbox-seccomp-filter.c492 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 Dconfigure.ac3683 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);