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:
@@ -1327,12 +1327,15 @@ static nxt_conf_vldt_object_t nxt_conf_vldt_app_procmap_members[] = {
|
|||||||
{
|
{
|
||||||
.name = nxt_string("container"),
|
.name = nxt_string("container"),
|
||||||
.type = NXT_CONF_VLDT_INTEGER,
|
.type = NXT_CONF_VLDT_INTEGER,
|
||||||
|
.flags = NXT_CONF_VLDT_REQUIRED,
|
||||||
}, {
|
}, {
|
||||||
.name = nxt_string("host"),
|
.name = nxt_string("host"),
|
||||||
.type = NXT_CONF_VLDT_INTEGER,
|
.type = NXT_CONF_VLDT_INTEGER,
|
||||||
|
.flags = NXT_CONF_VLDT_REQUIRED,
|
||||||
}, {
|
}, {
|
||||||
.name = nxt_string("size"),
|
.name = nxt_string("size"),
|
||||||
.type = NXT_CONF_VLDT_INTEGER,
|
.type = NXT_CONF_VLDT_INTEGER,
|
||||||
|
.flags = NXT_CONF_VLDT_REQUIRED,
|
||||||
},
|
},
|
||||||
|
|
||||||
NXT_CONF_VLDT_END
|
NXT_CONF_VLDT_END
|
||||||
|
|||||||
Reference in New Issue
Block a user