From: "Michał Górny" <mgorny@gentoo.org>
To: gentoo-dev@lists.gentoo.org
Cc: ssuominen@gentoo.org
Subject: Re: [gentoo-dev] useless set*id binaries
Date: Sat, 28 Jan 2012 09:32:27 +0100 [thread overview]
Message-ID: <20120128093227.14d208f4@pomiocik.lan> (raw)
In-Reply-To: <4F234A61.3020409@gentoo.org>
[-- Attachment #1: Type: text/plain, Size: 1405 bytes --]
On Sat, 28 Jan 2012 03:07:45 +0200
Samuli Suominen <ssuominen@gentoo.org> wrote:
> On 01/28/2012 02:41 AM, Mike Frysinger wrote:
> > On Friday 27 January 2012 19:18:07 Samuli Suominen wrote:
> >> On 01/28/2012 02:14 AM, Mike Frysinger wrote:
> >>> along these lines, why is cdrtools set*id ? if we have a "cdrom"
> >>> group, and we assign our cdroms/dvdroms to that group, then we
> >>> already have access control in place and can skip the set*id.
> >>
> >> cdrtools can't probe the drives without the binary being setuid,
> >> or the user belonging to the 'disk' group (and even that is not
> >> enough in some cases if the permissions vary)
> >
> > the drives are owned by the "cdrom" group and have group +rw. so
> > if the user is in the "cdrom" group, why can't they probe the
> > drives ?
> >
> > "disk" owns the non-removable hard drives.
> >
> > $ ls -l /dev/sr0 /dev/sg0 /dev/sg6
> > crw-rw---- 1 root disk 21, 0 Jan 6 23:07 /dev/sg0
> > crw-rw---- 1 root cdrom 21, 6 Jan 6 23:07 /dev/sg6
> > brw-rw---- 1 root cdrom 11, 0 Jan 17 22:28 /dev/sr0
> > -mike
>
> i dont know why, but it does probe also non-removable disks... it
> probes per bus, iirc
>
> you can try it easily yourself:
>
> ssuominen@null ~ $ cdrecord -scanbus
Does user actually need to be able to do this? Doesn't passing dev=...
directly work?
--
Best regards,
Michał Górny
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 316 bytes --]
next prev parent reply other threads:[~2012-01-28 8:32 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-01-28 0:14 [gentoo-dev] useless set*id binaries Mike Frysinger
2012-01-28 0:18 ` Samuli Suominen
2012-01-28 0:41 ` Mike Frysinger
2012-01-28 1:07 ` Samuli Suominen
2012-01-28 1:49 ` Mike Frysinger
2012-01-28 1:49 ` Samuli Suominen
2012-01-28 2:14 ` Mike Frysinger
2012-01-28 6:28 ` Ulrich Mueller
2012-01-28 7:19 ` Samuli Suominen
2012-01-28 8:15 ` Ulrich Mueller
2012-01-28 8:32 ` Michał Górny [this message]
2012-01-28 8:35 ` Samuli Suominen
2012-01-28 1:28 ` Chí-Thanh Christopher Nguyễn
2012-01-28 1:54 ` Mike Frysinger
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=20120128093227.14d208f4@pomiocik.lan \
--to=mgorny@gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
--cc=ssuominen@gentoo.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