Home
last modified time | relevance | path

Searched refs:rlimit (Results 1 – 25 of 39) sorted by relevance

12

/systemd-251/src/nspawn/
Dnspawn-gperf.gperf39 …U, config_parse_rlimit, RLIMIT_CPU, offsetof(Settings, rlimit)
40 …IZE, config_parse_rlimit, RLIMIT_FSIZE, offsetof(Settings, rlimit)
41 …TA, config_parse_rlimit, RLIMIT_DATA, offsetof(Settings, rlimit)
42 …ACK, config_parse_rlimit, RLIMIT_STACK, offsetof(Settings, rlimit)
43 …RE, config_parse_rlimit, RLIMIT_CORE, offsetof(Settings, rlimit)
44 …S, config_parse_rlimit, RLIMIT_RSS, offsetof(Settings, rlimit)
45 …FILE, config_parse_rlimit, RLIMIT_NOFILE, offsetof(Settings, rlimit)
46 …, config_parse_rlimit, RLIMIT_AS, offsetof(Settings, rlimit)
47 …ROC, config_parse_rlimit, RLIMIT_NPROC, offsetof(Settings, rlimit)
48 …MLOCK, config_parse_rlimit, RLIMIT_MEMLOCK, offsetof(Settings, rlimit)
[all …]
Dnspawn-settings.h183 struct rlimit *rlimit[_RLIMIT_MAX]; member
Dnspawn-oci.c272 if (s->rlimit[data.type]) in oci_rlimits()
276 s->rlimit[data.type] = new(struct rlimit, 1); in oci_rlimits()
277 if (!s->rlimit[data.type]) in oci_rlimits()
280 *s->rlimit[data.type] = (struct rlimit) { in oci_rlimits()
Dnspawn.c217 static struct rlimit *arg_rlimit[_RLIMIT_MAX] = {};
1475 DUMP_STRING_TABLE(rlimit, int, _RLIMIT_MAX); in parse_argv()
1493 arg_rlimit[rl] = new0(struct rlimit, 1); in parse_argv()
3391 r = setrlimit_closest_all((const struct rlimit *const*) arg_rlimit, &which_failed); in inner_child()
4510 if (!settings->rlimit[rl]) in merge_settings()
4518 free_and_replace(arg_rlimit[rl], settings->rlimit[rl]); in merge_settings()
5322 static const struct rlimit kernel_defaults[_RLIMIT_MAX] = { in initialize_rlimits()
5351 const struct rlimit *v; in initialize_rlimits()
5352 struct rlimit buffer; in initialize_rlimits()
5373 arg_rlimit[rl] = newdup(struct rlimit, v, 1); in initialize_rlimits()
/systemd-251/src/basic/
Drlimit-util.h12 int setrlimit_closest(int resource, const struct rlimit *rlim);
13 int setrlimit_closest_all(const struct rlimit * const *rlim, int *which_failed);
16 int rlimit_parse(int resource, const char *val, struct rlimit *ret);
18 int rlimit_format(const struct rlimit *rl, char **ret);
20 void rlimit_free_all(struct rlimit **rl);
22 #define RLIMIT_MAKE_CONST(lim) ((struct rlimit) { lim, lim })
Drlimit-util.c16 int setrlimit_closest(int resource, const struct rlimit *rlim) { in setrlimit_closest()
17 struct rlimit highest, fixed; in setrlimit_closest()
37 fixed = (struct rlimit) { in setrlimit_closest()
52 int setrlimit_closest_all(const struct rlimit *const *rlim, int *which_failed) { in setrlimit_closest_all()
259 int rlimit_parse(int resource, const char *val, struct rlimit *ret) { in rlimit_parse()
292 *ret = (struct rlimit) { in rlimit_parse()
300 int rlimit_format(const struct rlimit *rl, char **ret) { in rlimit_format()
343 DEFINE_STRING_TABLE_LOOKUP(rlimit, int);
361 void rlimit_free_all(struct rlimit **rl) { in rlimit_free_all()
393 struct rlimit rl; in rlimit_nofile_safe()
Dmeson.build203 'rlimit-util.c',
204 'rlimit-util.h',
/systemd-251/src/core/
Dmain.c149 static struct rlimit *arg_default_rlimit[_RLIMIT_MAX];
177 static int parse_configuration(const struct rlimit *saved_rlimit_nofile,
178 const struct rlimit *saved_rlimit_memlock);
1225 static int bump_rlimit_nofile(const struct rlimit *saved_rlimit) { in bump_rlimit_nofile()
1226 struct rlimit new_rlimit; in bump_rlimit_nofile()
1233 new_rlimit = (struct rlimit) { in bump_rlimit_nofile()
1254 static int bump_rlimit_memlock(const struct rlimit *saved_rlimit) { in bump_rlimit_memlock()
1255 struct rlimit new_rlimit; in bump_rlimit_memlock()
1271 new_rlimit = (struct rlimit) { in bump_rlimit_memlock()
1740 const struct rlimit *saved_rlimit_nofile, in do_reexecute()
[all …]
Ddbus-execute.c1148 …SD_BUS_PROPERTY("LimitCPU", "t", bus_property_get_rlimit, offsetof(ExecContext, rlimit[RLIMIT_CPU]…
1149 …SD_BUS_PROPERTY("LimitCPUSoft", "t", bus_property_get_rlimit, offsetof(ExecContext, rlimit[RLIMIT_…
1150 …SD_BUS_PROPERTY("LimitFSIZE", "t", bus_property_get_rlimit, offsetof(ExecContext, rlimit[RLIMIT_FS…
1151 …TY("LimitFSIZESoft", "t", bus_property_get_rlimit, offsetof(ExecContext, rlimit[RLIMIT_FSIZE]), SD…
1152 …SD_BUS_PROPERTY("LimitDATA", "t", bus_property_get_rlimit, offsetof(ExecContext, rlimit[RLIMIT_DAT…
1153 …SD_BUS_PROPERTY("LimitDATASoft", "t", bus_property_get_rlimit, offsetof(ExecContext, rlimit[RLIMIT…
1154 …SD_BUS_PROPERTY("LimitSTACK", "t", bus_property_get_rlimit, offsetof(ExecContext, rlimit[RLIMIT_ST…
1155 …TY("LimitSTACKSoft", "t", bus_property_get_rlimit, offsetof(ExecContext, rlimit[RLIMIT_STACK]), SD…
1156 …SD_BUS_PROPERTY("LimitCORE", "t", bus_property_get_rlimit, offsetof(ExecContext, rlimit[RLIMIT_COR…
1157 …SD_BUS_PROPERTY("LimitCORESoft", "t", bus_property_get_rlimit, offsetof(ExecContext, rlimit[RLIMIT…
[all …]
Ddbus-manager.c2804 …SD_BUS_PROPERTY("DefaultLimitCPU", "t", bus_property_get_rlimit, offsetof(Manager, rlimit[RLIMIT_C…
2805 …Y("DefaultLimitCPUSoft", "t", bus_property_get_rlimit, offsetof(Manager, rlimit[RLIMIT_CPU]), SD_B…
2806 …SD_BUS_PROPERTY("DefaultLimitFSIZE", "t", bus_property_get_rlimit, offsetof(Manager, rlimit[RLIMIT…
2807 …"DefaultLimitFSIZESoft", "t", bus_property_get_rlimit, offsetof(Manager, rlimit[RLIMIT_FSIZE]), SD…
2808 …SD_BUS_PROPERTY("DefaultLimitDATA", "t", bus_property_get_rlimit, offsetof(Manager, rlimit[RLIMIT_…
2809 …("DefaultLimitDATASoft", "t", bus_property_get_rlimit, offsetof(Manager, rlimit[RLIMIT_DATA]), SD_…
2810 …SD_BUS_PROPERTY("DefaultLimitSTACK", "t", bus_property_get_rlimit, offsetof(Manager, rlimit[RLIMIT…
2811 …"DefaultLimitSTACKSoft", "t", bus_property_get_rlimit, offsetof(Manager, rlimit[RLIMIT_STACK]), SD…
2812 …SD_BUS_PROPERTY("DefaultLimitCORE", "t", bus_property_get_rlimit, offsetof(Manager, rlimit[RLIMIT_…
2813 …("DefaultLimitCORESoft", "t", bus_property_get_rlimit, offsetof(Manager, rlimit[RLIMIT_CORE]), SD_…
[all …]
Dload-fragment-gperf.gperf.in88 … RLIMIT_CPU, offsetof({{type}}, exec_context.rlimit)
89 … RLIMIT_FSIZE, offsetof({{type}}, exec_context.rlimit)
90 … RLIMIT_DATA, offsetof({{type}}, exec_context.rlimit)
91 … RLIMIT_STACK, offsetof({{type}}, exec_context.rlimit)
92 … RLIMIT_CORE, offsetof({{type}}, exec_context.rlimit)
93 … RLIMIT_RSS, offsetof({{type}}, exec_context.rlimit)
94 … RLIMIT_NOFILE, offsetof({{type}}, exec_context.rlimit)
95 … RLIMIT_AS, offsetof({{type}}, exec_context.rlimit)
96 … RLIMIT_NPROC, offsetof({{type}}, exec_context.rlimit)
97 … RLIMIT_MEMLOCK, offsetof({{type}}, exec_context.rlimit)
[all …]
Dmanager.h384 struct rlimit *rlimit[_RLIMIT_MAX]; member
512 int manager_set_default_rlimits(Manager *m, struct rlimit **default_rlimit);
Dexecute.h182 struct rlimit *rlimit[_RLIMIT_MAX]; member
Dmanager.c1551 rlimit_free_all(m->rlimit); in manager_free()
3880 int manager_set_default_rlimits(Manager *m, struct rlimit **default_rlimit) { in manager_set_default_rlimits()
3884 m->rlimit[i] = mfree(m->rlimit[i]); in manager_set_default_rlimits()
3889 m->rlimit[i] = newdup(struct rlimit, default_rlimit[i], 1); in manager_set_default_rlimits()
3890 if (!m->rlimit[i]) in manager_set_default_rlimits()
/systemd-251/src/test/
Dtest-rlimit-util.c16 struct rlimit rl = { in test_rlimit_parse_format_one()
35 assert_se(memcmp(&rl, &rl2, sizeof(struct rlimit)) == 0); in test_rlimit_parse_format_one()
103 struct rlimit old, new, high; in TEST()
104 struct rlimit err = { in TEST()
Dtest-bpf-lsm.c66 struct rlimit rl; in main()
Dtest-tables.c94 test_table(rlimit, RLIMIT); in main()
Dtest-socket-bind.c105 struct rlimit rl; in main()
Dtest-bpf-firewall.c31 struct rlimit rl; in main()
Dtest-bpf-foreign-programs.c274 struct rlimit rl; in main()
Dtest-bpf-devices.c256 struct rlimit rl; in main()
/systemd-251/src/shared/
Dbus-get-properties.c114 struct rlimit *rl; in bus_property_get_rlimit()
124 rl = *(struct rlimit**) userdata; in bus_property_get_rlimit()
128 struct rlimit buf = {}; in bus_property_get_rlimit()
/systemd-251/shell-completion/bash/
Dsystemd-nspawn55 for i in $(systemd-nspawn --rlimit=help 2>/dev/null); do
73 … --overlay-ro --settings --rlimit --hostname --no-new-privileges --oom-score-adjust --cpu-affinity
165 --rlimit)
Dhomectl80 --rlimit
/systemd-251/src/coredump/
Dcoredump.c346 uint64_t rlimit, process_limit, max_size; in save_external_coredump() local
364 r = safe_atou64(context->meta[META_ARGV_RLIMIT], &rlimit); in save_external_coredump()
368 if (rlimit < page_size()) in save_external_coredump()
383 max_size = MIN(rlimit, process_limit); in save_external_coredump()

12