From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754131AbdK1Tc6 (ORCPT ); Tue, 28 Nov 2017 14:32:58 -0500 Received: from imap.thunk.org ([74.207.234.97]:38092 "EHLO imap.thunk.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753787AbdK1Tc4 (ORCPT ); Tue, 28 Nov 2017 14:32:56 -0500 Date: Tue, 28 Nov 2017 14:32:43 -0500 From: "Theodore Ts'o" To: Geo Kozey Cc: Linus Torvalds , Djalal Harouni , Kees Cook , James Morris , Linux Kernel Mailing List , LSM List , "kernel-hardening@lists.openwall.com" , Jonathan Corbet Subject: Re: [kernel-hardening] Re: [PATCH v5 next 5/5] net: modules: use request_module_cap() to load 'netdev-%s' modules Message-ID: <20171128193243.4fymnjk7fplqw62x@thunk.org> Mail-Followup-To: Theodore Ts'o , Geo Kozey , Linus Torvalds , Djalal Harouni , Kees Cook , James Morris , Linux Kernel Mailing List , LSM List , "kernel-hardening@lists.openwall.com" , Jonathan Corbet References: <1511803118-2552-1-git-send-email-tixxdz@gmail.com> <1511803118-2552-6-git-send-email-tixxdz@gmail.com> <1100603534.56586.1511871419952@ichabod.co-bxl> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1100603534.56586.1511871419952@ichabod.co-bxl> User-Agent: NeoMutt/20170609 (1.8.3) X-SA-Exim-Connect-IP: X-SA-Exim-Mail-From: tytso@thunk.org X-SA-Exim-Scanned: No (on imap.thunk.org); SAEximRunCond expanded to false Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Nov 28, 2017 at 01:16:59PM +0100, Geo Kozey wrote: > > Userspace can be configured in a way which is compatible with those > changes being on the same as it can be configured to work with > selinux. That means on distro level or sysadmin level it's a > valuable tool. It's better than nothing and it's better than using > some out-of-tree patches instead. Switching one sysctl would make > their life easier. If *selinux* can opt-in to something more stringent, such that when you upgrade to a new version of selinux which enables something which breaks all modules unless you set up the rules corretly, I don't see a problem with it. It might force distributions not to go to the latest version of SELinux because users get cranky when their systems get broken, but for people like me, who *still* don't use SELinux because every few years, i try to enable on my development laptop running Debian, watch ***far*** too much stuff break. and then turn it off again. So tieing it to SELinux (as far as I am concerned) reduces it to a previously unsolved problem. :-) But that's different from opting it on by default for non-SELinux users. To which I can only say, "Please, No." - Ted