diff options
| author | Linus Torvalds <torvalds@linux-foundation.org> | 2017-11-14 17:13:11 -0500 |
|---|---|---|
| committer | Linus Torvalds <torvalds@linux-foundation.org> | 2017-11-14 17:13:11 -0500 |
| commit | f14fc0ccee5521e5b38cdd1df4385d32c6e1805b (patch) | |
| tree | 0d16887967fee217cae343ffebc6666e3fd4265d /include/linux | |
| parent | 23281c8034879c47639ee0f76c34d13ef6beb8ce (diff) | |
| parent | 838bee9e756ec46e9b5be25f9e44388d7e185a2a (diff) | |
Merge branch 'for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jack/linux-fs
Pull quota, ext2, isofs and udf fixes from Jan Kara:
- two small quota error handling fixes
- two isofs fixes for architectures with signed char
- several udf block number overflow and signedness fixes
- ext2 rework of mount option handling to avoid GFP_KERNEL allocation
with spinlock held
- ... it also contains a patch to implement auditing of responses to
fanotify permission events. That should have been in the fanotify
pull request but I mistakenly merged that patch into a wrong branch
and noticed only now at which point I don't think it's worth rebasing
and redoing.
* 'for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jack/linux-fs:
quota: be aware of error from dquot_initialize
quota: fix potential infinite loop
isofs: use unsigned char types consistently
isofs: fix timestamps beyond 2027
udf: Fix some sign-conversion warnings
udf: Fix signed/unsigned format specifiers
udf: Fix 64-bit sign extension issues affecting blocks > 0x7FFFFFFF
udf: Remove some outdate references from documentation
udf: Avoid overflow when session starts at large offset
ext2: Fix possible sleep in atomic during mount option parsing
ext2: Parse mount options into a dedicated structure
audit: Record fanotify access control decisions
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/audit.h | 10 | ||||
| -rw-r--r-- | include/linux/fsnotify_backend.h | 1 |
2 files changed, 11 insertions, 0 deletions
diff --git a/include/linux/audit.h b/include/linux/audit.h index cb708eb8accc..d66220dac364 100644 --- a/include/linux/audit.h +++ b/include/linux/audit.h | |||
| @@ -356,6 +356,7 @@ extern int __audit_log_bprm_fcaps(struct linux_binprm *bprm, | |||
| 356 | extern void __audit_log_capset(const struct cred *new, const struct cred *old); | 356 | extern void __audit_log_capset(const struct cred *new, const struct cred *old); |
| 357 | extern void __audit_mmap_fd(int fd, int flags); | 357 | extern void __audit_mmap_fd(int fd, int flags); |
| 358 | extern void __audit_log_kern_module(char *name); | 358 | extern void __audit_log_kern_module(char *name); |
| 359 | extern void __audit_fanotify(unsigned int response); | ||
| 359 | 360 | ||
| 360 | static inline void audit_ipc_obj(struct kern_ipc_perm *ipcp) | 361 | static inline void audit_ipc_obj(struct kern_ipc_perm *ipcp) |
| 361 | { | 362 | { |
| @@ -452,6 +453,12 @@ static inline void audit_log_kern_module(char *name) | |||
| 452 | __audit_log_kern_module(name); | 453 | __audit_log_kern_module(name); |
| 453 | } | 454 | } |
| 454 | 455 | ||
| 456 | static inline void audit_fanotify(unsigned int response) | ||
| 457 | { | ||
| 458 | if (!audit_dummy_context()) | ||
| 459 | __audit_fanotify(response); | ||
| 460 | } | ||
| 461 | |||
| 455 | extern int audit_n_rules; | 462 | extern int audit_n_rules; |
| 456 | extern int audit_signals; | 463 | extern int audit_signals; |
| 457 | #else /* CONFIG_AUDITSYSCALL */ | 464 | #else /* CONFIG_AUDITSYSCALL */ |
| @@ -568,6 +575,9 @@ static inline void audit_log_kern_module(char *name) | |||
| 568 | { | 575 | { |
| 569 | } | 576 | } |
| 570 | 577 | ||
| 578 | static inline void audit_fanotify(unsigned int response) | ||
| 579 | { } | ||
| 580 | |||
| 571 | static inline void audit_ptrace(struct task_struct *t) | 581 | static inline void audit_ptrace(struct task_struct *t) |
| 572 | { } | 582 | { } |
| 573 | #define audit_n_rules 0 | 583 | #define audit_n_rules 0 |
diff --git a/include/linux/fsnotify_backend.h b/include/linux/fsnotify_backend.h index de1b0c8e46ad..067d52e95f02 100644 --- a/include/linux/fsnotify_backend.h +++ b/include/linux/fsnotify_backend.h | |||
| @@ -190,6 +190,7 @@ struct fsnotify_group { | |||
| 190 | int f_flags; | 190 | int f_flags; |
| 191 | unsigned int max_marks; | 191 | unsigned int max_marks; |
| 192 | struct user_struct *user; | 192 | struct user_struct *user; |
| 193 | bool audit; | ||
| 193 | } fanotify_data; | 194 | } fanotify_data; |
| 194 | #endif /* CONFIG_FANOTIFY */ | 195 | #endif /* CONFIG_FANOTIFY */ |
| 195 | }; | 196 | }; |
