Bug 210012 - fc6- kernel allows stracing of kernel threads
fc6- kernel allows stracing of kernel threads
Product: Fedora
Classification: Fedora
Component: kernel (Show other bugs)
All Linux
medium Severity medium
: ---
: ---
Assigned To: Dave Jones
Brian Brock
Depends On:
  Show dependency treegraph
Reported: 2006-10-09 11:03 EDT by Arjan van de Ven
Modified: 2015-01-04 17:28 EST (History)
5 users (show)

See Also:
Fixed In Version: kernel-2.6.18-1.2753.fc6
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2006-10-30 23:54:29 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Arjan van de Ven 2006-10-09 11:03:34 EDT
Description of problem:

strace -p <pid of a kernel thread>

does not give permission denied!
Comment 1 Arjan van de Ven 2006-10-09 12:26:43 EDT
(strace is a security sensitive operation, someone needs to evaluate how serious
this is)
Comment 2 Roland McGrath 2006-10-10 00:19:55 EDT
This is a simple check accidentally omitted when converting the ptrace entry
checks for the new utrace-based code.  It only affects the kthread case (tasks
with no ->mm), and the uid and LSM checks are still performed so this can only
be done by root (and perhaps can't be done under selinux policy, don't know).
I don't think it rises to the level of a security concern.

I have a fix on its way.
Comment 3 Roland McGrath 2006-10-10 00:24:01 EDT
I committed the fixed utrace patch to kernel/devel, it will be in davej's next
kernel build.  I only wish this were a more interesting and auspicious bug to go
with the palindromic bug number.
Comment 4 Roland McGrath 2006-10-30 23:54:29 EST
This was fixed in the FC-6 release kernel.

Note You need to log in before you can comment on or make changes to this bug.