Received: by 10.213.65.68 with SMTP id h4csp1289625imn; Sun, 1 Apr 2018 01:45:43 -0700 (PDT) X-Google-Smtp-Source: AIpwx48osuhXimE+/C3Xf7PiAeibH6tO0VSOV7dG5eqh22d2t2Q9gGJ0QZARzPeTTDEIQpPGdPhm X-Received: by 10.99.56.8 with SMTP id f8mr3538839pga.374.1522572343900; Sun, 01 Apr 2018 01:45:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522572343; cv=none; d=google.com; s=arc-20160816; b=c98C2XcjHRgSk1fjTDFeEx4M/7HjZaVgBPm1UpF5rmZf3a9hD5jex/N5YOy3A/0o/J r1ucleBR7nCpBclNwjQYAS16K8vbfD3oc6N0oCtgj1JVK3/zDJLr3NPTSCUzoebRcBAu vmSICODufDISCPrhJ9hRQkooHyVTF6kALjn4zrzEKU/bGqSJPkAtM2TIbgivgDeQ1IPU ZA1owW+MhJER4Ejcr2FQww+O/2ljKBFs33nq4Ptt22+b7xPD1jY7uxz6Z3OXRgARrEv/ CpZgno2Jr4LC4z1Jg01DZRhyNBuDyXc2a1ol2ido8rCaMXSaP853SKZOfxL26NAkWncr cAaQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:content-disposition :mime-version:message-id:subject:cc:to:from:date:dkim-signature :arc-authentication-results; bh=NKwTyhPlPXrF3n7nPZAw6sYuDrqnfRg8828LnZtGgFc=; b=iIDtQavWMD8EoBByzx6+jN0U4sDvB7fIb3CStBVnuOU4c0iKV72FV6clEr61ITjW/A zG9HWgcqct+Il8qI7TLw8cKEPlbCX/82Z2BnMfoU+sKEatJwnAIGTtvFsegXKoSbvkU+ K2rmAY3Xsd/Ie0lyiLpgZaBlN2kiYuDTF4OlVwwSyC5ufWsctW6e/OVYXDDU8ucz0hRu dt961lOeLdPrSsQD1YTxf7TbIkCHEh5CXDDtpdcO0ULNChuUKEk56zqhwB5See+QwD7W qNZtCjAPi6UxY451tMIRwu2taxTtux/d7Oq7iEWv2wiq0XPfbSODfaN2a07HgquzBJgQ hG/w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sargun.me header.s=google header.b=tlg+I0S1; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 3-v6si7951989plm.735.2018.04.01.01.45.00; Sun, 01 Apr 2018 01:45:43 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@sargun.me header.s=google header.b=tlg+I0S1; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751740AbeDAImM (ORCPT + 99 others); Sun, 1 Apr 2018 04:42:12 -0400 Received: from mail-it0-f66.google.com ([209.85.214.66]:54781 "EHLO mail-it0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751386AbeDAImL (ORCPT ); Sun, 1 Apr 2018 04:42:11 -0400 Received: by mail-it0-f66.google.com with SMTP id h143-v6so15891010ita.4 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=ZV7yCww2lLldOYciavM9ZRGFQEmxmP7lYL0S1LsEFHSzxSe7j2eUv2jybdge1365nY j20ptMFCVMr1gCh4Q3uuaogL9bXiSF3oUj+fGJCKUITpYbwacg6l8yymAPgsuT4K7HBH xL8iNcrqqX0HB8IlSJoEpweJD/DkYf/ysmt6cYXbc1sIuP8QoJi0C6otklieqvmNL0zm wckFdBc9gxNtUHCBUDXFxLOp1mTu17xkiBz5dOxUFL5/PWZ4Xh/iobosM66Eux1HlpxI ufjlOY9vZuYRQymL1G5RfFWdOLKQCiySPl+jvO5WVaWs4lennQGnkog+w0XY9neqf5ub swbw== X-Gm-Message-State: ALQs6tBZ9Cpg57LIzfDScEIJD3XKJn+OT1Nd81446ApknW6TVkTkJfwS svA1sqd7+Q6FY4yayCQixO9CYGDoLWI= 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-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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)); -- 2.14.1