This means that CONFIG_AUDIT is not set on your Kernel, and that is a task you will not achieve without changing your kernel or at least editing some boot parameters.
You will need to:
- Download a Kernel that has audit enabled from your distribution provider or compile your Kernel with
CONFIG_AUDIT enable if your distribution does not provide such kernel
- If your Kernel is compiled with
CONFIG_AUDIT enable(see below) add the kernel parameter audit=1 - See GRUB Quiet Splash. This is the file you need to edit.
- Note that this was just an example. If your are using other bootloader that isn't GRUB, you will need to research on it's docs how to add Kernel Options to your default Kernel entry or to all of them. As an example,
systemd-boot have the options= parameter to do this task and enable it to an entry.
How can you check if your current kernel have this feature enabled:
On Red Hat and Debian based distributions, tipically inside /boot there is a config file called config, with the uname -r(kernel release) append. Example:
[root@host ~]# grep CONFIG_AUDIT /boot/config-`uname -r`
CONFIG_AUDIT_ARCH=y
CONFIG_AUDIT=y
CONFIG_AUDITSYSCALL=y
CONFIG_AUDIT_WATCH=y
CONFIG_AUDIT_TREE=y
On distributions compiled with the CONFIG_IKCONFIG option, you can get a compressed version of the current config file inside your /proc virtual directory structure by loading the configs kernel module. Example:
[root@host ~]# modprobe configs ; gunzip -dc /proc/config.gz | grep AUDIT
# CONFIG_AUDIT is not set
# CONFIG_AUDIT_ARCH_COMPAT_GENERIC is not set