This patch fixes this by utilizing the open_how struct that we store in the audit_context with audit_openat2_how(). Independent of this patch, Richard male Briggs posted an analogous patch into the audit mailing list https://allenlesv569922.activoblog.com/29025718/the-greatest-guide-to-smm-project