Skip to content

Commit

Permalink
isolate: Only apply suid bits when installing instead of when compiling.
Browse files Browse the repository at this point in the history
  • Loading branch information
bblackham committed Mar 9, 2013
1 parent 23b780e commit 2b705d0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 0 additions & 2 deletions isolate/compile.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
#!/bin/sh -ex

gcc -o isolate isolate.c -O2 -Wall -g -std=c99
sudo chown root:root isolate
sudo chmod 4755 isolate

4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,8 +156,8 @@ def copyfile(src, dest, owner, perm):
"""
shutil.copy(src, dest)
os.chmod(dest, perm)
os.chown(dest, owner.pw_uid, owner.pw_gid)
os.chmod(dest, perm)


def makedir(dir_path, owner=None, perm=None):
Expand Down Expand Up @@ -241,7 +241,7 @@ def install():
makedir(os.path.join("/", "usr", "local", "bin"), root, 0755)
copyfile(os.path.join(".", "isolate", "isolate"),
os.path.join("/", "usr", "local", "bin", "isolate"),
root, 0755)
root, 04755)

print "copying configuration to /usr/local/etc/."
makedir(os.path.join("/", "usr", "local", "etc"), root, 0755)
Expand Down

0 comments on commit 2b705d0

Please sign in to comment.