the getenv("LD_PRELOAD")/strstr("libumockdev-preload") sounds easier/cheaper then :-)