~azzar1/unity/add-show-desktop-key

« back to all changes in this revision

Viewing changes to src/bin/trampoline-generic

  • Committer: drtomc
  • Date: 2007-12-19 20:48:44 UTC
  • Revision ID: svn-v3-trunk0:2b9c9e99-6f39-0410-b283-7f802c844ae2:trunk:87
First hack at the python console.

Show diffs side-by-side

added added

removed removed

Lines of Context:
59
59
def runscript(uid, jail, cwd, script, interp):
60
60
    if uid == 0:
61
61
        sys.exit(sys.argv[0] + ": cannot run scripts as root!\n")
62
 
    if not jail.startswith("/home/mgiuca/playground"):
63
 
        sys.exit(sys.argv[0] + ": invalid jail location!\n")
 
62
    # os.chroot(os.path.join(<<base-directory-for-jails>>, jail))
64
63
    os.chroot(jail)
65
64
    os.chdir(cwd)
66
65
    os.setuid(uid)