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 30aba6656f61 ("namei: allow restricted O_CREAT of FIFOs and regular files").
Showing the changes to include/linux (1 of 4 files). Show all
Unified · Split
| @@ -156,7 +156,8 @@ extern void audit_log_d_path(struct audit_buffer *ab, · 155 unmodified lines | ||
| 156 | 156 | const struct path *path); |
| 157 | 157 | extern void audit_log_key(struct audit_buffer *ab, |
| 158 | 158 | char *key); |
| 159 | −extern void audit_log_link_denied(const char *operation); | |
| 159 | +extern void audit_log_path_denied(int type, | |
| 160 | + const char *operation); | |
| 160 | 161 | extern void audit_log_lost(const char *message); |
| 161 | 162 | |
| 162 | 163 | extern int audit_log_task_context(struct audit_buffer *ab); |
| @@ -217,7 +218,7 @@ static inline void audit_log_d_path(struct audit_buffer *ab, · 54 unmodified lines | ||
| 217 | 218 | { } |
| 218 | 219 | static inline void audit_log_key(struct audit_buffer *ab, char *key) |
| 219 | 220 | { } |
| 220 | −static inline void audit_log_link_denied(const char *string) | |
| 221 | +static inline void audit_log_path_denied(int type, const char *operation) | |
| 221 | 222 | { } |
| 222 | 223 | static inline int audit_log_task_context(struct audit_buffer *ab) |
| 223 | 224 | { |