Print this page
NEX-13644 File access audit logging
Reviewed by: Gordon Ross <gordon.ross@nexenta.com>
Reviewed by: Roman Strashkin <roman.strashkin@nexenta.com>
Reviewed by: Saso Kiselkov <saso.kiselkov@nexenta.com>
Reviewed by: Rick McNeal <rick.mcneal@nexenta.com>
Reviewed by: Yuri Pankov <yuri.pankov@nexenta.com>

Split Close
Expand all
Collapse all
          --- old/usr/src/lib/auditd_plugins/syslog/systoken.c
          +++ new/usr/src/lib/auditd_plugins/syslog/systoken.c
↓ 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 2010 Sun Microsystems, Inc.  All rights reserved.
  23   23   * Use is subject to license terms.
       24 + *
  24   25   * Copyright 2012 Milan Jurik. All rights reserved.
       26 + * Copyright 2018 Nexenta Systems, Inc.  All rights reserved.
  25   27   */
  26   28  
  27   29  
  28   30  /*
  29   31   * Token processing for sysupd; each token function does one
  30   32   * or more operations.  All of them bump the buffer pointer
  31   33   * to the next token; some of them extract one or more data
  32   34   * from the token.
  33   35   */
  34   36  
↓ open down ↓ 1481 lines elided ↑ open up ↑
1516 1518   *      priv_type                       adr_char
1517 1519   *      priv_set_t                      adr_short
1518 1520   *      priv_set                        adr_char*(sizeof (priv_set_t))
1519 1521   */
1520 1522  int
1521 1523  useofpriv_token(parse_context_t *ctx)
1522 1524  {
1523 1525          ctx->adr.adr_now += sizeof (char); /* success / fail */
1524 1526          skip_bytes(ctx);
1525 1527  
     1528 +        return (0);
     1529 +}
     1530 +
     1531 +/*
     1532 + * Format of access_mask token:
     1533 + *      access_mask             adr_u_int32
     1534 + */
     1535 +int
     1536 +access_mask_token(parse_context_t *ctx)
     1537 +{
     1538 +        ctx->adr.adr_now += sizeof (uint32_t);
     1539 +
     1540 +        return (0);
     1541 +}
     1542 +
     1543 +/*
     1544 + * Format of wsid token:
     1545 + *      wsid            adr_string
     1546 + */
     1547 +int
     1548 +wsid_token(parse_context_t *ctx)
     1549 +{
     1550 +        skip_bytes(ctx);
     1551 +
1526 1552          return (0);
1527 1553  }
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX