Elevated Commands Redesign (#1123)

This commit is contained in:
Chase Payne 2023-04-29 00:22:01 -05:00 committed by GitHub
commit 430a439698
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
17 changed files with 568 additions and 425 deletions

View file

@ -159,8 +159,7 @@ namespace platf {
}
bp::child
run_unprivileged(const std::string &cmd, boost::filesystem::path &working_dir, bp::environment &env, FILE *file, std::error_code &ec, bp::group *group) {
BOOST_LOG(warning) << "run_unprivileged() is not yet implemented for this platform. The new process will run with Sunshine's permissions."sv;
run_command(bool elevated, const std::string &cmd, boost::filesystem::path &working_dir, bp::environment &env, FILE *file, std::error_code &ec, bp::group *group) {
if (!group) {
if (!file) {
return bp::child(cmd, env, bp::start_dir(working_dir), bp::std_out > bp::null, bp::std_err > bp::null, ec);