Skip to content

Commit

Permalink
network: expose namespace fd paths to network hooks
Browse files Browse the repository at this point in the history
Closes: #3667
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
  • Loading branch information
Christian Brauner committed Feb 14, 2021
1 parent 8db6be1 commit 37631dd
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/lxc/network.c
Expand Up @@ -3977,6 +3977,13 @@ void lxc_delete_network(struct lxc_handler *handler)
{
bool bret;

/*
* Always expose namespace fd paths to network down hooks via
* environment variables. No need to complicate things by passing them
* as additional hook arguments.
*/
lxc_expose_namespace_environment(handler);

if (handler->am_root)
bret = lxc_delete_network_priv(handler);
else
Expand Down

0 comments on commit 37631dd

Please sign in to comment.