Segfault in uid_wrapper ?

Andreas Schneider asn at samba.org
Tue Oct 20 13:08:41 UTC 2015


On Monday 19 October 2015 23:02:20 Uri Simchoni wrote:
> Hi,

Hi Uri,
 
> Exec summary - I get a segfault running a samba-tool with uid_wrapper,
> at lib/uid_wrapper/uid_wrapper.c:823, "id" is NULL.

I think this happens if uid wrapper is loaded but UID_WRAPPER=1 is not set. In 
this case 'id' is NULL when forking and we dereference a NULL pointer.

You can try with the following patch ...

https://git.cryptomilk.org/projects/uid_wrapper.git/commit/?h=master-setxid&id=07667b349c7a84329e9c58c6a2de0d907bfde2bd

-- 
Andreas Schneider                   GPG-ID: CC014E3D
Samba Team                             asn at samba.org
www.samba.org



More information about the samba-technical mailing list