SYNOPSIS
  nomask string *get_protection (string file, void | object | string user)

DESCRIPTION
  Get the protections for a <file>. <user> is the name to use with
  relative filenames (may be 0), and may be given as ID permission.

  Result is an array with the protections of the file:
    [0]: the read protection
    [1]: the write protection
    [2]: the basic object permissions

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