From: Petr Vandrovec <vandrove@vc.cvut.cz>
To: Bartlomiej Zolnierkiewicz <B.Zolnierkiewicz@elka.pw.edu.pl>
Cc: Zwane Mwaikambo <zwane@linux.realnet.co.sz>,
Martin Dalecki <dalecki@evision-ventures.com>,
alex@ssi.bg, Linux Kernel <linux-kernel@vger.kernel.org>
Subject: HDIO_GETGEO accessibility (was Re: [PATCH] 2.5.24 IDE 95 (fwd))
Date: Sun, 30 Jun 2002 21:49:20 +0200 [thread overview]
Message-ID: <20020630194920.GC3778@ppc.vc.cvut.cz> (raw)
In-Reply-To: <Pine.SOL.4.30.0206301848370.26714-200000@mion.elka.pw.edu.pl>
On Sun, Jun 30, 2002 at 06:52:58PM +0200, Bartlomiej Zolnierkiewicz wrote:
>
> I hope you dont mind Petr.
No problem.
But I have one, unrelated... Today I found that VMware does not run
on 2.5.24 with rawdisks for non-root users because of ioctl(hdd, HDIO_GETGEO, ...)
is guarded by "if (!capable(CAP_SYS_ADMIN)) return -EACCES;". And so it
fails although user has read-write access to /dev/hdX.
Is this change really intentional? It is GET, not SET operation, and user has
access to /dev/hdX. If this change is intentional, I'll recommend VMware
to gain priviledges around disk geometry accesses, but I do not think that
user should need SYS_ADMIN for retrieving disk geometry.
Thanks,
Petr Vandrovec
vandrove@vc.cvut.cz
next prev parent reply other threads:[~2002-06-30 19:50 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-06-30 16:52 [PATCH] 2.5.24 IDE 95 (fwd) Bartlomiej Zolnierkiewicz
2002-06-30 19:49 ` Petr Vandrovec [this message]
2002-06-30 20:35 ` HDIO_GETGEO accessibility (was Re: [PATCH] 2.5.24 IDE 95 (fwd)) Bartlomiej Zolnierkiewicz
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=20020630194920.GC3778@ppc.vc.cvut.cz \
--to=vandrove@vc.cvut.cz \
--cc=B.Zolnierkiewicz@elka.pw.edu.pl \
--cc=alex@ssi.bg \
--cc=dalecki@evision-ventures.com \
--cc=linux-kernel@vger.kernel.org \
--cc=zwane@linux.realnet.co.sz \
/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®