is it possible to add the ability for boost::process::child to support the execution of commands by specified users?
- Lingua principale
- C++
- Stelle
- 145
- Fork
- 151
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
It is very common to specify a user to start a process to execute related commands. In the boost::process library, it is not supported to create a specified user process to execute tasks. On the linux side, the executor of the child process can be modified through a custom on_exec_setup function, but on the windows side, there is no such hook point as linux to specify the user-created process. In boost::process, the windows side creates the process by calling CreateProcess. When i need to specify a user to create a process, i need to call CreateProcessAsUser to specify the user to create the process and specify the task. Is it possible to add the function to support the specified user to create the process and execute commands?
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Direzione di ricerca
Inizia leggendo il percorso di creazione dei processi Windows che attualmente chiama CreateProcess e confrontalo con il comportamento richiesto di CreateProcessAsUser; esamina anche l’hook on_exec_setup di Linux per il modello multipiattaforma esistente. Il lavoro è completato quando la libreria è in grado di creare un processo figlio Windows per un utente specificato, preservando il comportamento esistente di creazione dei processi.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- cpp
- Ambito
- operating-systems
- Tipo di issue
- Funzionalità
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 35/100