From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11997 invoked by alias); 8 Jan 2009 23:01:54 -0000 Received: (qmail 11899 invoked by uid 22791); 8 Jan 2009 23:01:53 -0000 X-SWARE-Spam-Status: No, hits=-1.8 required=5.0 tests=AWL,BAYES_00,J_CHICKENPOX_23,SPF_PASS X-Spam-Check-By: sourceware.org Received: from e38.co.us.ibm.com (HELO e38.co.us.ibm.com) (32.97.110.159) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 08 Jan 2009 23:01:50 +0000 Received: from d03relay02.boulder.ibm.com (d03relay02.boulder.ibm.com [9.17.195.227]) by e38.co.us.ibm.com (8.13.1/8.13.1) with ESMTP id n08N0Mne013755 for ; Thu, 8 Jan 2009 16:00:22 -0700 Received: from d03av02.boulder.ibm.com (d03av02.boulder.ibm.com [9.17.195.168]) by d03relay02.boulder.ibm.com (8.13.8/8.13.8/NCO v9.1) with ESMTP id n08N1lCG150766 for ; Thu, 8 Jan 2009 16:01:47 -0700 Received: from d03av02.boulder.ibm.com (loopback [127.0.0.1]) by d03av02.boulder.ibm.com (8.12.11.20060308/8.13.3) with ESMTP id n08N1l5h022217 for ; Thu, 8 Jan 2009 16:01:47 -0700 Received: from [9.47.18.139] (dyn9047018139.beaverton.ibm.com [9.47.18.139]) by d03av02.boulder.ibm.com (8.12.11.20060308/8.12.11) with ESMTP id n08N1k2i022028 for ; Thu, 8 Jan 2009 16:01:47 -0700 Subject: ERROR: The effective user ID of staprun must be set to the root user. From: Jim Keniston To: systemtap Content-Type: text/plain Date: Thu, 08 Jan 2009 23:01:00 -0000 Message-Id: <1231455624.5813.2.camel@dyn9047018139.beaverton.ibm.com> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact systemtap-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: systemtap-owner@sourceware.org X-SW-Source: 2009-q1/txt/msg00070.txt.bz2 I'm running 2.6.28 with yesterday's utrace bits, today's stap bits, and elfutils 0.138. When I run a stap script as a non-root member of group stapdev (e.g., the "Hello, world" script shown here), upon completion of the run, staprun reports: ERROR: The effective user ID of staprun must be set to the root user. Check permissions on staprun and ensure it is a setuid root program. and apparently fails to unload the stap-generated module. I get no such message if I run stap as root. stap -vvv reveals that staprun is /usr/local/bin/staprun, which is indeed a setuid root program. I built and installed stap as I always have: ./configure --with-elfutils=/.../elfutils-0.138 make su - make install Note that the script runs to completion before I get the error message. Any suggestions? Thanks. Jim ----- [jimk@xxx stap]$ stap -v hi.stp Pass 1: parsed user script and 48 library script(s) in 460usr/20sys/798real ms. Pass 2: analyzed script: 1 probe(s), 2 function(s), 0 embed(s), 0 global(s) in 0usr/0sys/74real ms. Pass 3: using cached /home/jimk/.systemtap/cache/3e/stap_3ef244575eb0700481e9d673c7d9d914_354.c Pass 4: using cached /home/jimk/.systemtap/cache/3e/stap_3ef244575eb0700481e9d673c7d9d914_354.ko Pass 5: starting run. Error inserting module '/tmp/stapiMOfTu/stap_3ef244575eb0700481e9d673c7d9d914_354.ko': File exists Retrying, after attempted removal of module stap_3ef244575eb0700481e9d673c7d9d914_354 (rc 0) Hi. ERROR: The effective user ID of staprun must be set to the root user. Check permissions on staprun and ensure it is a setuid root program. Pass 5: run completed in 10usr/0sys/162real ms. Pass 5: run failed. Try again with another '--vp 00001' option. [jimk@xxx stap]$ which stap /usr/local/bin/stap [jimk@xxx stap]$ which staprun /usr/local/bin/staprun [jimk@xxx stap]$ ls -l /usr/local/bin/staprun ---s--x--x 1 root root 76026 2009-01-08 10:39 /usr/local/bin/staprun [jimk@xxx stap]$ lsmod | grep stap stap_3ef244575eb0700481e9d673c7d9d914_354 27240 0 stap_7f0af3bd64bc4349367c78489e1f6351_98711 164088 0 [jimk@xxx stap]$ cat hi.stp probe begin { log("Hi.") exit() } [jimk@xxx stap]$