Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1672827
| Path | csiph.com!news.freedyn.net!open-news-network.org!aioe.org!bofh.it!news.nic.it!robomod |
|---|---|
| From | Kees Cook <keescook@chromium.org> |
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH v2] Moved module init-functions into the module. |
| Date | Thu, 22 Jun 2017 19:00:02 +0200 |
| Message-ID | <tVdCy-7lD-9@gated-at.bofh.it> (permalink) |
| References | <tV5Ym-2e1-25@gated-at.bofh.it> <tVdCy-7lD-11@gated-at.bofh.it> |
| X-Original-To | Casey Schaufler <casey@schaufler-ca.com> |
| Dkim-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=L6+rRLBKQCSlDEIyROAVSBb8b+kbXEjrwvPFPzucMFQ=; b=LbY00/seItOI8JpBKFQiirwBvr0VLY5A9SN7VA48gd0SFxlmd0v+GwGbOcQNMZZeVb lvFD8KVjT/KiR0gEL2PC3sVAqAlkBgodfzPDSYOiiIYrFLt29omiCvMhb3CEV4GHPSq1 oMi2GzicpcHSGwwP1GvySY/4geC55MkGSNNYtQFspoomGfS+GXQ/d6hgxjoARzwtFUIk HHwMrx5GtdX8mi/MzX0QgDNh+AIVbv+2PxCzBx82Gpd7UCX2EJvfCg3g+zHxVnOsKdxG WeApT3UMD9SMpZhfVY3nHOl8dteO7eI07bTuRIWNwYVWFiUFgJf2gPz07I+jtIYneZPr SOZw== |
| Dkim-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=L6+rRLBKQCSlDEIyROAVSBb8b+kbXEjrwvPFPzucMFQ=; b=VN3PqD0fM7P3wethM/CwticZPIV70bBJMMR/LpXnD7WrZk7oYleLedEvtDsAlrJ4oe idzgULXzorj2R4ewtSMoGEmn+mMoMJ9xgC/Rwsn3R+UjILr9KDUSo1Hy1/RCuG7YmFwr flZ9Kheu0Xba+2FVutWUM4cS2CK9rejg07SnA= |
| X-Google-Dkim-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=L6+rRLBKQCSlDEIyROAVSBb8b+kbXEjrwvPFPzucMFQ=; b=VhElVnuPjt3sUTubVmOxzDVm/EMKzKC2AZeABD9q13Q+M1UZWbshDSYfM8Srn6u09o BO5V+wRaRIfrrtnBqzSaEooABBelmPPdq4B0D/y6wK9TG70i4TRv/pxj/JlNdWmU79lI BjCN7xafvCvO3t5zMbzGZYuXNBTDdbGnTrSEPwfphdWrdEVaRX7JNzKf0Sybo31qPJn5 sMtZUYWR3/YathbQzzj2cFNbAim5ncRrSoR1iF4UPpyfDS0vhxxWU6nxHZ0YD4D2ahwP JyyRbKCDJf/7kqSlXAXw4HtbHLoey1hbdKJcX6POHthsuAA3rvvyWnEx0SaRsnFrk/AN oj2w== |
| X-Gm-Message-State | AKS2vOwkAKhDweCmL7Q94C8mfTyyPiJ4r0muuIhPIZpqF+/T31I0KqX7 a8axQ8bxH3vf8Al2Y+wiICdsyU6MFS0R |
| X-Received | by 10.36.111.142 with SMTP id x136mr2972544itb.20.1498150571196; Thu, 22 Jun 2017 09:56:11 -0700 (PDT) |
| MIME-Version | 1.0 |
| X-Google-Sender-Auth | llRlzDQaIE8SzlAvR_dG_T2JeJU |
| Content-Type | text/plain; charset="UTF-8" |
| Sender | robomod@news.nic.it |
| List-ID | <linux-kernel.vger.kernel.org> |
| X-Mailing-List | linux-kernel@vger.kernel.org |
| Approved | robomod@news.nic.it |
| Lines | 27 |
| Organization | linux.* mail to news gateway |
| X-Original-Cc | Steve Kemp <steve@steve.fi>, linux-security-module <linux-security-module@vger.kernel.org>, LKML <linux-kernel@vger.kernel.org>, James Morris <james.l.morris@oracle.com>, "Serge E. Hallyn" <serge@hallyn.com> |
| X-Original-Date | Thu, 22 Jun 2017 09:56:10 -0700 |
| X-Original-Message-ID | <CAGXu5jJb8vc3Og7Mk2LUYvnJT2tZ4_W3MRPetJWtUEpAGZupXg@mail.gmail.com> |
| X-Original-References | <20170622084507.GA4025@steve.org.uk> <589cbc78-2256-2334-e907-2e440f99b612@schaufler-ca.com> |
| X-Original-Sender | linux-kernel-owner@vger.kernel.org |
| Xref | csiph.com linux.kernel:1672827 |
Show key headers only | View raw
On Thu, Jun 22, 2017 at 9:54 AM, Casey Schaufler <casey@schaufler-ca.com> wrote: > On 6/22/2017 1:45 AM, Steve Kemp wrote: >> This commit moves the call to initialize the LSM modules inline >> into the LSM-files themselves. >> >> This removes the need to hunt around for the setup, which was >> something that bit me when I wrote my own (unrelated) LSM. >> >> Keeping LSM code in one place, including the setup of the >> hooks seems like a sane choice. > > The module initialization code belongs in the module. > The LSM infrastructure should have an absolute minimum > of module specific information. I would rather see the > "minor" modules (yama, loadpin) changed to use the module > registration scheme used by the "major" modules, but that > will require a mechanism to ensure module ordering, and > we don't have that yet. No, don't do this. Yeah, I agree: initialization order is important here and I don't want to depend on the Makefile for this. -Kees -- Kees Cook Pixel Security
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH v2] Moved module init-functions into the module. Steve Kemp <steve@steve.fi> - 2017-06-22 10:50 +0200
Re: [PATCH v2] Moved module init-functions into the module. Kees Cook <keescook@chromium.org> - 2017-06-22 19:00 +0200
Re: [PATCH v2] Moved module init-functions into the module. Steve Kemp <steve@steve.fi> - 2017-06-22 19:30 +0200
Re: [PATCH v2] Moved module init-functions into the module. Casey Schaufler <casey@schaufler-ca.com> - 2017-06-22 19:00 +0200
csiph-web