Skip to content

Commit

Permalink
resource: module-registry: create module resource with SID_RESOURCE_R…
Browse files Browse the repository at this point in the history
…ESTRICT_WALK_UP on module_registry_load_module

We already restrict walking up from the module resource when using
module_registry_load_modules. Do the same if we're loading a single
module with module_registry_load_module.
  • Loading branch information
prajnoha committed Dec 8, 2023
1 parent 727196c commit dc89f9a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/resource/module-registry.c
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ sid_resource_t *module_registry_load_module(sid_resource_t *mod_registry_res, co

if (!(mod_res = sid_resource_create(mod_registry_res,
&sid_resource_type_module,
SID_RESOURCE_DISALLOW_ISOLATION,
SID_RESOURCE_RESTRICT_WALK_UP | SID_RESOURCE_DISALLOW_ISOLATION,
module_name,
NULL,
SID_RESOURCE_PRIO_NORMAL,
Expand Down

0 comments on commit dc89f9a

Please sign in to comment.