Browse Source

Create /dev/audio* and /dev/rmidi* with mode 0660 and owned by

root:_sndiod. Stop creating unused /dev/mixer* devices.
suggested by and ok deraadt
OPENBSD_6_7
ratchov 4 years ago
parent
commit
abbb0753f7
1 changed files with 4 additions and 6 deletions
  1. +4
    -6
      src/etc/MAKEDEV.common

+ 4
- 6
src/etc/MAKEDEV.common View File

@ -1,4 +1,4 @@
vers(a, {-$OpenBSD: MAKEDEV.common,v 1.109 2020/01/23 02:47:29 dlg Exp $-})dnl
vers(a, {-$OpenBSD: MAKEDEV.common,v 1.110 2020/04/18 21:28:35 ratchov Exp $-})dnl
dnl dnl
dnl Copyright (c) 2001-2006 Todd T. Fries <todd@OpenBSD.org> dnl Copyright (c) 2001-2006 Todd T. Fries <todd@OpenBSD.org>
dnl dnl
@ -424,10 +424,8 @@ _mkdev(acpi, acpi*, {-M acpi c major_acpi_c 0 644-})dnl
__devitem(pctr, pctr*, PC Performance Tuning Register access device)dnl __devitem(pctr, pctr*, PC Performance Tuning Register access device)dnl
_mkdev(pctr, pctr, {-M pctr c major_pctr_c 0 644-})dnl _mkdev(pctr, pctr, {-M pctr c major_pctr_c 0 644-})dnl
__devitem(au, audio*, Audio devices,audio)dnl __devitem(au, audio*, Audio devices,audio)dnl
_mkdev(au, audio*, {-M audio$U c major_au_c $U
M mixer$U c major_au_c Add($U, 16)
M audioctl$U c major_au_c Add($U, 192)
MKlist[${#MKlist[*]}]=";[ -e mixer ] || ln -s mixer$U mixer"-})dnl
_mkdev(au, audio*, {-M audio$U c major_au_c $U 660 _sndiop
M audioctl$U c major_au_c Add($U, 192) 660 _sndiop-})dnl
__devitem(vi, video*, Video V4L2 devices,video)dnl __devitem(vi, video*, Video V4L2 devices,video)dnl
_mkdev(vi, video*, {-M video$U c major_vi_c $U 600 _mkdev(vi, video*, {-M video$U c major_vi_c $U 600
MKlist[${#MKlist[*]}]=";[ -e video ] || ln -s video$U video"-})dnl MKlist[${#MKlist[*]}]=";[ -e video ] || ln -s video$U video"-})dnl
@ -503,7 +501,7 @@ _mkdev(bpp, {-bpp*-}, {-M bpp$U c major_bpp_c $U 600-}, 600)dnl
__devitem(vscsi, vscsi*, Virtual SCSI controller, vscsi 4)dnl __devitem(vscsi, vscsi*, Virtual SCSI controller, vscsi 4)dnl
_mcdev(vscsi, vscsi*, vscsi, {-major_vscsi_c-}, 600)dnl _mcdev(vscsi, vscsi*, vscsi, {-major_vscsi_c-}, 600)dnl
__devitem(rmidi, rmidi*, Raw MIDI devices,midi)dnl __devitem(rmidi, rmidi*, Raw MIDI devices,midi)dnl
_mcdev(rmidi, rmidi*, rmidi, {-major_rmidi_c-}, 666)dnl
_mcdev(rmidi, rmidi*, rmidi, {-major_rmidi_c-}, 660 _sndiop)dnl
__devitem(diskmap, diskmap, Disk mapper, diskmap)dnl __devitem(diskmap, diskmap, Disk mapper, diskmap)dnl
_mkdev(diskmap, diskmap, {-M diskmap c major_diskmap_c 0 640 operator-})dnl _mkdev(diskmap, diskmap, {-M diskmap c major_diskmap_c 0 640 operator-})dnl
__devitem(pppx, pppx*, PPP Multiplexer, pppx 4)dnl __devitem(pppx, pppx*, PPP Multiplexer, pppx 4)dnl


Loading…
Cancel
Save