Configuration: Use the NXT_CONF_VLDT_REQUIRED flag for procmap

Use the NXT_CONF_VLDT_REQUIRED flag on the app_procmap members. These
three settings are required.

These are for the uidmap & gidmap settings in the config.

Suggested-by: Zhidao HONG <z.hong@f5.com>
Reviewed-by: Zhidao Hong <z.hong@f5.com>
Signed-off-by: Andrew Clayton <a.clayton@nginx.com>
This commit is contained in:
Andrew Clayton
2024-01-24 22:03:12 +00:00
parent f7c9d3a8b3
commit eba7378d4f

View File

@@ -1327,12 +1327,15 @@ static nxt_conf_vldt_object_t nxt_conf_vldt_app_procmap_members[] = {
{
.name = nxt_string("container"),
.type = NXT_CONF_VLDT_INTEGER,
.flags = NXT_CONF_VLDT_REQUIRED,
}, {
.name = nxt_string("host"),
.type = NXT_CONF_VLDT_INTEGER,
.flags = NXT_CONF_VLDT_REQUIRED,
}, {
.name = nxt_string("size"),
.type = NXT_CONF_VLDT_INTEGER,
.flags = NXT_CONF_VLDT_REQUIRED,
},
NXT_CONF_VLDT_END