lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <buopr5nol26.fsf@dhlpc061.dev.necel.com>
Date:	Wed, 06 Jan 2010 14:32:17 +0900
From:	Miles Bader <miles@....org>
To:	linux-kernel@...r.kernel.org
Subject: tools/perf: "perf record" restricted to root in latest kernel?

I tried compiling tools/perf in an old linux source tree (ab86e5765,
roughly 2.6.31), and the resulting perf tool seemed to work fine
("perf record" ... "perf report", "perf stat" etc); I ran it as an
ordinary user.

Next I updated to the latest linus tree (c5974b835a), and recompiled perf.
It still seems to work, and has obviously had a lot of features added, but
now it only wants to let me run "perf record" if I'm root.  This is
slightly annoying -- even if I use "sudo" or make it setuid, it still ends
up generating an output file owned by root, etc.

In both cases, I'm using the same kernel (I only recompiled the tool), 2.6.32.

I used no options with "perf record", just gave the command I wanted to profile.

Is there a reason why the newer version perf tool restricts "perf record"
to root, especially given that the older version still seems to work fine
as non-root?

Thanks,

-Miles

-- 
Run away!  Run away!
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ