[Bug 199864] bsdinstall(8): zfsboot script should create /var/audit dataset

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Sat May 2 15:11:57 UTC 2015


            Bug ID: 199864
           Summary: bsdinstall(8): zfsboot script should create /var/audit
           Product: Base System
           Version: 10.1-RELEASE
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: conf
          Assignee: freebsd-bugs at FreeBSD.org
          Reporter: jason.unovitch at gmail.com

Created attachment 156238
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=156238&action=edit
add /var/audit dataset to usr.sbin/bsdinstall/scripts/zfsboot config

usr.sbin/bsdinstall/scripts/zfsboot currently creates datasets for /var/log but
not /var/audit.  While anyone using auditing would likely make adjustments, the
default could be better.  There's no good reason to potentially lose audit logs
by keeping them as part of the boot environment instead of on a dedicated
dataset.  Additionally, treating logs under /var/log different than audit logs
under /var/audit is not an intuitive default configuration.  Attached patch
enables configuring /var/audit by default.

Other Implementation References:

PCBSD creates /var/audit by default with just compression, which is already
enabled at the pool level on FreeBSD since r266108 on HEAD and r267056 on

Oracle Solaris 11 does things differently with a symlink of /var/audit to
/var/share/audit to accomplish the same goal of keeping audit logs outside of
the boot environment:

You are receiving this mail because:
You are the assignee for the bug.

More information about the freebsd-bugs mailing list