From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752600AbdK3OQq (ORCPT ); Thu, 30 Nov 2017 09:16:46 -0500 Received: from imap.thunk.org ([74.207.234.97]:47040 "EHLO imap.thunk.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752493AbdK3OQm (ORCPT ); Thu, 30 Nov 2017 09:16:42 -0500 Date: Thu, 30 Nov 2017 09:16:36 -0500 From: "Theodore Ts'o" To: Djalal Harouni Cc: Daniel Micay , Linus Torvalds , Kees Cook , Jessica Yu , LSM List , Linux Kernel Mailing List , "kernel-hardening@lists.openwall.com" Subject: Re: [kernel-hardening] Re: [PATCH v5 next 5/5] net: modules: use request_module_cap() to load 'netdev-%s' modules Message-ID: <20171130141636.k3oqybwosdogzfgg@thunk.org> Mail-Followup-To: Theodore Ts'o , Djalal Harouni , Daniel Micay , Linus Torvalds , Kees Cook , Jessica Yu , LSM List , Linux Kernel Mailing List , "kernel-hardening@lists.openwall.com" References: <1512024677.1374.168.camel@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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 Thu, Nov 30, 2017 at 09:50:27AM +0100, Djalal Harouni wrote: > In embedded systems we can't maintain a SELinux policy, distro man > power hardly manage. We have abstracted seccomp etc, but the kernel > inherited the difficult multiplex things, plus all other paths that > trigger this..... > Yes, but it is hard to maintain a whitelist policy, the code is hardly > maintained... So this is the part that scares me to death about IOT, and why I tell everyone to ***never*** trust an IOT device on their home network, and ***never*** trust it with anything you don't mind splattered all over the front page of NY Times and RT / Sputnick news. You're saying that you want to use modules (as opposed to compile everything tightly down to just what you need for the embedded system); that the code is "hardly maintained". And yet we're supposed to consider it trustworthy? If that's the case, turning off implicit module loading sounds and thinking that this will somehow be a magic wand sounds.... crazy. - Ted