diff options
author | Sargun Dhillon <sargun@sargun.me> | 2018-04-01 04:42:08 -0400 |
---|---|---|
committer | James Morris <james.morris@microsoft.com> | 2018-04-17 01:18:48 -0400 |
commit | e59644b720aed4b9ec9d3818b483f97376fb31ed (patch) | |
tree | 4727e3c333e4856fcf8ad8ad601effd872b3102d /include/linux/security.h | |
parent | df0ce17331e2501dbffc060041dfc6c5f85227b5 (diff) |
security: remove security_settime
security_settime was a wrapper around security_settime64. There are no more
users of it. Therefore it can be removed. It was removed in:
commit 4eb1bca17933 ("time: Use do_settimeofday64() internally")
Signed-off-by: Sargun Dhillon <sargun@sargun.me>
Signed-off-by: James Morris <james.morris@microsoft.com>
Diffstat (limited to 'include/linux/security.h')
-rw-r--r-- | include/linux/security.h | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/include/linux/security.h b/include/linux/security.h index 3f5fd988ee87..5111fe8159ce 100644 --- a/include/linux/security.h +++ b/include/linux/security.h | |||
@@ -222,12 +222,6 @@ int security_quotactl(int cmds, int type, int id, struct super_block *sb); | |||
222 | int security_quota_on(struct dentry *dentry); | 222 | int security_quota_on(struct dentry *dentry); |
223 | int security_syslog(int type); | 223 | int security_syslog(int type); |
224 | int security_settime64(const struct timespec64 *ts, const struct timezone *tz); | 224 | int security_settime64(const struct timespec64 *ts, const struct timezone *tz); |
225 | static inline int security_settime(const struct timespec *ts, const struct timezone *tz) | ||
226 | { | ||
227 | struct timespec64 ts64 = timespec_to_timespec64(*ts); | ||
228 | |||
229 | return security_settime64(&ts64, tz); | ||
230 | } | ||
231 | int security_vm_enough_memory_mm(struct mm_struct *mm, long pages); | 225 | int security_vm_enough_memory_mm(struct mm_struct *mm, long pages); |
232 | int security_bprm_set_creds(struct linux_binprm *bprm); | 226 | int security_bprm_set_creds(struct linux_binprm *bprm); |
233 | int security_bprm_check(struct linux_binprm *bprm); | 227 | int security_bprm_check(struct linux_binprm *bprm); |
@@ -509,14 +503,6 @@ static inline int security_settime64(const struct timespec64 *ts, | |||
509 | return cap_settime(ts, tz); | 503 | return cap_settime(ts, tz); |
510 | } | 504 | } |
511 | 505 | ||
512 | static inline int security_settime(const struct timespec *ts, | ||
513 | const struct timezone *tz) | ||
514 | { | ||
515 | struct timespec64 ts64 = timespec_to_timespec64(*ts); | ||
516 | |||
517 | return cap_settime(&ts64, tz); | ||
518 | } | ||
519 | |||
520 | static inline int security_vm_enough_memory_mm(struct mm_struct *mm, long pages) | 506 | static inline int security_vm_enough_memory_mm(struct mm_struct *mm, long pages) |
521 | { | 507 | { |
522 | return __vm_enough_memory(mm, pages, cap_vm_enough_memory(mm, pages)); | 508 | return __vm_enough_memory(mm, pages, cap_vm_enough_memory(mm, pages)); |