[apparmor] [PATCH] add --set-env option to aa-sandbox and move os.chdir()

Jamie Strandboge jamie at canonical.com
Thu Feb 6 19:34:12 UTC 2014


= aa-sandbox_add_set-env_option.patch =

Adjust aa-sandbox to add the --set-env to set an environment variable in the
environment used by the sandboxed application. Eg:

$ aa-sandbox --set-env="TMPDIR=/some/where" --set-env="FOO=bar" ...


= aa-sandbox_move_chdir.patch =

Move os.chdir(old_cwd) to before the aa-exec call it remove the side-effect of
the chdir to $HOME when using Xpra. This was such a minor change I didn't split
it out.

Acked-By: Jamie Strandboge <jamie at canonical.com>

-- 
Jamie Strandboge                 http://www.ubuntu.com/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: aa-sandbox_add_set-env_option.patch
Type: text/x-patch
Size: 1445 bytes
Desc: not available
URL: <https://lists.ubuntu.com/archives/apparmor/attachments/20140206/84637c1b/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: aa-sandbox_move_chdir.patch
Type: text/x-patch
Size: 445 bytes
Desc: not available
URL: <https://lists.ubuntu.com/archives/apparmor/attachments/20140206/84637c1b/attachment-0001.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 884 bytes
Desc: OpenPGP digital signature
URL: <https://lists.ubuntu.com/archives/apparmor/attachments/20140206/84637c1b/attachment.pgp>


More information about the AppArmor mailing list