diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2021-10-07 12:11:00 +0200 |
---|---|---|
committer | Eelco Dolstra <edolstra@gmail.com> | 2021-10-07 12:11:00 +0200 |
commit | cfaad7168e7ac72d4b2024df2e093b86b45b70fc (patch) | |
tree | 8ed6321f3b9e151932145cd83b23d9a41f60d698 /src/libexpr/eval.hh | |
parent | c9ee634f75296be1bb123760251919213439eb49 (diff) |
Refactoring: Add allowPath() method
Diffstat (limited to 'src/libexpr/eval.hh')
-rw-r--r-- | src/libexpr/eval.hh | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/libexpr/eval.hh b/src/libexpr/eval.hh index 9df6150c6..f8c9cf5a7 100644 --- a/src/libexpr/eval.hh +++ b/src/libexpr/eval.hh @@ -150,6 +150,11 @@ public: SearchPath getSearchPath() { return searchPath; } + /* Allow access to a path. */ + void allowPath(const Path & path); + + /* Check whether access to a path is allowed and throw an error if + not. Otherwise return the canonicalised path. */ Path checkSourcePath(const Path & path); void checkURI(const std::string & uri); |