use MALLOC_PERTURB_ ... or lose

Alexander Boström abo at root.snowtree.se
Sat May 8 08:58:35 UTC 2010


ons 2010-05-05 klockan 17:30 +0200 skrev Jim Meyering:

> I propose (seriously, now) to add this to /etc/profile,
> or to some always-sourced file like /etc/profile.d/glibc.sh:
> 
>     # Enable glibc's malloc perturbing feature in Rawhide.
>     # http://udrepper.livejournal.com/11429.html
>     read _f _r _n _code_name < /etc/redhat-release &&
>     case $_code_name in
>         *Rawhide*) export MALLOC_PERTURB_=$((RANDOM % 255 + 1)) ;;
>     esac

I think the file you're looking for is /etc/system-release or
perhaps /etc/system-release-cpe.

/Alexander




More information about the devel mailing list