summaryrefslogtreecommitdiff
path: root/xserver/include
diff options
context:
space:
mode:
authorMatthieu Herrb <matthieu@cvs.openbsd.org>2020-04-20 18:17:27 +0000
committerMatthieu Herrb <matthieu@cvs.openbsd.org>2020-04-20 18:17:27 +0000
commit77fc86c297e6ee423f9838615c17e346912879bf (patch)
treeb00efd47e78cd884b0b16a434621a5bbac68df93 /xserver/include
parent763b12e1f8f7bd67ca6492c5e39091d0b8ad251b (diff)
Release unused filedescriptors in the privileged X server process.
There is no reason to keep /dev/pci* and /dev/ttyC* open in this process. pointed to by deraadt. ok kettenis@ deraadt@
Diffstat (limited to 'xserver/include')
-rw-r--r--xserver/include/os.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/xserver/include/os.h b/xserver/include/os.h
index 0cf9b9fa8..d4f0ba2cd 100644
--- a/xserver/include/os.h
+++ b/xserver/include/os.h
@@ -314,6 +314,8 @@ extern _X_EXPORT int
ChownLock(uid_t, gid_t);
extern _X_EXPORT int
priv_open_device(const char *);
+extern _X_EXPORT void
+priv_vendor_init(void);
#endif
extern _X_EXPORT int