aboutsummaryrefslogtreecommitdiffstats
path: root/packaging
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2018-10-21 11:35:09 -0700
committerGuy Harris <guy@alum.mit.edu>2018-10-21 18:35:57 +0000
commitb51aafd77cd060a09bb01a2287a481ca43d1b95e (patch)
tree3988eab12289a391d71fa27d1c78fbd5744f3cab /packaging
parentb8b827522722b286f184d5c766badc6be9ce1d08 (diff)
Fix ownership and permissions on /Library/Application Support/Wireshark.
Bug: 14335 Change-Id: I657b024554e1eff01544b7726a7eec74c8da8be1 Reviewed-on: https://code.wireshark.org/review/30307 Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'packaging')
-rwxr-xr-xpackaging/macosx/Scripts/chmodbpf-postinstall.sh12
1 files changed, 12 insertions, 0 deletions
diff --git a/packaging/macosx/Scripts/chmodbpf-postinstall.sh b/packaging/macosx/Scripts/chmodbpf-postinstall.sh
index c82097c561..0ba325141c 100755
--- a/packaging/macosx/Scripts/chmodbpf-postinstall.sh
+++ b/packaging/macosx/Scripts/chmodbpf-postinstall.sh
@@ -1,5 +1,17 @@
#!/bin/sh
+#
+# Fix up ownership and permissions on /Library/Application Support/Wireshark;
+# for some reason, it's not being owned by root:wheel, and it's not
+# publicly readable and, for directories and executables, not publicly
+# searchable/executable.
+#
+# XXX - that may be a problem with the process of building the installer
+# package; if so, that's where it *should* be fixed.
+#
+chown -R root:wheel "/Library/Application Support/Wireshark"
+chmod -R a+rX "/Library/Application Support/Wireshark"
+
CHMOD_BPF_PLIST="/Library/LaunchDaemons/org.wireshark.ChmodBPF.plist"
BPF_GROUP="access_bpf"
BPF_GROUP_NAME="BPF device access ACL"