summaryrefslogtreecommitdiff
path: root/udev/lib/libudev-private.h
diff options
context:
space:
mode:
authorAlan Jenkins <alan-jenkins@tuffmail.co.uk>2009-04-06 10:18:41 +0100
committerKay Sievers <kay.sievers@vrfy.org>2009-04-06 07:23:35 -0700
commit4b09a2fc4383f191d96a8d6134b95a4b84aef931 (patch)
treed1e4d4d29a4e147b296de120aa3ec5ddccd59517 /udev/lib/libudev-private.h
parent52761bb0a99cb80ccb19c9edf23963fdad67060d (diff)
avoid leaking netlink socket fd to external programs
The netlink socket is now used by udev event processes. We should take care not to pass it to the programs they execute. This is the same way the inotify fd was handled. Signed-off-by: Alan Jenkins <alan-jenkins@tuffmail.co.uk>
Diffstat (limited to 'udev/lib/libudev-private.h')
-rw-r--r--udev/lib/libudev-private.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/udev/lib/libudev-private.h b/udev/lib/libudev-private.h
index c7b74a4218..1e47d51080 100644
--- a/udev/lib/libudev-private.h
+++ b/udev/lib/libudev-private.h
@@ -172,4 +172,5 @@ extern size_t util_strlcat(char *dst, const char *src, size_t size);
extern int udev_util_replace_whitespace(const char *str, char *to, size_t len);
extern int udev_util_replace_chars(char *str, const char *white);
extern int udev_util_encode_string(const char *str, char *str_enc, size_t len);
+extern void util_set_fd_cloexec(int fd);
#endif