Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date: Sun, 8 Sep 2019 17:16:23 -0700 (PDT)
From: James Morris <>
To: Mickaël Salaün <>
cc:, Aleksa Sarai <>,
        Alexei Starovoitov <>, Al Viro <>,
        Andy Lutomirski <>,
        Christian Heimes <>,
        Daniel Borkmann <>,
        Eric Chiang <>,
        Florian Weimer <>, Jan Kara <>,
        Jann Horn <>, Jonathan Corbet <>,
        Kees Cook <>, Matthew Garrett <>,
        Matthew Wilcox <>,
        Michael Kerrisk <>,
        Mickaël Salaün <>,
        Mimi Zohar <>,
        Philippe Trébuchet <>,
        Scott Shell <>,
        Sean Christopherson <>,
        Shuah Khan <>, Song Liu <>,
        Steve Dower <>, Steve Grubb <>,
        Thibaut Sautereau <>,
        Vincent Strubel <>,
        Yves-Alexis Perez <>,,,,,
        Mimi Zohar <>
Subject: Re: [PATCH v2 0/5] Add support for O_MAYEXEC

On Fri, 6 Sep 2019, Mickaël Salaün wrote:

> Furthermore, the security policy can also be delegated to an LSM, either
> a MAC system or an integrity system.  For instance, the new kernel
> MAY_OPENEXEC flag closes a major IMA measurement/appraisal interpreter
> integrity gap by bringing the ability to check the use of scripts [2].

To clarify, scripts are already covered by IMA if they're executed 
directly, and the gap is when invoking a script as a parameter to the 
interpreter (and for any sourced files). In that case only the interpreter 
is measured/appraised, unless there's a rule also covering the script 


In theory you could probably also close the gap by modifying the 
interpreters to check for the execute bit on any file opened for 
interpretation (as earlier suggested by Steve Grubb), and then you could 
have IMA measure/appraise all files with +x.  I suspect this could get 
messy in terms of unwanted files being included, and the MAY_OPENEXEC flag 
has cleaner semantics.

James Morris

Powered by blists - more mailing lists

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.