This is an alias of gcc.

Shell

This executable can spawn an interactive system shell.
  1. CommentIn some older versions, the x argument must instead reference any existing file.
    This function can be performed by any unprivileged user.
    gcc -wrapper /bin/sh,-s x
    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 ....
    gcc -wrapper /bin/sh,-s x

File write

This executable can write data to local files.
  1. CommentThis actually deletes the file.
    This function can be performed by any unprivileged user.
    gcc -x c /dev/null -o /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 ....
    gcc -x c /dev/null -o /path/to/input-file

File read

This executable can read data from local files.
  1. This function can be performed by any unprivileged user.
    gcc -x c -E /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 ....
    gcc -x c -E /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.
  2. CommentThe file is read and parsed as a list of files (one per line), the content is displayed as error messages.
    This function can be performed by any unprivileged user.
    gcc @/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 ....
    gcc @/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.