Print this page
NEX-1767 ls is unable to display SIDs
Reviewed by: Gordon Ross <gordon.ross@nexenta.com>
Reviewed by: Evan Layton <evan.layton@nexenta.com>

Split Close
Expand all
Collapse all
          --- old/usr/src/lib/libsec/common/aclutils.h
          +++ new/usr/src/lib/libsec/common/aclutils.h
↓ open down ↓ 13 lines elided ↑ open up ↑
  14   14   * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  15   15   * If applicable, add the following below this CDDL HEADER, with the
  16   16   * fields enclosed by brackets "[]" replaced with your own identifying
  17   17   * information: Portions Copyright [yyyy] [name of copyright owner]
  18   18   *
  19   19   * CDDL HEADER END
  20   20   */
  21   21  /*
  22   22   * Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
  23   23   * Use is subject to license terms.
       24 + *
       25 + * Copyright 2016 Nexenta Systems, Inc.  All rights reserved.
  24   26   */
  25   27  
  26   28  #ifndef _ACLUTILS_H
  27   29  #define _ACLUTILS_H
  28   30  
  29   31  #include <sys/types.h>
  30   32  #include <sys/acl.h>
  31   33  #include <strings.h>
  32   34  #include <locale.h>
  33   35  #include <ctype.h>
↓ open down ↓ 99 lines elided ↑ open up ↑
 133  135  extern int acl_type(acl_t *);
 134  136  extern int acl_cnt(acl_t *);
 135  137  extern int acl_flags(acl_t *);
 136  138  extern void *acl_data(acl_t *);
 137  139  extern void acl_error(const char *, ...);
 138  140  extern int acl_parse(const char *, acl_t **);
 139  141  extern int yyparse(void);
 140  142  extern void yyreset(void);
 141  143  extern void yycleanup(void);
 142  144  extern acl_t *acl_to_aclp(enum acl_type, void *, int);
      145 +extern int sid_string_by_id(uid_t, boolean_t, char **, boolean_t);
 143  146  extern int sid_to_id(char *, boolean_t, uid_t *);
 144  147  
 145  148  #ifdef  __cplusplus
 146  149  }
 147  150  #endif
 148  151  
 149  152  #endif /* _ACLUTILS_H */
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX