This patch fixes this by using the open_how struct that we store inside the audit_context with audit_openat2_how(). Independent of this patch, Richard Guy Briggs posted an identical patch on the audit mailing record https://mariyahatno957983.aboutyoublog.com/profile