mirror of
https://gitlab.com/apparmor/apparmor
synced 2025-08-31 06:16:03 +00:00
Move os.chdir(old_cwd) to before the aa-exec call it remove the side-effect of
the chdir to $HOME when using Xpra. Acked-By: Jamie Strandboge <jamie@canonical.com> Acked-by: Steve Beattie <steve@nxnw.org>
This commit is contained in:
@@ -706,6 +706,7 @@ def run_xsandbox(command, opt):
|
|||||||
x.start()
|
x.start()
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
error(e)
|
error(e)
|
||||||
|
os.chdir(old_cwd)
|
||||||
|
|
||||||
if not opt.read_path:
|
if not opt.read_path:
|
||||||
opt.read_path = []
|
opt.read_path = []
|
||||||
@@ -721,6 +722,5 @@ def run_xsandbox(command, opt):
|
|||||||
x.cleanup()
|
x.cleanup()
|
||||||
raise
|
raise
|
||||||
x.cleanup()
|
x.cleanup()
|
||||||
os.chdir(old_cwd)
|
|
||||||
|
|
||||||
return rc, report
|
return rc, report
|
||||||
|
Reference in New Issue
Block a user