diff options
author | Matthieu Herrb <matthieu@cvs.openbsd.org> | 2020-04-20 18:17:27 +0000 |
---|---|---|
committer | Matthieu Herrb <matthieu@cvs.openbsd.org> | 2020-04-20 18:17:27 +0000 |
commit | 77fc86c297e6ee423f9838615c17e346912879bf (patch) | |
tree | b00efd47e78cd884b0b16a434621a5bbac68df93 /xserver/include | |
parent | 763b12e1f8f7bd67ca6492c5e39091d0b8ad251b (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.h | 2 |
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 |