From a80d8b03421f0d920eaa336f3389ad2cad4f032b Mon Sep 17 00:00:00 2001 From: Dan Wendlandt Date: Mon, 17 Sep 2012 10:35:51 -0700 Subject: [PATCH] fix for nested rootwrap checks with 'ip netns exec' bug 1051525 Change-Id: Ia52060afec1c573c8f11d658af88cea7e000d774 --- quantum/rootwrap/filters.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/quantum/rootwrap/filters.py b/quantum/rootwrap/filters.py index 189ab7a20..976598a6c 100644 --- a/quantum/rootwrap/filters.py +++ b/quantum/rootwrap/filters.py @@ -193,4 +193,7 @@ class IpNetnsExecFilter(ExecCommandFilter): return False def exec_args(self, userargs): - return userargs[4:] + args = userargs[4:] + if args: + args[0] = os.path.basename(args[0]) + return args -- 2.45.2