]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
o Introduce filesystem-independent POSIX.1e ACL utility routines to
authorRobert Watson <rwatson@FreeBSD.org>
Tue, 6 Mar 2001 17:28:24 +0000 (17:28 +0000)
committerRobert Watson <rwatson@FreeBSD.org>
Tue, 6 Mar 2001 17:28:24 +0000 (17:28 +0000)
commit5293465fefa460b1ec1c9c960de1fc0203839352
tree27f131d4fe329f500fe14f8fb0af45a5db7640d8
parenta8c60cbef4ccaac535dc606e21c0178c1ff45b33
o Introduce filesystem-independent POSIX.1e ACL utility routines to
  support implementations of ACLs in file systems.  Introduce the
  following new functions:

      vaccess_acl_posix1e()          vaccess() that accepts an ACL
      acl_posix1e_mode_to_perm()     Convert mode bits to ACL rights
      acl_posix1e_mode_to_entry()    Build ACL entry from mode/uid/gid
      acl_posix1e_perms_to_mode()    Generate file mode from ACL
      acl_posix1e_check()            Syntax verification for ACL

  These functions allow a file system to rely on central ACL evaluation
  and syntax checking, as well as providing useful utilities to
  allow ACL-based file systems to generate mode/owner/etc information
  to return via VOP_GETATTR(), and to support file systems that split
  their ACL information over their existing inode storage (mode, uid,
  gid) and extended ACL into extended attributes (additional users,
  groups, ACL mask).

o Add prototypes for exported functions to sys/acl.h, sys/vnode.h

Reviewed by: trustedbsd-discuss, freebsd-arch
Obtained from: TrustedBSD Project
sys/kern/kern_acl.c
sys/kern/subr_acl_posix1e.c
sys/kern/vfs_acl.c
sys/sys/acl.h
sys/sys/vnode.h