Home
last modified time | relevance | path

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

/external/openssh/
Dsandbox-rlimit.c63 struct rlimit rl_zero; in ssh_sandbox_child() local
65 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()
70 if (setrlimit(RLIMIT_NOFILE, &rl_zero) == -1) in ssh_sandbox_child()
74 if (setrlimit(RLIMIT_NPROC, &rl_zero) == -1) in ssh_sandbox_child()
Dsandbox-darwin.c62 struct rlimit rl_zero; in ssh_sandbox_child() local
73 rl_zero.rlim_cur = rl_zero.rlim_max = 0; in ssh_sandbox_child()
74 if (setrlimit(RLIMIT_FSIZE, &rl_zero) == -1) in ssh_sandbox_child()
77 if (setrlimit(RLIMIT_NOFILE, &rl_zero) == -1) in ssh_sandbox_child()
80 if (setrlimit(RLIMIT_NPROC, &rl_zero) == -1) in ssh_sandbox_child()