c - Reconstructing "flags" argument to mmap call -
one of arguments mmap
flags
. extent possible reconstruct flags used information in /proc/self/maps
?
see details on /proc/self/maps
in this question.
some ideas (actually not full answer):
map_private
,map_shared
flags may determined permissions columnmap_anonymous
determined empty path- some flags (probably
map_hugetlb
,map_locked
) may determined/proc/self/smaps
- some flags
map_fixed
(probablymap_32bit
,map_uninitialized
) not saved anywhere aftermmap()
returns - some flags (
map_nonblock
,map_noreserve
,map_populate
) stored somewhere, don't think they're accessible through/proc
hth
Comments
Post a Comment