Re: [PATCH v8 3/5] selftests/sgx: Dump enclave memory map

From: Dave Hansen
Date: Fri Jun 11 2021 - 20:36:17 EST


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.