• 1 Post
  • 47 Comments
Joined 2 years ago
cake
Cake day: July 6th, 2024

help-circle


  • and a locked computer with a running os must be able to defend itself from tampering

    https://usbguard.github.io/

    two questions:

    do you ever go to the toilet at work? do you take your laptop with you or shut it down while you’re there?

    Can people freely walk around at your work and access unattended pcs? Then your workplace has a serious security issue that is not IT related at all.

    even a consumer computer only normally gets pwned to an evil maid attack if the evil maid has exotic tools like a memory freezing kit or zero-days. and we should keep it that way.

    You could get a USB stick that neatly fries hardware for a few $ a decade ago… which for most people is even more reason to never have an unknown device just work without explicitly getting permission. But back then you at least had some work to do to source them; with Temu and Aliexpress nowadays…

    You aren’t completely wrong here. People’s pcs shouldn’t be vulnerable to a simple stick put into an USB port. And People should not need to completely lock up their pcs at work when only leaving for a few moments. But that is what software (see above) and general building security is for.


  • “I have long argued that the problem isn’t that people are plugging the sticks in, but that the computers trust them enough to run software off of them.”

    So a 14 year old statement basically fitting my comment.

    Is it still the default for distros nowadays to be that trusting? I would have assumed things like USBGuard becoming standard long ago, but I’m not in the habit of often (re-)installing different distros just to check their defaults.


  • Just take any locked, hardened, disk-encrypted running Linux machine, plug in the prepared usb disk and voila…

    …nothing should happen, because only people who have lost all control over their life leave their running pc unattended while also allowing unknown devices to be plugged in.

    That’s “here I will unlock my pc and then leave the room for you”-level of stupid.




  • Trim can be handled by the system without a dedicated script, either as contunues trim (by just mounting it with the discard option) or periodically via already provided SystemD services and timers (both supported by btrfs). And I think the most common defaults would be doing it once a week or so.

    Scrubbing on the other hand once a week feels excessive to me. And I would definitely not look at the result only at the moment I start the next scrub. Also I like having such stuff happen in the background without noticing much, so again SystemD is your friend by providing you ways to do it on a timer while also limiting the amount of ressources used via slices and ways to only notify you on a failure.

    And then there is balancing which I really do very rarely. If you don’t have the habit of littering your disk with dozens and dozens of snapshots until it’s getting full, there is not much need.

    (And then there’re the SMART self-tests I would definitely not skip… a simple short one daily doesn’t hurt, a more extended full one once a week.)

    Long story short. Even if I wanted to do exactly what you plan, I would not put it into one script, because of different intervals (also to spread things out over time).

    Edit: And to keep this whole thing more constructive, here my setup for scrubbing as an example

    background.slice:
    [Slice]
    CPUQuote=20%
    IOReadBandwithMax=10M

    notification_mail@.sevice:
    [Unit] Description=Send Systemd Notification to eMail

    [Service]
    Type=oneshot
    ExecStart=/sbin/sh -c 'echo "Subject: Service %i failed\n\nService %i failed.\n$(systemctl status %i)" | /sbin/msmtp <mail.address>'

    monthly_scrub.service:
    [Unit]
    Description=Monthly BTRFS Scrub
    OnFailure=notification_mail@%i.service

    [Service]
    Slice=background.slice
    Type=simple
    ExecStart=/sbin/btrfs scrub start -RBd / >> /var/log/monthly_scrub.log

    monthly_scrub.timer;
    [Unit]
    Description=Monthly BTRFS scrub timer

    [Timer]
    OnCalendar=monthly
    RandomizedDelaySec=1day
    Persistent=true

    [Install]
    WantedBy=timers.target


  • 32-bit support aside, which is a special case because a) that’s a really big step and b) we are not talking about “old” but more “last century ancient” here…

    Archlinux is unironically a good pick, because there is basically nothing preinstalled. So you have no desktop environment that might make the switch to wayland exclusively for example.

    And everything really falling out of upstream support (say proprietary drivers for example) are well supported by the community as long as there is interest. So I can for example run some minimal ressource-friendly X11 desktop on a machine still using a more than 20-year old GeForrce 8800, for which Nvidia dropped support nearly a decade ago, without issues.

    All this with the latest kernel and stuff.

    (In fact the pc I’m typing this on is not THAT old, but still pre-EFI mainboard, first generation AMD Bulldozer cpu (should be from around 2011/12), early DDR3 ram with a 750ti…) and still runs snappy as always.)

    (Edit: i3 window manager with a few added parts from XFCE)


  • I wanted to test Nebula as VPN for my home network (just 2 pcs, a laptop, phones, an old laptop and a Raspberry managing everything and running most of the services) and it really just worked instantly and was all up in an hour or so (of which manually creating and distributing the certificates probably took the most time). 👍

    But then I naively began to move over everything served either in the normal home network or externally via reverse proxies to that vpn range… and spend days fighting the most stupid bugs or undocumented things.

    Services that for completely unknown reasons would only bind to two different IPs if those are not in neighbouring 192.168.x ranges.
    The recent Gnome/Evolution version not finding any caldav/carddav unless it’s served via https (I know it worked when I originally set up my own Radicale instance, but never tried it again after having set up a reverse proxy for my phones to access), so I seriously set up my first self-signed certificate for more than a decade.
    Syncthing properly finding the same device in both networks at the same time but throwing a fit when I used the option to manually define which IP to use, unless I blocked the other one from being discovered (it also claimed to find the same devices for use over tcp and quic, yet never seems picks the quic option… because, as I discovered when manually chosing, that one just times out most of the time – yes, “most of the time” as sending udp packages from one pc the another one both connected via ethernet to the same switch seemed hard).
    A lot of fun stuff… 🙄




  • The point was more about T’so’s “The bulk of the new lines was caused by adding KUnit tests, which makes it safer to validate AI generated patches” and how he shouldn’t litter in the kernel instead of doing his tests in a separate branch.

    Which is so stupid that the “tell your AI companion to get its act together” was warranted.

    But at this point I just find it really funny how any of Linus comments and statements is construed as a) stupidly pro-AI, b) stupidly anti-AI or c) stupid, because he changed his stance on AI (again), solely for the reason that neither side in this ridiculous ideological mud-fight ist willing to accept actual sane arguments that AI is just a tool instead of either our new lord and saviour or the devil incarnate, thus they need to reframe everything Linus says to fit their insanity.


  • I mean AI is just a tool

    This can’t be true as AI is either our new lord and saviour or the the devil incarnate, no in-between! You need to join the ideological war!!

    Which is the whole reason he gets downvotes and the reason Linus’ comments are constantly misconstrued as being (either pro- or anti-AI) stupid. Actual reasonal arguments aren’t wanted in this bullshit “discussion”.


  • Yes and no. The culprit –at least that’s what Linus is reacting here to– is indeed “the bulk of the new lines […] caused by adding KUnit tests […] to validate AI generated patches”.

    So ‘reign in your AI companion and do the tests in a separate branch instead of this littering’ is an understandable statement.

    You are right, it isn’t about AI directly. But it is definitely about AI-use by people who should know better