bundle

Shell

This executable can spawn an interactive system shell.
  1. This function can be performed by any unprivileged user.
    BUNDLE_GEMFILE=x bundle exec /bin/sh
    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 ....
    BUNDLE_GEMFILE=x bundle exec /bin/sh
  2. This function can be performed by any unprivileged user.
    touch Gemfile
    bundle exec /bin/sh
    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 ....
    touch Gemfile
    bundle exec /bin/sh
  3. CommentThis might run the shell twice, one after the other.
    This function can be performed by any unprivileged user.
    echo 'system("/bin/sh")' >Gemfile
    bundle install
    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 'system("/bin/sh")' >Gemfile
    bundle install

Inherit

This executable can inherit functions from another.
  1. This function can be performed by any unprivileged user.
    bundle help
    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 ....
    bundle help
    Functions

    Inherits from less, thus possibly granting its functions.

  2. This function can be performed by any unprivileged user.
    touch Gemfile
    bundle console
    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 ....
    touch Gemfile
    bundle console
    Functions

    Inherits from irb, thus possibly granting its functions.