From patchwork Fri Dec 24 05:12:58 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mi Jinlong X-Patchwork-Id: 431741 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id oBO58jCA022227 for ; Fri, 24 Dec 2010 05:10:33 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750964Ab0LXFIc (ORCPT ); Fri, 24 Dec 2010 00:08:32 -0500 Received: from cn.fujitsu.com ([222.73.24.84]:64703 "EHLO song.cn.fujitsu.com" rhost-flags-OK-FAIL-OK-OK) by vger.kernel.org with ESMTP id S1750902Ab0LXFIb (ORCPT ); Fri, 24 Dec 2010 00:08:31 -0500 Received: from tang.cn.fujitsu.com (tang.cn.fujitsu.com [10.167.250.3]) by song.cn.fujitsu.com (Postfix) with ESMTP id 21AC0170CB4; Fri, 24 Dec 2010 13:08:29 +0800 (CST) Received: from mailserver.fnst.cn.fujitus.com (tang.cn.fujitsu.com [127.0.0.1]) by tang.cn.fujitsu.com (8.14.3/8.13.1) with ESMTP id oBO53XWH015700; Fri, 24 Dec 2010 13:03:33 +0800 Received: from [127.0.0.1] ([10.167.225.24]) by mailserver.fnst.cn.fujitus.com (Lotus Domino Release 8.5.1FP4) with ESMTP id 2010122413082089-41592 ; Fri, 24 Dec 2010 13:08:20 +0800 Message-ID: <4D142BDA.6080809@cn.fujitsu.com> Date: Fri, 24 Dec 2010 13:12:58 +0800 From: Mi Jinlong User-Agent: Thunderbird 2.0.0.9 (Windows/20071031) MIME-Version: 1.0 To: Steve Dickson CC: NFSv3 list Subject: [PATCH] libnsm.a: modify return value to false from 0 at nsm_drop_privileges() X-MIMETrack: Itemize by SMTP Server on mailserver/fnst(Release 8.5.1FP4|July 25, 2010) at 2010-12-24 13:08:20, Serialize by Router on mailserver/fnst(Release 8.5.1FP4|July 25, 2010) at 2010-12-24 13:08:21, Serialize complete at 2010-12-24 13:08:21 Sender: linux-nfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter1.kernel.org [140.211.167.41]); Fri, 24 Dec 2010 05:10:34 +0000 (UTC) diff --git a/support/nsm/file.c b/support/nsm/file.c index e21c7d4..98b47bf 100644 --- a/support/nsm/file.c +++ b/support/nsm/file.c @@ -421,7 +421,7 @@ nsm_drop_privileges(const int pidfd) */ if (prctl(PR_SET_KEEPCAPS, 1, 0, 0, 0) == -1) { xlog(L_ERROR, "prctl(PR_SET_KEEPCAPS) failed: %m"); - return 0; + return false; } if (setgroups(0, NULL) == -1) {