1. A method for execution of a task in a computing environment, the method comprising: receiving by a security gateway in the computing environment, from a first process, a service request from a client to perform a first task, which is to be performed under a first security context, associated with the client; in response to the service request, submitting by the security gateway, to a second process executing in the computing environment, an instruction to spawn a third process to handle the service request; the second process spawning a third process, responsively to the submitted instruction of the security gateway; setting a process environment of the third process, by the second process or the third process, and setting a security context for the third process to the first security context, responsively to the service request; and executing the first task by the third process in the computing environment, after setting the security context of the third process, wherein the third process operates in a privileged mode until it reads an adaptation request from the security gateway and then changes its privilege according to content of the adaptation request.