diff options
author | eadler <eadler@FreeBSD.org> | 2014-02-17 15:33:21 +0000 |
---|---|---|
committer | eadler <eadler@FreeBSD.org> | 2014-02-17 15:33:21 +0000 |
commit | 1f817e386c252eef2d6bc2933a1c061991fb0de8 (patch) | |
tree | 1fa28ebc7a01df1a8d563d10356ff4b72b916e75 | |
parent | 69dcdaba95331e3eff9bc2902722799d3d74b809 (diff) | |
download | FreeBSD-src-1f817e386c252eef2d6bc2933a1c061991fb0de8.zip FreeBSD-src-1f817e386c252eef2d6bc2933a1c061991fb0de8.tar.gz |
pcm(4): Permit non-root users to change default unit
Discussed with: mav
-rw-r--r-- | sys/dev/sound/pcm/sound.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/dev/sound/pcm/sound.c b/sys/dev/sound/pcm/sound.c index c7ce732..a7edad5 100644 --- a/sys/dev/sound/pcm/sound.c +++ b/sys/dev/sound/pcm/sound.c @@ -448,8 +448,10 @@ sysctl_hw_snd_default_unit(SYSCTL_HANDLER_ARGS) return (error); } /* XXX: do we need a way to let the user change the default unit? */ -SYSCTL_PROC(_hw_snd, OID_AUTO, default_unit, CTLTYPE_INT | CTLFLAG_RW, - 0, sizeof(int), sysctl_hw_snd_default_unit, "I", "default sound device"); +SYSCTL_PROC(_hw_snd, OID_AUTO, default_unit, + CTLTYPE_INT | CTLFLAG_RW | CTLFLAG_ANYBODY, + 0, sizeof(int), sysctl_hw_snd_default_unit, "I", + "default sound device"); static int sysctl_hw_snd_maxautovchans(SYSCTL_HANDLER_ARGS) |