Skip to content

Add doas support alongside sudo for privilege escalation (low priority) #1753

Description

@justanotherscript

Desired behavior

VeraCrypt should optionally use doas instead of sudo for privilege escalation on systems where doas is installed, improving compatibility with lightweight Unix setups.

Screenshots/Mockup/Designs

N/A

Additional information

grep -n "sudoAbsolutePath" src/Core/Unix/CoreService.cpp
418: string sudoAbsolutePath = Process::FindSystemBinary("sudo", errorMsg);
419: if (sudoAbsolutePath.empty())
426: std::string popenCommand = sudoAbsolutePath + " -n " + trueAbsolutePath + " > /dev
direct stderr to stdout (2>&1) to be able to catch the result of the command

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions