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

« back to all changes in this revision

Viewing changes to src/common/jail.py

  • Committer: drtomc
  • Date: 2007-12-19 00:00:09 UTC
  • Revision ID: svn-v3-trunk0:2b9c9e99-6f39-0410-b283-7f802c844ae2:trunk:84
Add some auth fu.

Show diffs side-by-side

added added

removed removed

Lines of Context:
4
4
    if uid == 0:
5
5
        raise Exception, 'I will not setup a root jail! Go away!'
6
6
 
7
 
    if os.getuid() != <<www-uid>>>:
8
 
        raise Exception, 'I will not setup a root jail! Go away!'
9
 
 
10
7
    # FIXME - config this
11
8
    os.chroot(os.path.join('<<jail_base>>', jail))
12
9
    os.chdir(cwd)