• 6 Posts
  • 291 Comments
Joined 3 years ago
cake
Cake day: July 5th, 2023

help-circle

  • So as another comment pointed out you don’t need to give your user account access to docker in this way, it’s an optional step, but one that I suspect many people do (since it’s part of the official docs).

    What the LLM has done is silly, but completely possible. It climbed through the window that you left open.

    But let’s jump to a different scenario, the ping command (on Linux). That’s a perfectly harmless command, right? You just want to say hello to another computer and see if they say hello back.

    Except that historically the ping command was something called “setuid” which means when it ran it ran as root. It ran as root because in order for ping to work it has to create a special type of network packet that only root can create. But if you’re root you can run anything! So in theory ping opens a huge attack surface. If you have to worry about ping then is everything too complex to be manageable?

    Luckily, as I said, this is a historical problem. The permissions ping needs have been moved to a specific capability and the command changed to utilize it and now ping can just run as a regular user without root privileges. But you can’t just make that change overnight. It takes a lot of time and effort.

    So could the same be done for docker? Maybe. A rootless version of docker already exists. If you actually wanted to do what the LLM suggested, that wouldn’t work with a rootless docker, at least not without a bunch more configuration (and even then maybe).

    So is security hard? Yes. Is it impossible? No.



  • Sure. So we don’t know the original question but we can see that changes were made to SDDM, which is basically your login screen. So the original request was probably something like “Can you change my login screen to do something cool?”

    Now, the configuration for the login screen is located in /etc and requires administrative privileges to change.

    The query was run by the user account and not an admin account. Typically to run something as admin you use the command sudo which will interactively ask for a password and then, if allowed, you can run the command as an admin.

    However the tool docker, in order to function properly, has the ability to run commands as administrator and won’t prompt for a password.

    So basically what happened here is instead of asking for a key to unlock the front door to your house, it installed a new door on the second floor, went through that door, rearranged your refrigerator, went back out the door it created, and then patched up the hole perfectly.









  • I think it’s fair to discuss and criticize films, even if they are “just for kids”. Plenty of children’s films have a deeper story or teach a lesson. Look at Illumination’s first film, Despicable Me. The film is full of heart, but it’s also got comedy.

    It’s also fine to enjoy something and criticize it. I enjoyed many different scenes from the Super Mario Galaxy movie and I think any Mario fan will enjoy watching it. But is the movie ultimately forgettable? Also yes.



  • So I agree but I do take issue with “forgettable”. Grogu has huge character growth, ending with Din teaching him to drive, but also the complete 3rd act of Grogu taking care of Din. I’m not going to forget his whole adventure. While I’m confident this film is just an adaptation of a series, that whole “episode” felt uncut.

    Plus if this series wants to lean into it the death of the Twins is potentially huge. A direct assault by the New Republic against Nal Hutta, eliminating a whole family, and the one heir taking the side of the New Republic? That shifts things dramatically.

    I do agree the film overall is action heavy, so the lore is sparse by comparison, but the world did more forward. It’s forgettable, but only if the series going forward chooses to ignore it.




  • Yes. I started using it years ago and have been unable to exit ever since.

    But honestly related to your question, I started learning to use vim exactly because when I started to learn and use Linux I was often stuck in situations where that was the only thing available.


  • I don’t use DoorDash but occasionally order from Taco Bell. Every time I order I watch the car arrive at Taco Bell and wait about 20 minutes before actually picking up my order and then delivering it.

    Additionally I know UberEats used to (and maybe still does) offer cheaper delivery if you pick a restaurant another driver was already heading to. (I haven’t used UberEats in years because I found them less reliable.)

    Ironically if a restaurant did all the deliveries themselves they would have all the information about how best to optimize delivery. Maybe all the delivery companies can find a way to share this information to minimize travel and maximize speed of delivery.