This is the mail archive of the systemtap@sourceware.org mailing list for the systemtap project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: ERROR: The effective user ID of staprun must be set to the root user.


Roland McGrath wrote:
> Check the Uid: and Cap*: lines in /proc/PID/status for the process
> at each step.  Compare with your small test program.

On f9 (2.6.27.5-41.fc9.x86_64), where this works as desired, I see this:

- 1st staprun:
Uid:	5183	0	0	0
CapInh:	0000000000000000
CapPrm:	ffffffffffffffff
CapEff:	ffffffffffffffff
CapBnd:	ffffffffffffffff
- stapio:
Uid:	5183	5183	5183	5183
CapInh:	0000000000000000
CapPrm:	0000000000000000
CapEff:	0000000000000000
CapBnd:	ffffffffffffffff
- 2nd staprun:
Uid:	5183	0	0	0
CapInh:	0000000000000000
CapPrm:	ffffffffffffffff
CapEff:	ffffffffffffffff
CapBnd:	ffffffffffffffff

Note that the 1st staprun output and the 2nd staprun output are the
same, which is how it should be.

On rawhide (2.6.29-0.18.rc0.git9.fc11.x86_64), where I see the problem,
I see this:

- 1st staprun:
Uid:	5183	0	0	0
CapInh:	0000000000000000
CapPrm:	ffffffffffffffff
CapEff:	ffffffffffffffff
CapBnd:	ffffffffffffffff
- stapio:
Uid:	5183	5183	5183	5183
CapInh:	0000000000000000
CapPrm:	0000000000000000
CapEff:	0000000000000000
CapBnd:	ffffffffffffffff
- 2nd staprun:
Uid:	5183	5183	5183	5183
CapInh:	0000000000000000
CapPrm:	0000000000000000
CapEff:	0000000000000000
CapBnd:	ffffffffffffffff

As you can see, the 2nd staprun's uid/cap output looks like the setuid
permissions of staprun didn't take effect for some unknown reason.

I've done the same thing as the above with my little test program on my
rawhide system, and the output looks just like the (correct) f9 output
shown above.

> Try booting with "no_file_caps" (I really don't know the stuff
> that disables, but it's something).

I've done this, but it didn't make any noticeable difference.

-- 
David Smith
dsmith@redhat.com
Red Hat
http://www.redhat.com
256.217.0141 (direct)
256.837.0057 (fax)


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]