Uploaded image for project: 'TrueNAS'
  1. TrueNAS
  2. NAS-109065

s3:modules:full_audit - avoid log spam

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Done (View Workflow)
    • Priority: Low
    • Resolution: Complete
    • Affects Version/s: None
    • Fix Version/s: 12.0-U3
    • Component/s: Middleware
    • Labels:
      None

      Description

      PR: https://github.com/freenas/ports/pull/941

      Due to continuing work on Samba's VFS, some operations have changed
      name. For example unlink -> unlinkat, mkdir -> mkdirat. The original
      design of vfs_full_audit was to log all vfs operations if it
      encountered one that was not in its lookup table for ops. This results in
      a massive increase in the amount of logging being generated.

      This commit expands the lookup table to include an `oldname` string that
      the user's configuration can be checked against so that the old name,
      e.g. `unlink`, will continue to log the appropriate VFS operation without
      configuration change. In the case of totally unknown parameters, deny access
      to the share with a log message that auditing is significantly misconfigured.
      The reasoning for this is that auditing failure is a significant error and
      users should not be granted access until it is resolved.

        Attachments

          Attachments

            JEditor

              Activity

                People

                Assignee:
                awalker Andrew Walker
                Reporter:
                bugclerk Bug Clerk
                Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved: