On 03.01.2012, at 19:08, Fabio Erculiani wrote: > Or just using linux_binprm->filename with basename()
No, that'd be wrong since argv[0] can be different from the actual file name. Also it can be the full path or not depending on what the initiator defined. Alex