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 male Briggs posted an analogous patch on the audit mailing list https://ztndz.com/story19894411/d-smoove-secrets