def get_gid(path, follow_symlinks=True):
    return stats(os.path.expanduser(path), follow_symlinks=follow_symlinks).get('gid', -1)
Checks if requester and approvers have approval privileges for labels.
dataset/ETHPy150Open saltstack/salt/salt/modules/file.py/get_gid--crossover with--dataset/ETHPy150Open google/grr/grr/lib/authorization/client_approval_auth.py/ClientApprovalAuthorizationManager.CheckApproversForLabel