Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp4992358imu; Tue, 29 Jan 2019 10:55:32 -0800 (PST) X-Google-Smtp-Source: ALg8bN5X4B4X2TNr2lq3PBNa3cgIt1u+1aLhpqTSe7ObLFNn1PWJ6Xbz+2HK8PO+KtYNtZHcXn8c X-Received: by 2002:a17:902:28e6:: with SMTP id f93mr26908927plb.239.1548788132398; Tue, 29 Jan 2019 10:55:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548788132; cv=none; d=google.com; s=arc-20160816; b=L5Q+p3a5xdwo4SkdLwcEDaLp4O/gB3Iip5ve5XtN62VdeiHbT4od5bVkS+KvkeLoyW ZTMyBSjZqnwMbmdnkEyfg4Gp/Ox9drGdwUJ65sz0TAKObFmFwYcYyfzys8j8leD4FKw8 vQt9wcbb3lL5FqCGlFD+605JFp01jV09KpcP1heemFnueqOmtrzI7ay8z9Q4HlM44zHG CyY0txZ58ZHNjTvaB5FnvR2ZZKUo9kZh3ydJoRYG125OuCZwNtzGNySF4qKitj2/O8G6 vkS5byiDu+2qqc9QWV/CuDFmhS8s3uqlMKHIUCFvcOWCTVNSoT2Zegy9bhtSkcsLwuDR iBsQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:from:subject:references :mime-version:message-id:in-reply-to:date:dkim-signature; bh=G0epUqFu3AmCTsfTCZBWyuwLgZxvATnBae8HP0ixIfc=; b=Z2goZdwGBzNBtHhHe0SQIvia9XrgIuoptyVAE1BjGdqYvA9GFNuqOitoKvEz/qml5u c3mSvgjibigoX+6wi8YJ+XWpPe3q46t+bZtbF3pYZcZZrXjaaFkG+DsoIkGtG/SiuGg0 2X42QjgzJgEGvOcZmPDt9BR78OguFvLNGJS7ezdEtygAr9STDmUtnxd87KXZjA7x/zRU xLlWu6EKJ4Cd1k9IsV77LCJF5AkICQPjsL8vFaJrRiExwunxSCt37oX6CBVO9dTbhYnJ /EQeChKv/tKJQaZxhkGEOTl5We4Lwv2MrXqHnrIJwHWuVdHAgFuTs4Cp7KcdEPwr9cYH oztQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=MlUozkQM; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 35si2875367pgn.278.2019.01.29.10.55.16; Tue, 29 Jan 2019 10:55:32 -0800 (PST) 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=@chromium.org header.s=google header.b=MlUozkQM; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729310AbfA2Sya (ORCPT + 99 others); Tue, 29 Jan 2019 13:54:30 -0500 Received: from mail-yb1-f197.google.com ([209.85.219.197]:35923 "EHLO mail-yb1-f197.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727229AbfA2Sy3 (ORCPT ); Tue, 29 Jan 2019 13:54:29 -0500 Received: by mail-yb1-f197.google.com with SMTP id 63so5413932ybf.3 for ; Tue, 29 Jan 2019 10:54:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=date:in-reply-to:message-id:mime-version:references:subject:from:to :cc; bh=G0epUqFu3AmCTsfTCZBWyuwLgZxvATnBae8HP0ixIfc=; b=MlUozkQMHxb5n/jPhkS4DTcTd4VsaPbttFo5x9eWIG8pksOUrzuTaW5m3iXV/mtKf/ Y+9hTZdImQ2UdWUsejIhnp0zgbQ/Kp6z55CLpGu4Qc9zI+8hQXt7d9EgBJBfGmLDdRrV 5jqbFq7ZYI3mp9uzYqL/v3dhYRegKkXLCNxvE= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:in-reply-to:message-id:mime-version :references:subject:from:to:cc; bh=G0epUqFu3AmCTsfTCZBWyuwLgZxvATnBae8HP0ixIfc=; b=moMS5jUpE57e9zvguG+gGq4Z2AeNQ6HihNXzy/vpUklaQbeDAR3Bkc5bXqApUQ7GYU 7PjZMlJtYwSf93x5AUWd9EcDCUGrkRdsH1TGUYsU71Fh9SLv4U2UUm52L5pTX1oMg72G VtM8aV4ZYoT/yEQGS1t6mMFQlcXxOhBmtfpLGhkI593ccK6r5ToWRssYx0fS8RGtwamP yGktq4WMDXUMK67iJJoeqSHErN5d60yWWrlepg7k5DG3LSvZyfyFR+h5G/yMy1mrprTj ZIduUnFLAsnwrBcG8hj9Hc8WrwM/3sRzhJaGuIjc27n4XIvA5qCrkce+AUj/VvfBtgcN 33nQ== X-Gm-Message-State: AHQUAuZL4jttqR3A60vwoAkYwPT9vQ8sH/1dCqQ3msyU+vvrs4T1Hmg1 0QmNZyTDiYp2R9kJscGOBf2fSEMHF6fThKj9 X-Received: by 2002:a25:ca11:: with SMTP id a17mr2633199ybg.43.1548788068983; Tue, 29 Jan 2019 10:54:28 -0800 (PST) Date: Tue, 29 Jan 2019 10:54:24 -0800 In-Reply-To: Message-Id: <20190129185424.251139-1-mortonm@chromium.org> Mime-Version: 1.0 References: X-Mailer: git-send-email 2.20.1.495.gaa96b0ce6b-goog Subject: [PATCH] LSM: SafeSetID: 'depend' on CONFIG_SECURITY From: mortonm@chromium.org To: rdunlap@infradead.org, sfr@canb.auug.org.au, linux-next@vger.kernel.org, linux-kernel@vger.kernel.org, linux-security-module@vger.kernel.org Cc: Micah Morton Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Micah Morton This patch changes the Kconfig file for the SafeSetID LSM to depend on CONFIG_SECURITY as well as select CONFIG_SECURITYFS, since the policies for the LSM are configured through writing to securityfs. Signed-off-by: Micah Morton --- security/safesetid/Kconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/security/safesetid/Kconfig b/security/safesetid/Kconfig index bf89a47ffcc8..4f415c4e3f93 100644 --- a/security/safesetid/Kconfig +++ b/security/safesetid/Kconfig @@ -1,5 +1,7 @@ config SECURITY_SAFESETID bool "Gate setid transitions to limit CAP_SET{U/G}ID capabilities" + depends on SECURITY + select SECURITYFS default n help SafeSetID is an LSM module that gates the setid family of syscalls to -- 2.20.1.495.gaa96b0ce6b-goog