18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 */ 28c2ecf20Sopenharmony_ci#ifndef _ASM_GENERIC_RESOURCE_H 38c2ecf20Sopenharmony_ci#define _ASM_GENERIC_RESOURCE_H 48c2ecf20Sopenharmony_ci 58c2ecf20Sopenharmony_ci#include <uapi/asm-generic/resource.h> 68c2ecf20Sopenharmony_ci 78c2ecf20Sopenharmony_ci 88c2ecf20Sopenharmony_ci/* 98c2ecf20Sopenharmony_ci * boot-time rlimit defaults for the init task: 108c2ecf20Sopenharmony_ci */ 118c2ecf20Sopenharmony_ci#define INIT_RLIMITS \ 128c2ecf20Sopenharmony_ci{ \ 138c2ecf20Sopenharmony_ci [RLIMIT_CPU] = { RLIM_INFINITY, RLIM_INFINITY }, \ 148c2ecf20Sopenharmony_ci [RLIMIT_FSIZE] = { RLIM_INFINITY, RLIM_INFINITY }, \ 158c2ecf20Sopenharmony_ci [RLIMIT_DATA] = { RLIM_INFINITY, RLIM_INFINITY }, \ 168c2ecf20Sopenharmony_ci [RLIMIT_STACK] = { _STK_LIM, RLIM_INFINITY }, \ 178c2ecf20Sopenharmony_ci [RLIMIT_CORE] = { 0, RLIM_INFINITY }, \ 188c2ecf20Sopenharmony_ci [RLIMIT_RSS] = { RLIM_INFINITY, RLIM_INFINITY }, \ 198c2ecf20Sopenharmony_ci [RLIMIT_NPROC] = { 0, 0 }, \ 208c2ecf20Sopenharmony_ci [RLIMIT_NOFILE] = { INR_OPEN_CUR, INR_OPEN_MAX }, \ 218c2ecf20Sopenharmony_ci [RLIMIT_MEMLOCK] = { MLOCK_LIMIT, MLOCK_LIMIT }, \ 228c2ecf20Sopenharmony_ci [RLIMIT_AS] = { RLIM_INFINITY, RLIM_INFINITY }, \ 238c2ecf20Sopenharmony_ci [RLIMIT_LOCKS] = { RLIM_INFINITY, RLIM_INFINITY }, \ 248c2ecf20Sopenharmony_ci [RLIMIT_SIGPENDING] = { 0, 0 }, \ 258c2ecf20Sopenharmony_ci [RLIMIT_MSGQUEUE] = { MQ_BYTES_MAX, MQ_BYTES_MAX }, \ 268c2ecf20Sopenharmony_ci [RLIMIT_NICE] = { 0, 0 }, \ 278c2ecf20Sopenharmony_ci [RLIMIT_RTPRIO] = { 0, 0 }, \ 288c2ecf20Sopenharmony_ci [RLIMIT_RTTIME] = { RLIM_INFINITY, RLIM_INFINITY }, \ 298c2ecf20Sopenharmony_ci} 308c2ecf20Sopenharmony_ci 318c2ecf20Sopenharmony_ci#endif 32