summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc Balmer <mbalmer@cvs.openbsd.org>2008-08-28 17:50:22 +0000
committerMarc Balmer <mbalmer@cvs.openbsd.org>2008-08-28 17:50:22 +0000
commit1afe5f75010b9f1d388216d77504fc1e1ddd7d7b (patch)
treeb9a762b7b24cda4596c18e467057b7265b4cfa5c
parent0ec22907c8983baff8641f28eb0ffd223f107300 (diff)
Add /dev/tty04 to the list of devices privilege separated X can open.
(The IBM SurePos 500 has six serial lines and the touch screen is at this device). ok oga@
-rw-r--r--xserver/os/privsep.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/xserver/os/privsep.c b/xserver/os/privsep.c
index e8f617a2b..e175b062d 100644
--- a/xserver/os/privsep.c
+++ b/xserver/os/privsep.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: privsep.c,v 1.9 2008/06/15 00:17:33 matthieu Exp $ */
+/* $OpenBSD: privsep.c,v 1.10 2008/08/28 17:50:21 mbalmer Exp $ */
/*
* Copyright 2001 Niels Provos <provos@citi.umich.edu>
* All rights reserved.
@@ -81,6 +81,7 @@ struct okdev {
{"/dev/tty01", O_RDWR | O_NONBLOCK | O_EXCL},
{"/dev/tty02", O_RDWR | O_NONBLOCK | O_EXCL},
{"/dev/tty03", O_RDWR | O_NONBLOCK | O_EXCL},
+ {"/dev/tty04", O_RDWR | O_NONBLOCK | O_EXCL},
{"/dev/ttya", O_RDWR | O_NONBLOCK | O_EXCL},
{"/dev/ttyb", O_RDWR | O_NONBLOCK | O_EXCL},
{"/dev/ttyc", O_RDWR | O_NONBLOCK | O_EXCL},