11 votes

Some surprising code execution sources in Bash

4 comments

  1. [2]
    xk3
    Link
    I accidentally discovered that systemd-run can spawn a root shell even if PAM and sudo are broken. I think this relies on polkit.

    I accidentally discovered that systemd-run can spawn a root shell even if PAM and sudo are broken. I think this relies on polkit.

    4 votes
    1. jredd23
      Link Parent
      If it's stupid but it works, it isn't stupid. Bash, the shell that keeps on giving.

      If it's stupid but it works, it isn't stupid. Bash, the shell that keeps on giving.

      1 vote
  2. first-must-burn
    Link
    @hungariantoast, have you considered rewriting the Linux kernel in bash? Maybe give those Rust developers a run for their money.

    @hungariantoast, have you considered rewriting the Linux kernel in bash? Maybe give those Rust developers a run for their money.

    3 votes