Home
last modified time | relevance | path

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

/external/openssh/
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()
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()
Dsandbox-capsicum.c70 struct rlimit rl_zero; in ssh_sandbox_child() local
73 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()
79 if (setrlimit(RLIMIT_NOFILE, &rl_zero) == -1) in ssh_sandbox_child()
83 if (setrlimit(RLIMIT_NPROC, &rl_zero) == -1) in ssh_sandbox_child()
Dsandbox-seccomp-filter.c382 struct rlimit rl_zero; in ssh_sandbox_child() local
386 rl_zero.rlim_cur = rl_zero.rlim_max = 0; in ssh_sandbox_child()
387 if (setrlimit(RLIMIT_FSIZE, &rl_zero) == -1) in ssh_sandbox_child()
390 if (setrlimit(RLIMIT_NOFILE, &rl_zero) == -1) in ssh_sandbox_child()
393 if (setrlimit(RLIMIT_NPROC, &rl_zero) == -1) in ssh_sandbox_child()
Dconfigure.ac3474 struct rlimit rl_zero;
3482 rl_zero.rlim_cur = rl_zero.rlim_max = 0;
3483 setrlimit(RLIMIT_FSIZE, &rl_zero);
3484 setrlimit(RLIMIT_NOFILE, &rl_zero);
3509 struct rlimit rl_zero;
3512 rl_zero.rlim_cur = rl_zero.rlim_max = 0;
3513 r = setrlimit(RLIMIT_NOFILE, &rl_zero);
3531 struct rlimit rl_zero;
3533 rl_zero.rlim_cur = rl_zero.rlim_max = 0;
3534 exit(setrlimit(RLIMIT_FSIZE, &rl_zero) != 0);