SYNOPSIS
  nomask int cmp_perm (string perm1, string perm2)

DESCRIPTION
  Compare two permissions <perm1> and <perm2>.
  Result is an integer denoting the relation:
    = -2: the two perms are not compareable
    = -1: perm1 < perm2
    =  0: perm1 = perm2
    =  1: perm1 > perm2

SEE ALSO
  security(C), check_permission(sefun), eff_perm(sefun),
  get_permission(sefun), get_protection(sefun), prot2domain(sefun)
