git: Revert "libnvmm: Fix mmap() failure with 'permission denied'"

Aaron LI aly at crater.dragonflybsd.org
Tue Jul 20 16:30:30 PDT 2021


commit ec2ba06409873bb923872be7ec143cd627de1698
Author: Aaron LI <aly at aaronly.me>
Date:   Sat Jul 3 23:10:56 2021 +0800

    Revert "libnvmm: Fix mmap() failure with 'permission denied'"
    
    Because libnvmm no longer calls mmap() to map the VCPU comm page, revert
    to the original code to distinguish root owner (open '/dev/nvmm' with
    O_WRONLY) vs. non-root owner (open with O_RDONLY).

Summary of changes:
 lib/libnvmm/libnvmm.c       | 20 ++++++++++++++++----
 sys/dev/virtual/nvmm/nvmm.c |  5 ++---
 2 files changed, 18 insertions(+), 7 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/ec2ba06409873bb923872be7ec143cd627de1698


-- 
DragonFly BSD source repository


More information about the Commits mailing list