fix for nested rootwrap checks with 'ip netns exec'
bug 1051525 Change-Id: Ia52060afec1c573c8f11d658af88cea7e000d774
This commit is contained in:
parent
bc33f8ae6f
commit
aa8caf0b9c
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user