]> git.baikalelectronics.ru Git - kernel.git/commit
audit: Report suspicious O_CREAT usage
authorKees Cook <keescook@chromium.org>
Wed, 2 Oct 2019 23:41:58 +0000 (16:41 -0700)
committerPaul Moore <paul@paul-moore.com>
Thu, 3 Oct 2019 17:59:29 +0000 (13:59 -0400)
commit8b231472c1e3a3cfa9edea1556af32154a0d1d65
treefb75f332d9a6efdb29749b6c66b28bafa86f33b2
parentf5c4776cd5b591eea4e9be9f421e34f61b98ebb2
audit: Report suspicious O_CREAT usage

This renames the very specific audit_log_link_denied() to
audit_log_path_denied() and adds the AUDIT_* type as an argument. This
allows for the creation of the new AUDIT_ANOM_CREAT that can be used to
report the fifo/regular file creation restrictions that were introduced
in commit 4dcfdf9261ee ("namei: allow restricted O_CREAT of FIFOs and
regular files").

Signed-off-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Paul Moore <paul@paul-moore.com>
fs/namei.c
include/linux/audit.h
include/uapi/linux/audit.h
kernel/audit.c