From: Chris Wright <chris@wirex.com>
To: Tony Glader <Tony.Glader@blueberrysolutions.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: capable()-function
Date: Wed, 9 Oct 2002 11:22:54 -0700 [thread overview]
Message-ID: <20021009112254.A25393@figure1.int.wirex.com> (raw)
In-Reply-To: <Pine.LNX.4.44.0210091046230.30467-100000@blueberrysolutions.com>; from Tony.Glader@blueberrysolutions.com on Wed, Oct 09, 2002 at 10:51:50AM +0300
* Tony Glader (Tony.Glader@blueberrysolutions.com) wrote:
> Hi!
>
> I was investigating problems with PCMCIA and found that
> capable(CAP_SYS_ADMIN) returns always false in my case. If I'm calling
> capable(CAP_SYS_ADMIN) as root - shouldn't it return true? What could
> cause this? I'm using RH 8.0 and src-rpm of 2.4.18-14 kernel.
Well, it will return true if you _have_ CAP_SYS_ADMIN capability.
Typically root has all effective capabilities (except CAP_SETPCAP).
You can check your effective capabilities in /proc/[pid]/status.
I doubt your system can't get a process with CAP_SYS_ADMIN, you'd have
trouble mounting filesystems, etc...
thanks,
-chris
--
Linux Security Modules http://lsm.immunix.org http://lsm.bkbits.net
next prev parent reply other threads:[~2002-10-09 18:25 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-10-09 7:51 capable()-function Tony Glader
2002-10-09 18:22 ` Chris Wright [this message]
2002-10-09 18:39 ` capable()-function Tony Glader
2002-10-09 19:08 ` capable()-function Chris Wright
2002-10-09 19:19 ` capable()-function Tony Glader
2002-10-09 19:16 ` capable()-function Chris Wright
2002-10-09 20:16 ` capable()-function Tony Glader
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20021009112254.A25393@figure1.int.wirex.com \
--to=chris@wirex.com \
--cc=Tony.Glader@blueberrysolutions.com \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®