ajenti / ajenti

Audit required: Starting a subprocess BAN-B606
Security
Minor
6 months ago4 years old
Starting a process without a shell.
 78        self.pid, self.fd = pty.fork()
 79        if self.pid == 0:
 80            setproctitle.setproctitle(f'{sys.argv[0]} terminal session #{os.getpid():d}')
 81            os.execvpe(exe, args, env) 82
 83        logging.info(f'Subprocess PID {self.pid}')
 84
Starting a process without a shell.
 39    logging.warning('Will restart the process now')
 40    if '-d' in sys.argv:
 41        sys.argv.remove('-d')
 42    os.execv(sys.argv[0], sys.argv) 43
 44try:
 45    # If Namespace is not provided, then the wrong socketio library is installed