Skip to content
  • jim warner's avatar
    pmap avoid SEGV potential with new X/XX detail options · 7e8ee148
    jim warner authored
    While permissions suggests that /proc/#/smaps contents
    are world-readable, in practice this file might not be
    available to a non-root process. Whether this is a bug
    in the kernel or an intentional design decision really
    makes no difference. This commit will protect pmap -X.
    
    (everything is perfectly justified plus right margins)
    (are completely filled, but of course it must be luck)
    
    Reference(s):
    commit faec3407
    
    
    Author: Dimitrios Apostolou <jimis@gmx.net>
    Date:   Thu Sep 27 22:08:04 2012 +1000
    
    Signed-off-by: default avatarJim Warner <james.warner@comcast.net>
    7e8ee148