File write

This executable can write data to local files.
  1. CommentThe comment appears in the compiled program.
    This function can be performed by any unprivileged user.
    echo 'fn main() { println!("DATA"); }' >/path/to/temp-file
    rustc /path/to/temp-file -o /path/to/output-file
    This function is performed by the privileged user if executed via sudo because the acquired privileges are not dropped.
    RemarksIf there are environment variables involved, they must be passed via sudo VAR=value ... or exported then sudo -E ....
    echo 'fn main() { println!("DATA"); }' >/path/to/temp-file
    rustc /path/to/temp-file -o /path/to/output-file

File read

This executable can read data from local files.
  1. CommentThe compiler leaks some file lines in the compiler error.
    This function can be performed by any unprivileged user.
    rustc /path/to/input-file
    This function is performed by the privileged user if executed via sudo because the acquired privileges are not dropped.
    RemarksIf there are environment variables involved, they must be passed via sudo VAR=value ... or exported then sudo -E ....
    rustc /path/to/input-file
    RemarksThe content is corrupted or otherwise altered by the process, thus it might not be suitable for handling arbitrary binary data.

Inherit

This executable can inherit functions from another.
  1. This function can be performed by any unprivileged user.
    rustc --explain E0001
    This function is performed by the privileged user if executed via sudo because the acquired privileges are not dropped.
    RemarksIf there are environment variables involved, they must be passed via sudo VAR=value ... or exported then sudo -E ....
    rustc --explain E0001
    Functions

    Inherits from less, thus possibly granting its functions.