Commits

Stephen Smalley  committed 9a134f7

Enable audit by default.

Enable audit by default, including pathname collection.
Normally this would be handled from userspace via auditctl,
but patch the kernel until audit userspace becomes available.

  • Participants
  • Parent commits 1e7559d
  • Branches seandroid-exynos-manta-3.4-jb-mr1

Comments (0)

Files changed (2)

File kernel/audit.c

 EXPORT_SYMBOL_GPL(audit_enabled);
 
 /* Default state when kernel boots without any parameters. */
-static int	audit_default;
+static int	audit_default = 1;
 
 /* If auditing cannot proceed, audit_failure selects what happens. */
 static int	audit_failure = AUDIT_FAIL_PRINTK;

File kernel/auditsc.c

 #define MAX_EXECVE_AUDIT_LEN 7500
 
 /* number of audit rules */
-int audit_n_rules;
+int audit_n_rules = 1;
 
 /* determines whether we collect data for signals sent */
 int audit_signals;