162306a36Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 */ 262306a36Sopenharmony_ci#ifndef _ASM_GENERIC_RESOURCE_H 362306a36Sopenharmony_ci#define _ASM_GENERIC_RESOURCE_H 462306a36Sopenharmony_ci 562306a36Sopenharmony_ci#include <uapi/asm-generic/resource.h> 662306a36Sopenharmony_ci 762306a36Sopenharmony_ci 862306a36Sopenharmony_ci/* 962306a36Sopenharmony_ci * boot-time rlimit defaults for the init task: 1062306a36Sopenharmony_ci */ 1162306a36Sopenharmony_ci#define INIT_RLIMITS \ 1262306a36Sopenharmony_ci{ \ 1362306a36Sopenharmony_ci [RLIMIT_CPU] = { RLIM_INFINITY, RLIM_INFINITY }, \ 1462306a36Sopenharmony_ci [RLIMIT_FSIZE] = { RLIM_INFINITY, RLIM_INFINITY }, \ 1562306a36Sopenharmony_ci [RLIMIT_DATA] = { RLIM_INFINITY, RLIM_INFINITY }, \ 1662306a36Sopenharmony_ci [RLIMIT_STACK] = { _STK_LIM, RLIM_INFINITY }, \ 1762306a36Sopenharmony_ci [RLIMIT_CORE] = { 0, RLIM_INFINITY }, \ 1862306a36Sopenharmony_ci [RLIMIT_RSS] = { RLIM_INFINITY, RLIM_INFINITY }, \ 1962306a36Sopenharmony_ci [RLIMIT_NPROC] = { 0, 0 }, \ 2062306a36Sopenharmony_ci [RLIMIT_NOFILE] = { INR_OPEN_CUR, INR_OPEN_MAX }, \ 2162306a36Sopenharmony_ci [RLIMIT_MEMLOCK] = { MLOCK_LIMIT, MLOCK_LIMIT }, \ 2262306a36Sopenharmony_ci [RLIMIT_AS] = { RLIM_INFINITY, RLIM_INFINITY }, \ 2362306a36Sopenharmony_ci [RLIMIT_LOCKS] = { RLIM_INFINITY, RLIM_INFINITY }, \ 2462306a36Sopenharmony_ci [RLIMIT_SIGPENDING] = { 0, 0 }, \ 2562306a36Sopenharmony_ci [RLIMIT_MSGQUEUE] = { MQ_BYTES_MAX, MQ_BYTES_MAX }, \ 2662306a36Sopenharmony_ci [RLIMIT_NICE] = { 0, 0 }, \ 2762306a36Sopenharmony_ci [RLIMIT_RTPRIO] = { 0, 0 }, \ 2862306a36Sopenharmony_ci [RLIMIT_RTTIME] = { RLIM_INFINITY, RLIM_INFINITY }, \ 2962306a36Sopenharmony_ci} 3062306a36Sopenharmony_ci 3162306a36Sopenharmony_ci#endif 32