Using close on exec in tdb

simo idra at samba.org
Mon Sep 24 19:31:46 GMT 2007


It seem we don;t set close on exec on tdb files despite the fact that we
do fork+exec in many case (preexec, root prexec, various scripts and
commands we launch).

The attached patch would set close on exec on every tdb we use in samba
and utilities.

As far as I know there is no case where we rely on an executed process
to inherit tdb file descriptors.

If this is ok I'd like to apply this patch to all trees.

Simo.

-- 
Simo Sorce
Samba Team GPL Compliance Officer
email: idra at samba.org
http://samba.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: tdb-close-on-exec.patch
Type: text/x-patch
Size: 765 bytes
Desc: not available
Url : http://lists.samba.org/archive/samba-technical/attachments/20070924/a370969c/tdb-close-on-exec.bin


More information about the samba-technical mailing list