Bonjour,
J'ai essai de reéimplémenter la fonction id pour tester LD_PRELOAD avec une bibliothèque dynamique *.so
(ps : otool -L ne me donne pas ma bibliotheque)
J'ai tester ce tuto : http://tlrobinson.net/blog/2007/12/...-mac-os-x-the-easy-way-dyld_insert_libraries/
Mais ca ne fonctionne pas
J'ai essai de reéimplémenter la fonction id pour tester LD_PRELOAD avec une bibliothèque dynamique *.so
mais ca ne marche pas sous macOS ou bien j'ai mal fait ?int getuid() { return(0); }
int geteuid() { return(0); }
int getgid() { return(0); }
int getegid() { return(0); }
(ps : otool -L ne me donne pas ma bibliotheque)
J'ai tester ce tuto : http://tlrobinson.net/blog/2007/12/...-mac-os-x-the-easy-way-dyld_insert_libraries/
Mais ca ne fonctionne pas