mirror of
https://github.com/NixOS/nix.git
synced 2024-12-03 12:12:28 +00:00
Restrict the operations on drv outputs in recursive Nix
There's currently no way to properly filter them, so disallow them altogether instead.
This commit is contained in:
parent
bab1cda0e6
commit
e9b39f6004
@ -2093,18 +2093,14 @@ struct RestrictedStore : public LocalFSStore, public virtual RestrictedStoreConf
|
||||
}
|
||||
|
||||
void registerDrvOutput(const Realisation & info) override
|
||||
{
|
||||
// XXX: Should we check for something here? Probably, but I'm not sure
|
||||
// how
|
||||
next->registerDrvOutput(info);
|
||||
}
|
||||
// XXX: This should probably be allowed as a no-op if the realisation
|
||||
// corresponds to an allowed derivation
|
||||
{ throw Error("registerDrvOutput"); }
|
||||
|
||||
std::optional<const Realisation> queryRealisation(const DrvOutput & id) override
|
||||
{
|
||||
// XXX: Should we check for something here? Probably, but I'm not sure
|
||||
// how
|
||||
return next->queryRealisation(id);
|
||||
}
|
||||
// XXX: This should probably be allowed if the realisation corresponds to
|
||||
// an allowed derivation
|
||||
{ throw Error("queryRealisation"); }
|
||||
|
||||
void buildPaths(const std::vector<StorePathWithOutputs> & paths, BuildMode buildMode) override
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user