From owner-svn-src-all@FreeBSD.ORG Thu Feb 3 10:37:44 2011 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B926510656A4; Thu, 3 Feb 2011 10:37:44 +0000 (UTC) (envelope-from pjd@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id A8BAB8FC0A; Thu, 3 Feb 2011 10:37:44 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id p13Abirx042609; Thu, 3 Feb 2011 10:37:44 GMT (envelope-from pjd@svn.freebsd.org) Received: (from pjd@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id p13AbiOd042605; Thu, 3 Feb 2011 10:37:44 GMT (envelope-from pjd@svn.freebsd.org) Message-Id: <201102031037.p13AbiOd042605@svn.freebsd.org> From: Pawel Jakub Dawidek Date: Thu, 3 Feb 2011 10:37:44 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r218214 - head/sbin/hastd X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 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: Thu, 03 Feb 2011 10:37:44 -0000 Author: pjd Date: Thu Feb 3 10:37:44 2011 New Revision: 218214 URL: http://svn.freebsd.org/changeset/base/218214 Log: Let the caller log info about successful privilege drop. We don't want to log this in hastctl. MFC after: 1 week Modified: head/sbin/hastd/primary.c head/sbin/hastd/secondary.c head/sbin/hastd/subr.c Modified: head/sbin/hastd/primary.c ============================================================================== --- head/sbin/hastd/primary.c Thu Feb 3 10:29:04 2011 (r218213) +++ head/sbin/hastd/primary.c Thu Feb 3 10:37:44 2011 (r218214) @@ -850,6 +850,7 @@ hastd_primary(struct hast_resource *res) cleanup(res); exit(EX_CONFIG); } + pjdlog_info("Privileges successfully dropped."); /* * Create the guard thread first, so we can handle signals from the Modified: head/sbin/hastd/secondary.c ============================================================================== --- head/sbin/hastd/secondary.c Thu Feb 3 10:29:04 2011 (r218213) +++ head/sbin/hastd/secondary.c Thu Feb 3 10:37:44 2011 (r218214) @@ -414,6 +414,7 @@ hastd_secondary(struct hast_resource *re if (drop_privs() != 0) exit(EX_CONFIG); + pjdlog_info("Privileges successfully dropped."); /* * Create the control thread before sending any event to the parent, Modified: head/sbin/hastd/subr.c ============================================================================== --- head/sbin/hastd/subr.c Thu Feb 3 10:29:04 2011 (r218213) +++ head/sbin/hastd/subr.c Thu Feb 3 10:37:44 2011 (r218214) @@ -184,7 +184,5 @@ drop_privs(void) PJDLOG_VERIFY(getgroups(1, gidset) == 1); PJDLOG_VERIFY(gidset[0] == pw->pw_gid); - pjdlog_info("Privileges successfully dropped."); - return (0); }