Skip to contentSkip to conversation

UML vs ptrace_scope

uml-devel Michael Richardson 1 participant 1 message May 17, 2013 User-mode Linux (UML)

lore
Share & tools
lore
#0 lore raw

I have been trying to bring the openswan nightly build system up again
on a newish system. I started these scripts back in 2002, and it has been running
on and off for many years, and many kernel revisions.
I started this most recent effort work when 3.5 was stable, so my guest kernel is a 3.5 kernel running on a debian squeeze host with a 2.6.26
kernel. I compile things fine.
With 2.6.26, I got:

...
Checking that ptrace can change system call numbers...ptrace: Operation not permitted
check_ptrace : expected SIGSTOP, got status = 9

I upgraded to wheezy (needed to be done anyway), and then felt that I ran run into the ptrace_scope problem. At least, that's what I thought. I installed a 3.8 debian kernel tree, patched it to enable YAMA, and booted that finally. I set:
kernel.yama.ptrace_scope = 0

but this does not affect the above error. Is there something else I am
missing? I tried adding the capability, but it doesn't help.

curley-[~] mcr 10001 %sudo /sbin/setcap cap_sys_ptrace+ep /btmp/build/HEAD/2013_05_12/openswan-2/UMLPOOL/plain26/linux [sudo] password for mcr:
curley-[~] mcr 10002 %sudo /sbin/getcap /btmp/build/HEAD/2013_05_12/openswan-2/UMLPOOL/plain26/linux

/btmp/build/HEAD/2013_05_12/openswan-2/UMLPOOL/plain26/linux = cap_sys_ptrace+ep

No I suspect the problem is elsewhere.
Is there something else I am missing?

Signature · 16 lines
]               Never tell me the odds!                 | ipv6 mesh networks [ 
]   Michael Richardson, Sandelman Software Works        | network architect  [ 
]     [email protected]  http://www.sandelman.ca/        |   ruby on rails    [ 
	


------------------------------------------------------------------------------
AlienVault Unified Security Management (USM) platform delivers complete
security visibility with the essential security capabilities. Easily and
efficiently configure, manage, and operate all of your security controls
from a single console and one unified framework. Download a free trial.
http://p.sf.net/sfu/alienvault_d2d
_______________________________________________
User-mode-linux-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel