diff options
author | harald@redhat.com <harald@redhat.com> | 2004-10-06 00:54:08 -0700 |
---|---|---|
committer | Greg KH <gregkh@suse.de> | 2005-04-26 21:37:03 -0700 |
commit | 6e3e3c3416864eca74cb885f64c453eb531eed63 (patch) | |
tree | b467f72775c46db6b8a208a61236027fce422e6a /udevd.c | |
parent | c8fa2d8b413f7cf1ab42d1c35865952649bfccad (diff) |
[PATCH] PATCH udev close on exec
selinux wants a clean fd set, so better close all open fds
Diffstat (limited to 'udevd.c')
-rw-r--r-- | udevd.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -477,6 +477,8 @@ int main(int argc, char *argv[]) exit(1); } + set_cloexec_flag(ssock, 1); + /* the bind takes care of ensuring only one copy running */ retval = bind(ssock, (struct sockaddr *) &saddr, addrlen); if (retval < 0) { |