From owner-svn-src-all@FreeBSD.ORG Mon Feb 17 15:33:21 2014 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id CA6C7F78; Mon, 17 Feb 2014 15:33:21 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id B466F1E0F; Mon, 17 Feb 2014 15:33:21 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.8/8.14.8) with ESMTP id s1HFXLW4013585; Mon, 17 Feb 2014 15:33:21 GMT (envelope-from eadler@svn.freebsd.org) Received: (from eadler@localhost) by svn.freebsd.org (8.14.8/8.14.8/Submit) id s1HFXL6S013584; Mon, 17 Feb 2014 15:33:21 GMT (envelope-from eadler@svn.freebsd.org) Message-Id: <201402171533.s1HFXL6S013584@svn.freebsd.org> From: Eitan Adler Date: Mon, 17 Feb 2014 15:33:21 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r262066 - head/sys/dev/sound/pcm X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 17 Feb 2014 15:33:21 -0000 Author: eadler Date: Mon Feb 17 15:33:21 2014 New Revision: 262066 URL: http://svnweb.freebsd.org/changeset/base/262066 Log: pcm(4): Permit non-root users to change default unit Discussed with: mav Modified: head/sys/dev/sound/pcm/sound.c Modified: head/sys/dev/sound/pcm/sound.c ============================================================================== --- head/sys/dev/sound/pcm/sound.c Mon Feb 17 15:32:08 2014 (r262065) +++ head/sys/dev/sound/pcm/sound.c Mon Feb 17 15:33:21 2014 (r262066) @@ -448,8 +448,10 @@ sysctl_hw_snd_default_unit(SYSCTL_HANDLE 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)