Skip to content

Commit

Permalink
Drop acl_common.h
Browse files Browse the repository at this point in the history
  • Loading branch information
behlendorf committed Jan 3, 2019
1 parent 8e17e92 commit ec86bdc
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 70 deletions.
69 changes: 0 additions & 69 deletions include/spl/acl/acl_common.h

This file was deleted.

10 changes: 9 additions & 1 deletion module/zfs/zfs_acl.c
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@
#include <sys/sa.h>
#include <sys/trace_acl.h>
#include <sys/zpl.h>
#include <acl/acl_common.h>

#define ALLOW ACE_ACCESS_ALLOWED_ACE_TYPE
#define DENY ACE_ACCESS_DENIED_ACE_TYPE
Expand Down Expand Up @@ -1182,6 +1181,15 @@ zfs_acl_chown_setattr(znode_t *zp)
return (error);
}

typedef struct trivial_acl {
uint32_t allow0; /* allow mask for bits only in owner */
uint32_t deny1; /* deny mask for bits not in owner */
uint32_t deny2; /* deny mask for bits not in group */
uint32_t owner; /* allow mask matching mode */
uint32_t group; /* allow mask matching mode */
uint32_t everyone; /* allow mask matching mode */
} trivial_acl_t;

void
acl_trivial_access_masks(mode_t mode, boolean_t isdir, trivial_acl_t *masks)
{
Expand Down

0 comments on commit ec86bdc

Please sign in to comment.