Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Wed, 9 Oct 2002 16:11:11 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Wed, 9 Oct 2002 16:11:11 -0400 Received: from blueberrysolutions.com ([195.165.170.195]:11413 "EHLO blueberrysolutions.com") by vger.kernel.org with ESMTP id ; Wed, 9 Oct 2002 16:11:10 -0400 Date: Wed, 9 Oct 2002 23:16:44 +0300 (EEST) From: Tony Glader X-X-Sender: teg@blueberrysolutions.com To: Chris Wright cc: linux-kernel@vger.kernel.org Subject: Re: capable()-function In-Reply-To: <20021009121615.B25392@figure1.int.wirex.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=ISO-8859-1 Content-Transfer-Encoding: 8BIT Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 644 Lines: 22 On Wed, 9 Oct 2002, Chris Wright wrote: > You could dump something like this before the capable() call: > > printk(KERN_DEBUG "%s:(%d) eff: 0x%x\n", current->comm, current->pid, > cap_t(current->cap_effective)); Ok. I got following result: ??:(12290) eff: 0x0 Is the eff-value current capabilities? Why it is zero? The task who called it (cardmgr) was owned by root. -- * Tony Glader - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/