Merge "Add more robust SharedFilter permission checks."