Sophie

Sophie

distrib > CentOS > 5 > x86_64 > by-pkgid > 2b12d0199a2bbc4a02ef3834d926ac4a > files > 208

systemtap-client-1.8-6.el5.x86_64.rpm

title: Disable ptrace from Hierarchies of Processes
name: noptrace.stp
version: 1.0
author: anonymous
keywords: process security
subsystem: process
status: proposed
exit: user-controlled
output: on-exit
scope: system-wide
description: Blocks ptrace(2) attempts from processes identified by stap -c/-x, as also specifiable from /proc/systemtap/stap_XXX/ control files.  Processes may be added or removed from the blocked list.
test_support: test -e /etc/redhat-release && grep -v "Nahant" /etc/redhat-release
test_check: stap -gp4 noptrace.stp -x $$
test_installcheck: stap -g noptrace.stp -c 'strace ls || true'