Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1678118

Re: [RFC v2 3/9] Creation of "check_vmflags" LSM hook

From Salvatore Mesoraca <s.mesoraca16@gmail.com>
Newsgroups linux.kernel
Subject Re: [RFC v2 3/9] Creation of "check_vmflags" LSM hook
Date 2017-06-29 21:30 +0200
Message-ID <tXNix-3bX-1@gated-at.bofh.it> (permalink)
References <tSG81-4QO-7@gated-at.bofh.it> <tSG82-4QO-29@gated-at.bofh.it> <tX7Mm-7kb-31@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


2017-06-28 1:05 GMT+02:00 Kees Cook <keescook@chromium.org>:
> On Thu, Jun 15, 2017 at 9:42 AM, Salvatore Mesoraca
> <s.mesoraca16@gmail.com> wrote:
>> Creation of a new LSM hook to check if a given configuration of vmflags,
>> for a new memory allocation request, should be allowed or not.
>> It's placed in "do_mmap", "do_brk_flags" and "__install_special_mapping".
>
> I like this. I think this is something the other LSMs should be
> checking too. (Though I wonder if it would be helpful to include the
> VMA in the hook, though it does exist yet, so... hmm.)

For the particular case of my LSM and the type of check it does, the VMA
isn't needed, of course.
Maybe some other LSM can benefit from it, but it depends on what they
want to do with this hook.
Looking forward to feedback from potential future users.
Thank you for your interest.

Salvatore

Back to linux.kernel | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

Re: [RFC v2 3/9] Creation of "check_vmflags" LSM hook Kees Cook <keescook@chromium.org> - 2017-06-28 01:10 +0200
  Re: [RFC v2 3/9] Creation of "check_vmflags" LSM hook Salvatore Mesoraca <s.mesoraca16@gmail.com> - 2017-06-29 21:30 +0200

csiph-web