diff options
author | Gerald Combs <gerald@wireshark.org> | 2011-05-15 19:25:50 +0000 |
---|---|---|
committer | Gerald Combs <gerald@wireshark.org> | 2011-05-15 19:25:50 +0000 |
commit | cdca166a64be1c53f269c0ed8607a1656dc0f249 (patch) | |
tree | 67400d7fede0af91ac6984a5967b98e25abee38f /packaging | |
parent | 6a5644b497dfcb24ff96e298d3a3369e8f12a927 (diff) |
Fix the ChmodBPF startup item permissions. Handling this within
PackageMaker would be a more correct fix. Replacing PackageMaker with
something that fits our development and deployment model would be an
even more correct fix.
svn path=/trunk/; revision=37167
Diffstat (limited to 'packaging')
-rwxr-xr-x | packaging/macosx/Scripts/chmodbpf-postinstall.sh | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/packaging/macosx/Scripts/chmodbpf-postinstall.sh b/packaging/macosx/Scripts/chmodbpf-postinstall.sh index 7ac55319ea..7d215091ea 100755 --- a/packaging/macosx/Scripts/chmodbpf-postinstall.sh +++ b/packaging/macosx/Scripts/chmodbpf-postinstall.sh @@ -1,6 +1,7 @@ #!/bin/sh -CHMOD_BPF="/Library/StartupItems/ChmodBPF/ChmodBPF" +CHMOD_BPF_DIR="/Library/StartupItems/ChmodBPF" +CHMOD_BPF="$CHMOD_BPF_DIR/ChmodBPF" BPF_GROUP="access_bpf" BPF_GROUP_NAME="BPF device access ACL" @@ -8,4 +9,6 @@ dseditgroup -q -o read "$BPF_GROUP" > /dev/null 2>&1 || \ dseditgroup -q -o create "$BPF_GROUP" dseditgroup -q -o edit -a "$USER" -t user "$BPF_GROUP" +chmod -R go-w "$CHMOD_BPF_DIR" + sh "$CHMOD_BPF" start |