Waiting for answer This question has not been answered yet. You can hire a professional tutor to get the answer.
#include lt;sys/mman.hgt; #include lt;sys/types.hgt; #include lt;sys/stat.hgt; #include lt;fcntl.hgt; #include lt;unistd.hgt; #include...
/bin/bash/bin/bash[heap]/lib/x86_64-linux-gnu/libnss_files-2.19.so# Here is one/lib/x86_64-linux-gnu/libnss_files-2.19.so/lib/x86_64-linux-gnu/libnss_files-2.19.so/lib/x86_64-linux-gnu/libnss_nis-2.19.so# Here is another one/lib/x86_64-linux-gnu/libnss_nis-2.19.so# And another/lib/x86_64-linux-gnu/libnsl-2.19.so/lib/x86_64-linux-gnu/libnss_compat-2.19.so# And one more/lib/x86_64-l Finally, again print out the entire contents of /proc/self/maps, which should no longer contain any mappings with "---p" permissions.
For instance, here is a run of my reference implementation on linprog3:
% ./delete-mmaps ====== FILE /proc/self/maps ======/home/faculty/langley/test-read-maps/home/faculty/langley/test-read-maps/lib64/libc-2.20.so/lib64/libc-2.20.so/lib64/libc-2.20.so/lib64/libc-2.20.so 7f0b7e874000-7f0b7e878000 rw-p 00000000 00:00 0 /lib64/ld-2.20.so 7f0b7ea6e000-7f0b7ea71000 rw-p 00000000 00:00 0 7f0b7ea98000-7f0b7ea9a000 rw-p 00000000 00:00 0 /lib64/ld-2.20.so/lib64/ld-2.20.so 7f0b7ea9c000-7f0b7ea9d000 rw-p 00000000 00:00 0 [stack][vvar][vdso][vsyscall] Scanning /proc/self/maps to find mmaps with ---p permissions... Found one at address start = 0x7f0b7e66e000, address end = 0x7f0b7e86e000, length = 2097152, permissions = ---p Attempting to unmap(0x7f0b7e66e000,2097152)... And the return value was 0 ====== FILE /proc/self/maps ======/home/faculty/langley/test-read-maps/home/faculty/langley/test-read-maps[heap]/lib64/libc-2.20.so/lib64/libc-2.20.so/lib64/libc-2.20.so 7f0b7e874000-7f0b7e878000 rw-p 00000000 00:00 0 /lib64/ld-2.20.so 7f0b7ea6e000-7f0b7ea71000 rw-p 00000000 00:00 0 7f0b7ea97000-7f0b7ea9a000 rw-p 00000000 00:00 0 /lib64/ld-2.20.so/lib64/ld-2.20.so 7f0b7ea9c000-7f0b7ea9d000 rw-p 00000000 00:00 0 [stack][vvar][vdso][vsyscall]