--- udev-030/tdb/tdb.c.cloexec 2004-07-09 13:59:10.000000000 -0400 +++ udev-030/tdb/tdb.c 2004-07-21 11:40:50.876714715 -0400 @@ -1736,6 +1736,12 @@ goto fail; /* errno set by open(2) */ } + /* + Close file when execing another process. + Prevents SELinux access errors. + */ + fcntl(tdb->fd, F_SETFD, FD_CLOEXEC); + /* ensure there is only one process initialising at once */ if (tdb_brlock(tdb, GLOBAL_LOCK, F_WRLCK, F_SETLKW, 0) == -1) { TDB_LOG((tdb, 0, "tdb_open_ex: failed to get global lock on %s: %s\n",