From patchwork Sun Apr 1 08:42:08 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sargun Dhillon X-Patchwork-Id: 10319089 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 5B9A260532 for ; Sun, 1 Apr 2018 08:42:19 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4249D29006 for ; Sun, 1 Apr 2018 08:42:19 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 36B052914E; Sun, 1 Apr 2018 08:42:19 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 14AD729006 for ; Sun, 1 Apr 2018 08:42:17 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751430AbeDAImM (ORCPT ); Sun, 1 Apr 2018 04:42:12 -0400 Received: from mail-it0-f65.google.com ([209.85.214.65]:54261 "EHLO mail-it0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751406AbeDAImL (ORCPT ); Sun, 1 Apr 2018 04:42:11 -0400 Received: by mail-it0-f65.google.com with SMTP id m134-v6so15897654itb.3 for ; Sun, 01 Apr 2018 01:42:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sargun.me; s=google; h=date:from:to:cc:subject:message-id:mime-version:content-disposition :user-agent; bh=NKwTyhPlPXrF3n7nPZAw6sYuDrqnfRg8828LnZtGgFc=; b=tlg+I0S12c8dimtlvrZj0KC0SZGwc/Jjo8qWsx8xhyvw5jlC/PZaqZ/MYnT2hN/++Q 464t34ooXdCbFe4EHbpVWCEbPNUeeEVGxaEHrjO/DSmp4HsecAJ9rxDcvPF2D7gLT3zQ mUXnXOimR2QuEzixaElEtNB1Ezh/QCWySRYK0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:mime-version :content-disposition:user-agent; bh=NKwTyhPlPXrF3n7nPZAw6sYuDrqnfRg8828LnZtGgFc=; b=Igek9VS2JGKrJWCrN5lnede3jtEIhdhyfoyUFGXrZg83l51QOIlEPzmMPwsuVvExZJ JlSLsLASyK/+XL1AtqBqSFzOTwWIfW0+Au/4t4aywLYsYWlcyf8QTuS4VPmH0mMhzVYi gVKMGpygbtYi7a+l+cbB5XRkS68XH2caMizrh2pRQhvn1z0mjzlHDHipdrjiQLMJb6+t WoksWLm83Yfpx+R3G28ItbwoBNm8hcI8f6vo2T9NBRz9fTs1utzrgJc/jWQRs0AnalCZ 4bQgUyEzDW0Uf88k2EGRwAROUM2eqxD+XvKPgdfJkBakDXyCJkY7eUCDsv77a0r9fklJ Qv9Q== X-Gm-Message-State: ALQs6tCQTC+ZT+CXqTGdf3ULrMNS5pUL3ay/0pmm8tm9ur5LF2rWt2n9 Q14p8nDSYU9mC2GyR5MtGA5NnpZzouw= X-Google-Smtp-Source: AIpwx4+SFJHR2BdVEy35b57IELBbJpHQUrTaxoMoteWxHSm8QpVE+lA1jQuZNKKJrzDdxPn54aTWww== X-Received: by 2002:a24:17c4:: with SMTP id 187-v6mr8803897ith.144.1522572130479; Sun, 01 Apr 2018 01:42:10 -0700 (PDT) Received: from ircssh-2.c.rugged-nimbus-611.internal (80.60.198.104.bc.googleusercontent.com. [104.198.60.80]) by smtp.gmail.com with ESMTPSA id f201-v6sm4224994itc.12.2018.04.01.01.42.09 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 01 Apr 2018 01:42:09 -0700 (PDT) Date: Sun, 1 Apr 2018 08:42:08 +0000 From: Sargun Dhillon To: linux-security-module@vger.kernel.org, linux-kernel@vger.kernel.org Cc: penguin-kernel@i-love.sakura.ne.jp, casey@schaufler-ca.com, jmorris@namei.org Subject: [PATCH] security: remove security_settime Message-ID: <20180401084205.GA14512@ircssh-2.c.rugged-nimbus-611.internal> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.24 (2015-08-30) Sender: owner-linux-security-module@vger.kernel.org Precedence: bulk List-ID: X-Virus-Scanned: ClamAV using ClamSMTP 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 --- include/linux/security.h | 14 -------------- 1 file changed, 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); int security_quota_on(struct dentry *dentry); int security_syslog(int type); int security_settime64(const struct timespec64 *ts, const struct timezone *tz); -static inline int security_settime(const struct timespec *ts, const struct timezone *tz) -{ - struct timespec64 ts64 = timespec_to_timespec64(*ts); - - return security_settime64(&ts64, tz); -} int security_vm_enough_memory_mm(struct mm_struct *mm, long pages); int security_bprm_set_creds(struct linux_binprm *bprm); int security_bprm_check(struct linux_binprm *bprm); @@ -509,14 +503,6 @@ static inline int security_settime64(const struct timespec64 *ts, return cap_settime(ts, tz); } -static inline int security_settime(const struct timespec *ts, - const struct timezone *tz) -{ - struct timespec64 ts64 = timespec_to_timespec64(*ts); - - return cap_settime(&ts64, tz); -} - static inline int security_vm_enough_memory_mm(struct mm_struct *mm, long pages) { return __vm_enough_memory(mm, pages, cap_vm_enough_memory(mm, pages));