On Thu, 2012-01-12 at 17:44 +0000, Jamie Lokier wrote: > > I like Alan's suggestion. Have userspace decide to allow execv or not, > > and even let it decide if it should allow setuid execv's or not, but > > still allow non-setuid execvs. If you allow the setuid execv, once that > > happens, the same behavior will occur as with ptrace. A setuid execv > > will lose all its filtering. > > I like the idea of letting the tracer decide what it wants. Right, and if we implement the suggestion that Linus made, to set a flag to prevent a task from every getting privilege, then seccomp can add that too. That is, there can be a filter to say "prevent this task from doing anything with privilege" and that will prevent execv from gaining setuid privilege. Perhaps, it would still do the execv, but the program that is executed will run as the normal user, and just fail when it tries to do something that requires sys admin privilege. Thus, execv will not be a "special" case here. Seccomp either allows it or not. But also add a command to tell seccomp that this task will not be allowed to do anything privileged. -- Steve -- To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html