Date: Sun, 19 May 2013 23:30:24 +0000 (UTC) From: Pawel Jakub Dawidek <pjd@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r250818 - head/sys/kern Message-ID: <201305192330.r4JNUOvA091707@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: pjd Date: Sun May 19 23:30:24 2013 New Revision: 250818 URL: http://svnweb.freebsd.org/changeset/base/250818 Log: Style nits. Modified: head/sys/kern/kern_priv.c Modified: head/sys/kern/kern_priv.c ============================================================================== --- head/sys/kern/kern_priv.c Sun May 19 23:29:22 2013 (r250817) +++ head/sys/kern/kern_priv.c Sun May 19 23:30:24 2013 (r250818) @@ -52,7 +52,7 @@ __FBSDID("$FreeBSD$"); * uid 0 is offered no special privilege in the kernel security policy. * Setting it to zero may seriously impact the functionality of many existing * userland programs, and should not be done without careful consideration of - * the consequences. + * the consequences. */ static int suser_enabled = 1; SYSCTL_INT(_security_bsd, OID_AUTO, suser_enabled, CTLFLAG_RW, @@ -104,10 +104,10 @@ priv_check_cred(struct ucred *cred, int * mlockall(2)/munlockall(2). */ switch (priv) { - case PRIV_VM_MLOCK: - case PRIV_VM_MUNLOCK: - error = 0; - goto out; + case PRIV_VM_MLOCK: + case PRIV_VM_MUNLOCK: + error = 0; + goto out; } } @@ -132,7 +132,6 @@ priv_check_cred(struct ucred *cred, int goto out; } break; - default: if (cred->cr_uid == 0) { error = 0;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201305192330.r4JNUOvA091707>