summaryrefslogtreecommitdiffstats
path: root/sys/dev/sio
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>1996-03-27 20:03:32 +0000
committerbde <bde@FreeBSD.org>1996-03-27 20:03:32 +0000
commitc8f7ae16bfb95052dbb07726f863b09798ca2967 (patch)
tree2e736e5a8b82c1f7b2baf8cda82ce7705dc29bdc /sys/dev/sio
parent5d47fb52e7a61932a6b76671a5f4cd5ed4a2179b (diff)
downloadFreeBSD-src-c8f7ae16bfb95052dbb07726f863b09798ca2967.zip
FreeBSD-src-c8f7ae16bfb95052dbb07726f863b09798ca2967.tar.gz
Fixed ownerships of callout devices.
Diffstat (limited to 'sys/dev/sio')
-rw-r--r--sys/dev/sio/sio.c22
1 files changed, 13 insertions, 9 deletions
diff --git a/sys/dev/sio/sio.c b/sys/dev/sio/sio.c
index f6bf0c5..35b6715 100644
--- a/sys/dev/sio/sio.c
+++ b/sys/dev/sio/sio.c
@@ -31,7 +31,7 @@
* SUCH DAMAGE.
*
* from: @(#)com.c 7.5 (Berkeley) 5/16/91
- * $Id: sio.c,v 1.134 1996/01/25 07:21:36 phk Exp $
+ * $Id: sio.c,v 1.135 1996/02/25 21:10:54 bde Exp $
*/
#include "sio.h"
@@ -1055,19 +1055,23 @@ determined_type: ;
#ifdef DEVFS
/* devsw, minor, type, uid, gid, perm, fmt, ... */
com->devfs_token_ttyd = devfs_add_devswf(&sio_cdevsw,
- unit, DV_CHR, 0, 0, 0600, "ttyd%n", unit);
+ unit, DV_CHR,
+ UID_ROOT, GID_WHEEL, 0600, "ttyd%n", unit);
com->devfs_token_ttyi = devfs_add_devswf(&sio_cdevsw,
- unit | CONTROL_INIT_STATE, DV_CHR, 0, 0, 0600, "ttyid%n", unit);
+ unit | CONTROL_INIT_STATE, DV_CHR,
+ UID_ROOT, GID_WHEEL, 0600, "ttyid%n", unit);
com->devfs_token_ttyl = devfs_add_devswf(&sio_cdevsw,
- unit | CONTROL_LOCK_STATE, DV_CHR, 0, 0, 0600, "ttyld%n", unit);
+ unit | CONTROL_LOCK_STATE, DV_CHR,
+ UID_ROOT, GID_WHEEL, 0600, "ttyld%n", unit);
com->devfs_token_cuaa = devfs_add_devswf(&sio_cdevsw,
- unit | CALLOUT_MASK, DV_CHR, 0, 0, 0660, "cuaa%n", unit);
+ unit | CALLOUT_MASK, DV_CHR,
+ UID_UUCP, GID_DIALER, 0660, "cuaa%n", unit);
com->devfs_token_cuai = devfs_add_devswf(&sio_cdevsw,
- unit | CALLOUT_MASK | CONTROL_INIT_STATE, DV_CHR, 0, 0, 0660,
- "cuaia%n", unit);
+ unit | CALLOUT_MASK | CONTROL_INIT_STATE, DV_CHR,
+ UID_UUCP, GID_DIALER, 0660, "cuaia%n", unit);
com->devfs_token_cual = devfs_add_devswf(&sio_cdevsw,
- unit | CALLOUT_MASK | CONTROL_LOCK_STATE, DV_CHR, 0, 0, 0660,
- "cuala%n", unit);
+ unit | CALLOUT_MASK | CONTROL_LOCK_STATE, DV_CHR,
+ UID_UUCP, GID_DIALER, 0660, "cuala%n", unit);
#endif
return (1);
}
OpenPOWER on IntegriCloud