lkml.org 
[lkml]   [2021]   [Jun]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH v8 3/5] selftests/sgx: Dump enclave memory map
From
Date
On 6/11/21 3:45 PM, Shuah Khan wrote:
>>
>>   @@ -167,6 +169,18 @@ FIXTURE_SETUP(enclave)
>>       memset(&self->run, 0, sizeof(self->run));
>>       self->run.tcs = self->encl.encl_base;
>>   +    maps_file = fopen("/proc/self/maps", "r");
>
> I almost applied these. Does this require root access, if so,
> please add logic to skip the test if non-root user runs it.
>
> Same comments for all other paths that might require root access.

This specifically doesn't require root. Anything can read its own
/proc/self/maps file.

\
 
 \ /
  Last update: 2021-06-12 02:36    [W:0.091 / U:0.120 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site