git: 457750da86f1 - stable/13 - snd_uaudio(4): Loosen up the USB MIDI permissions.

From: Hans Petter Selasky <hselasky_at_FreeBSD.org>
Date: Fri, 07 Jan 2022 13:30:55 UTC
The branch stable/13 has been updated by hselasky:

URL: https://cgit.FreeBSD.org/src/commit/?id=457750da86f17598be135b3cc706f4275560749d

commit 457750da86f17598be135b3cc706f4275560749d
Author:     Hans Petter Selasky <hselasky@FreeBSD.org>
AuthorDate: 2021-12-17 10:52:00 +0000
Commit:     Hans Petter Selasky <hselasky@FreeBSD.org>
CommitDate: 2022-01-07 13:23:26 +0000

    snd_uaudio(4): Loosen up the USB MIDI permissions.
    
    This makes USB MIDI more userfriendly for desktop users.
    
    PR:             260489
    Sponsored by:   NVIDIA Networking
    
    (cherry picked from commit 2fcd7d380ba103060d43d6d01c1af6bb95819504)
---
 sys/dev/sound/usb/uaudio.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sys/dev/sound/usb/uaudio.c b/sys/dev/sound/usb/uaudio.c
index bc5b0d04c020..9f2708abcd0f 100644
--- a/sys/dev/sound/usb/uaudio.c
+++ b/sys/dev/sound/usb/uaudio.c
@@ -6021,7 +6021,7 @@ umidi_probe(device_t dev)
 		error = usb_fifo_attach(sc->sc_udev, chan, &chan->mtx,
 		    &umidi_fifo_methods, &sub->fifo, unit, n,
 		    chan->iface_index,
-		    UID_ROOT, GID_OPERATOR, 0644);
+		    UID_ROOT, GID_OPERATOR, 0666);
 		if (error) {
 			goto detach;
 		}