Date: Thu, 18 Feb 1999 17:32:45 -0800 From: "Christopher G. Mann" <r3cgm@cdrom.com> To: "Kenneth D. Merry" <ken@plutotech.com> Cc: freebsd-scsi@freebsd.org Subject: Re: Unusual CAM Error w/FreeBSD 3.1 (tosha) Message-ID: <19990218173245.C7822@cdrom.com> In-Reply-To: <199902190052.RAA05099@panzer.plutotech.com>; from Kenneth D. Merry on Thu, Feb 18, 1999 at 05:52:30PM -0700 References: <19990218164554.B7822@cdrom.com> <199902190052.RAA05099@panzer.plutotech.com>
index | next in thread | previous in thread | raw e-mail
Arg!
%ls -l tosha
-rwsr-xr-x 1 bin bin 21304 Feb 18 03:07 tosha
%chmod 755 tosha
%ls -l tosha
-rwxr-xr-x 1 bin bin 21304 Feb 18 03:07 tosha
%./tosha -i
Device: /dev/cd0c -- "PIONEER" "CD-ROM DR-U16S" "1.01"
track playing start end raw size mp3 size # of track
number time sector sector in bytes 128 kbps frames type
---------------------------------------------------------------------
1 1:08'50 0 5149 12112800 1099501 2629 audio
2 4:30'71 5150 25470 47794992 4335981 10373 audio
3 6:23'47 25471 54242 67671744 6138861 14686 audio
4 6:16'68 54243 82510 66486336 6031341 14429 audio
5 5:20'68 82511 106578 56607936 5135341 12285 audio
6 6:04'34 106579 133912 64289568 5832088 13952 audio
7 4:39'41 133913 154878 49312032 4473581 10702 audio
8 7:45'59 154879 189812 82164768 7453421 17831 audio
9 7:32'22 189813 223734 79784544 7237528 17315 audio
10 10:10'59 223735 269543 107742768 9773421 23382 audio
---------------------------------------------------------------------
total 59:53'69 269544 sectors 633967488 57586311 137580
%chmod 4755 tosha
%./tosha -i
tosha: cam_lookup_pass: couldn't open /dev/xpt0
cam_lookup_pass: Permission denied
[beacon : r3cgm] ~ - tosha -i
tosha: cam_lookup_pass: couldn't open /dev/xpt0
cam_lookup_pass: Permission denied
What the heck? Well, my problem appears to be partially solved, but I'm
not so certain the answer helps the "cause" much. I can't seem to run
"tosha -i" as a normal user without getting the CAM error, and I can't
seem to suid the utility as root to get around it.
Thoughts?
: ----------------------------- Kenneth D. Merry
: Christopher G. Mann wrote...
: > : Can you try the following:
: > :
: > : camcontrol devlist
: > : camcontrol tur -n cd -u 0 -v
: > :
: > : Do you have your securelevel set to anything non-standard? (i.e., have you
: > : set the kern.securelevel sysctl variable at all?)
: > :
: > : As far as I can tell, there's nothing in the XPT device open routine that
: > : could return EACCES (i.e. Permission denied).
: > :
: > : Hopefully the camcontrol commands above will help us diagnose the problem a
: > : little more...
: > :
: > : Ken
: > : --
: > : Kenneth Merry
: > : ken@plutotech.com
: >
: > %camcontrol devlist
: > < > at scbus-1 target -1 lun -1 (xpt0)
: > <IBM DORS-32160W WA0A> at scbus0 target 0 lun 0 (pass0,da0)
: > <SEAGATE ST15150N 0023> at scbus0 target 1 lun 0 (pass1,da1)
: > <PIONEER CD-ROM DR-U16S 1.01> at scbus0 target 2 lun 0 (pass2,cd0)
: > <NEC CD-ROM DRIVE:501 2.2> at scbus0 target 4 lun 0 (pass3,cd1)
: > <CONNER CFP2105S 2.14GB 2D4D> at scbus0 target 6 lun 0 (pass4,da2)
: > < > at scbus0 target -1 lun -1 ()
: > %camcontrol tur -n cd -u 0 -v
: > Unit is ready
: >
: > I haven't tickled the securelevel settings at all.
:
: We're getting somewhere now, but this is still very odd. Your xpt device
: is obviously working properly, otherwise you would get no output from
: camcontrol devlist.
:
: Just for grins, could you try disabling the setuid bit on tosha, and then
: running tosha -i as root?
:
: Ken
: --
: Kenneth Merry
: ken@plutotech.com
--
Christopher G. Mann - IT Manager, Webmaster
Walnut Creek CDROM (www.cdrom.com)
The FreeBSD Mall (www.freebsdmall.com)
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-scsi" in the body of the message
help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19990218173245.C7822>
