Hi there,
while looking at the way fence starts up and reads configuration it seems not to behave how I expected. This may be because my mental model is wrong, so let's describe.
- I would have expected that configuration at
~/.config/fence/fence.json is always read, except when I provide a custom --settings some/other/path.json argument
- That means, that any customizations that this settings file does (e.g. adding paths to the
code sandbox should apply when I run fence -t code some_command
This does not seem to be the case? It seems that fence -t code ls only loads the code template, not its extensions from my custom config file.
Is that intentional?
related but not part of this bug report: How do I provide a configuration that defines extensions for various default sandbox templates? (for example by adding ~/.pi/** to the writeAllowed directive?
Hi there,
while looking at the way fence starts up and reads configuration it seems not to behave how I expected. This may be because my mental model is wrong, so let's describe.
~/.config/fence/fence.jsonis always read, except when I provide a custom--settings some/other/path.jsonargumentcodesandbox should apply when I runfence -t code some_commandThis does not seem to be the case? It seems that
fence -t code lsonly loads the code template, not its extensions from my custom config file.Is that intentional?
related but not part of this bug report: How do I provide a configuration that defines extensions for various default sandbox templates? (for example by adding
~/.pi/**to the writeAllowed directive?