News for hackers. Stuff that matters.
Re:OpenBSD KDE Plasma Desktop by rubymamis on Monday January 08, 2024 @01:44PM (#38916240)
What are some pros and cons of using OpenBSD instead of Linux?
Re:OpenBSD KDE Plasma Desktop by enriquto on Monday January 08, 2024 @02:43PM (#38917023)
> What are some pros and cons of using OpenBSD instead of Linux?

Pros: htop only fills half of your terminal, and you know exactly what each process does because you put them there. A few well-written man pages are the complete documentation of the system. The whole thing is run by a handful of shell scripts.

Cons: exactly the same text, but read with a different tone.

Re:OpenBSD KDE Plasma Desktop by wharvle on Monday January 08, 2024 @03:49PM (#38917900)
Relaxing. Like back when you could attach WireShark to your local network and not see a single damn thing happen for tens of seconds at a time unless you pressed a button somewhere.

... But also when computers wouldn't do anything useful unless you pressed a button. Or a bunch of buttons, more likely.

Re:OpenBSD KDE Plasma Desktop by WhackyIdeas on Monday January 08, 2024 @04:26PM (#38918402)
What you describe about WireShark sounds zen.
Re:OpenBSD KDE Plasma Desktop by randmeerkat on Monday January 08, 2024 @06:41PM (#38920132)
> What you describe about WireShark sounds zen.

It was actually ethereal.

Re:OpenBSD KDE Plasma Desktop by mech422 on Monday January 08, 2024 @09:58PM (#38921708)
LOL - made me chuckle
Re:OpenBSD KDE Plasma Desktop by wharvle on Monday January 08, 2024 @04:37PM (#38918541)
It really was. Just my own machine's traffic makes it scroll faster than I can read, these days. Every web page and program constantly phoning home up and and including sending real-time mouse cursor locations, mdns, UDP local-network-device-discovery traffic, all kinds of stuff.
Re:OpenBSD KDE Plasma Desktop by fomine3 on Wednesday January 10, 2024 @02:36AM (#38937320)
This is the best invitation for BSD I've ever read
Re:OpenBSD KDE Plasma Desktop by user3939382 on Monday January 08, 2024 @02:58PM (#38917241)
Yep I love it. ps -ax gives you like 12 processes and the role of each is obvious and essential. The OS isn't doing anything you didn't ask it to, you can actually understand the OS. Try that on a default Ubuntu install, it's like macOS, just totally and literally out of control.
Re:OpenBSD KDE Plasma Desktop by yeeeloit on Monday January 08, 2024 @04:41PM (#38918594)
> you can actually understand the OS.

The way you describe FreeBSD is how I imagine an OS should be. I'm going to make it a goal this year to get a server up and running. Thanks.

-- Rant

Linux gives me more inferiority complex than any other technology I've ever touched.

Sure, something like a database system, or a moderately large code base or framework is complicated, and intimidating, and it might take many years to get a grip on, and understand, let alone master. But Linux? I just don't get it. I've tried for years, read books about it, etc. etc.

But in the end it's voodoo to me, and I'm always left searching for answers to problems, unable to solve them myself. The answers are always just rote step-by-step; do this and copy this command, problem solved. Why? how? nothing makes sense!!!

I always have the sense that somewhere out there is the holy bible of Linux, the missing piece of the puzzle; read this and it will all make sense.

Admittedly I've never compiled a distro. So in some respect I'm guilty of not going into the deep end. I suspect that if I learnt systems programming, and really go into the thick of it... then somewhere I might start to find my feet.

But it's easier to just believe that I'm stupid, and Linux is beyond my ability to comprehend.

Re:OpenBSD KDE Plasma Desktop by exe34 on Monday January 08, 2024 @05:08PM (#38918918)
Have you tried LFS? You can copy and paste, but you have to read the commands and figure out what they're doing.

This will give you an overall theoretical idea of how things are laid out - but you have to realise that every new version of something, there's some developer somewhere who wants to exercise their creativity and make something really clever and cool (to them), so it probably won't make any sense to you after the upgrade. That's the point you realise you're on the eternal treadmill of trying to keep your system doing what you need it to do, without freezing in the vulnerabilities.

Re:OpenBSD KDE Plasma Desktop by toyg on Monday January 08, 2024 @06:42PM (#38920144)
> read this and it will all make sense.

Linux is a sprawling metropolis, you have everything and its opposite - a lot of it won't make any sense unless you learn who built what, when, and why; and you can have dirty slums right next to well-designed skyscrapers.

Trying to find meaning in such a thing is fundamentally a fool's errand.

Re:OpenBSD KDE Plasma Desktop by cudder on Monday January 08, 2024 @06:42PM (#38920147)
I'd say the Gentoo handbook comes pretty close. You set up everything in the system and all is well explained. Not quite as extreme as LFS but enough to learn and not punish yourself.
Re:OpenBSD KDE Plasma Desktop by hexagonwin on Tuesday January 09, 2024 @03:15PM (#38931446)
Try slackware, its very simple and easy to use, and allows you to actually understand your system like the BSDs.
Re:OpenBSD KDE Plasma Desktop by steve_rambo on Tuesday January 09, 2024 @01:05AM (#38922938)
The first point equally applies to Alpine and any system built from Debian minimal install ("built" is too strong a word, all you need to do is `apt install` several packages).
Re:OpenBSD KDE Plasma Desktop by cylinder714 on Tuesday January 09, 2024 @02:27AM (#38923386)
The trick is, figuring out the names of the packages you want. :-\ Experiment, and take notes, I guess.

I had a fun experience playing with `grml-debootstrap', GRML¹ being a command-line-oriented LiveCD built upon Debian. Once you’ve booted up, that app installs a minimal Debian instance on your computer. I haven't tried using the stock Debian `debootstrap' utility.

1: https://grml.org/

Re:OpenBSD KDE Plasma Desktop by steve_rambo on Tuesday January 09, 2024 @06:16AM (#38924800)
I meant installing just what you need, like web servers and such. Probably should have written that in the original comment. You need to do that on any other operating system anyway, including any of the BSDs.

If you just need a plain system to drop a statically linked binary onto, Debian minimal install is perfectly usable right out of the box, and (IIRC) ships fewer components than OpenBSD.

Re:OpenBSD KDE Plasma Desktop by cylinder714 on Tuesday January 09, 2024 @09:07AM (#38926316)
About grml-debootstrap:

https://grml.org/grml-debootstrap/

Re:OpenBSD KDE Plasma Desktop by technofiend on Monday January 08, 2024 @02:00PM (#38916477)
It's a legit question, but if you have to ask, then most likely OpenBSD is not for you. I don't say that out of some elitist or gatekeeping motive, rather I think most people who use it have a specific need for it, or feel strongly about the principles behind the OS, which are security first and secure-by-default.

Here's a breakdown of some technical differences between the two, but really if you want to explore alternatives to Linux or even Linux alternatives I highly recommend you do so, even OpenBSD, but I respectfully suggest you have a use case in mind first.

https://www.geeksforgeeks.org/difference-between-linux-and-o...

The security first/secure-by-default mindset in OpenBSD means the core distribution is very locked down. By that I mean there's very little in the base OS in terms of services. OpenBSD had a robust "ports" selection for things you may need to add.

My use case for OpenBSD was as a firewall, but it was eventually retired because it just couldn't keep up with my network speeds. It still is a secure unix server for things like radius authentication of wireless clients.

Re:OpenBSD KDE Plasma Desktop by dbolgheroni on Monday January 08, 2024 @02:29PM (#38916840)
Just a minor note that you don't need a 3rd-party http daemon since there is one in base.

https://man.openbsd.org/httpd

Re:OpenBSD KDE Plasma Desktop by technofiend on Monday January 08, 2024 @03:21PM (#38917555)
Thank you, I stand corrected: it's been a while and my faulty memory had httpd outside of core. I edited my upline comment to remove the erroneous example because I don't want to add noise.
Re:OpenBSD KDE Plasma Desktop by Apocryphon on Monday January 08, 2024 @02:30PM (#38916854)
What's the most casual user-friendly distro of *BSD out there? GhostBSD?
Re:OpenBSD KDE Plasma Desktop by somat on Monday January 08, 2024 @04:44PM (#38918628)
I would suggest openbsd. it is not user friendly in the "hide all complexity from the user" sense but more like "this system is simple enough to understand yet full featured enough to work in".

The way I like to explain it is. if you like the unix operating environment, It is hard to do better than openbsd for a desktop system. If you are expecting something more like a mac or windows environment, there are options, but I suspect you would be better off with linux(or mac or windows for that matter).

Openbsd is comfortable in a way that is hard to explain. While largely this is just what what a person is used to. with obsd I have a good feel on how it works and goes together. something I never really felt with linux. however you do lose a lot of the network effect advantages that linux has.

Re:OpenBSD KDE Plasma Desktop by antiframe on Monday January 08, 2024 @04:47PM (#38918650)
> What's the most casual user-friendly distro of *BSD out there? GhostBSD?

MacOS?

Re:OpenBSD KDE Plasma Desktop by Y_Y on Monday January 08, 2024 @06:10PM (#38919759)
Ymmv, but I found macos might be friendly to the user, but only because it's getting to get money out of them. User-(bad)friendly.
Re:OpenBSD KDE Plasma Desktop by zilti on Monday January 08, 2024 @02:50PM (#38917119)
They're derivatives with their own kernel each, so in that regard the question does not make much sense. Due to its large amount of binary packages though, I'd say FreeBSD it is out of the big three.
Re:OpenBSD KDE Plasma Desktop by CodeCompost on Monday January 08, 2024 @03:59PM (#38918016)
Would it be fair to say the Arch Linux users will feel right at home with FreeBSD? They seem to have similar concepts.
Re:OpenBSD KDE Plasma Desktop by hnlmorg on Monday January 08, 2024 @07:41PM (#38920693)
Pre-systemd Arch felt very much like another BSD. At least about as close to one as a Linux could.

These days it’s a lot more Linux-y though.

Re:OpenBSD KDE Plasma Desktop by Apocryphon on Monday January 08, 2024 @03:01PM (#38917276)
Just trying to identify what's the Mint/Ubuntu/Zorin/elementary OS equivalent of BSD in terms of ease of use.
Re:OpenBSD KDE Plasma Desktop by taylortbb on Monday January 08, 2024 @03:16PM (#38917506)
The point is that they're not really comparable. Mint/Ubuntu/etc all ship the same Linux kernel, that's why they're called distros. They're different distributions (distros) of the same software (Linux kernel, etc).

The different BSDs aren't distros, they are different kernels that are developed in parallel. Obviously there's shared history there, and some shared userspace, but FreeBSD and OpenBSD aren't just two different BSD distros of largely the same software.

Re:OpenBSD KDE Plasma Desktop by parker_mountain on Monday January 08, 2024 @03:45PM (#38917836)
I'd say that if you're trying to find the Mint/Ubuntu/Zorin/elementary of BSD, then it's not really for you. The BSD ecosystem isn't really driven by ease of use, today they're more interested in various niches - hardware appliances, OS research, etc.

If you're curious about what unix is and what a bsd is, I would recommend netbsd or openbsd in a vm.

Re:OpenBSD KDE Plasma Desktop by Apocryphon on Monday January 08, 2024 @04:42PM (#38918603)
Well of course they're not trying to replace macOS, for instance, but when an OS gets big enough to have offshoots and different front-ends and desktop environments and so forth, one would assume there are at least experimental attempts emphasizing ease of use, just like there are experiments to develop offshoots for any other purpose, from power users to pen testers. At least like, someone's toy project on GitHub or SourceForge. I just assumed BSD was big and well-established enough to have such efforts.

Besides GhostBSD, looks like there's also Lumina, MidnightBSD, FuryBSD, and TrueOS/Project Trident?

https://lumina-desktop.org

http://www.midnightbsd.org

https://distrowatch.com/table.php?distribution=furybsd

https://itsfoss.com/trueos-bsd-review/

Re:OpenBSD KDE Plasma Desktop by stonogo on Monday January 08, 2024 @05:26PM (#38919174)
They're definitely trying to replace MacOS: https://hellosystem.github.io/docs/
Re:OpenBSD KDE Plasma Desktop by parker_mountain on Tuesday January 09, 2024 @01:18AM (#38923021)
> experimental attempts emphasizing ease of use

yes, i would define them very much as experimental

Re:OpenBSD KDE Plasma Desktop by Apocryphon on Tuesday January 09, 2024 @02:45PM (#38930963)
Sure, but that does mean that there are BSD projects driven by ease of use as their niche.
Re:OpenBSD KDE Plasma Desktop by fullstop on Monday January 08, 2024 @08:21PM (#38921015)
I installed NetBSD in a VM last week, and it felt like I was using Linux from 20 years ago.
Re:OpenBSD KDE Plasma Desktop by miah_ on Monday January 08, 2024 @09:14PM (#38921366)
Is that a bad thing?
Re:OpenBSD KDE Plasma Desktop by fullstop on Monday January 08, 2024 @09:17PM (#38921389)
For some things I felt a bit nostalgic, but for other things, not so much.

It was a neat experience and worth doing.

Re:OpenBSD KDE Plasma Desktop by zilti on Monday January 08, 2024 @03:31PM (#38917674)
Probably still FreeBSD, even though I'd claim NetBSD's documentation is a tad better. (And Ubuntu really does not stand out as beginner-friendly compared to e.g. openSUSE)
Re:OpenBSD KDE Plasma Desktop by spookie on Monday January 08, 2024 @09:04PM (#38921302)
openSUSE is a gem.

I can't even fathom how many times I've made a mess from my impulses to tidy up my system and it just manages to "fix itself".

There are also a lot of neat things, like being able to use multiple versions of GCC side by side. Not every distro behaves well on that regard.

Re:OpenBSD KDE Plasma Desktop by DeathArrow on Tuesday January 09, 2024 @02:54AM (#38923530)
You can try ravynOS or helloSystem. They are FreeBSD distros made with desktop users and ease of use in mind.
Re:OpenBSD KDE Plasma Desktop by artsi0m on Tuesday January 09, 2024 @07:32AM (#38925378)
OpenBSD is in fact already pretty much user-friendly. Installer is simple, althought an a textual interface. It comes with preinstalled X server and window managers fvwm and cwm. In the installer you can choose Xenodm to start automatically after boot, it would be your display manager and you can just simply login through it to fvwm. From here you can edit .xsession and choose any window manager you installed or pre-installed cwm.
Re:OpenBSD KDE Plasma Desktop by kuon on Monday January 08, 2024 @02:15PM (#38916673)
I stil use OpenBSD as firewall as I love PF. But I have the same problem as it cannot easily firewall 10G link. I am curious, what did you migrate to?
Re:OpenBSD KDE Plasma Desktop by technofiend on Monday January 08, 2024 @02:37PM (#38916938)
I keep switching things around. Virtualization comes with its own limits but is a fast way to prototype things like 'how hard is it to get IPV6 PDUs working in this new os?'

Pfsense is ok, but CE went a year without an update while they worked on other branches. Most recently their switch to kea dhcp broke some minor things like mapping static DHCP addresses to DNS entries. I believe that's fixed now, but need to confirm you can also still specify a DHCP option which some network devices need.

Opnsense is also decent and has the advantage of a regular update cadence, but I believe the UI is less newbie friendly. Fedora has the advantage of a UI to let you quickly review firewall rules, although the cli is perfectly workable once you get the syntax down.

Honestly I like OpenBSD's pf too but it couldn't keep up with a one gigabit network connection on your typical AliExpress firewall appliance, and I couldn't get it there virtually on an HP 360 Gen 8 or Gen 9 with decent Xeon CPUs and network cards. Probably a limitation of the network drivers for the network cards emulated by ESXi. I resisted being nerd sniped by that because my wife needs reliable Internet so there was no time to putter.

What are you using that lets OpenBSD achieve better than gigabit speeds?

tl;dr: For now I'm using PFSense because I have a friend I supply with tech support and he uses whatever I use and it's safe for him to play around in PFSense on his own.

Re:OpenBSD KDE Plasma Desktop by kuon on Tuesday January 09, 2024 @07:51PM (#38934658)
I have a ryzen with a Intel x520 nic and it handle gigabit easily. I plan to try 10gbit but my switches are not there yet, I am upgrading now.
Re:OpenBSD KDE Plasma Desktop by rubymamis on Monday January 08, 2024 @02:11PM (#38916607)
Compared to a Linux distro, would an end user have much better security out-of-the box, or would one need to be tech-savvy enough for that?
Re:OpenBSD KDE Plasma Desktop by opencl on Monday January 08, 2024 @02:38PM (#38916956)
OpenBSD out of the box is an extremely minimal setup compared to the default install of most Linux distros.

A lot of the security of the default install comes from minimizing the attack surface by having very few services running. So you do not need to be tech-savvy to make it secure, but you might need to be tech-savvy to turn it into a usable system for your use case.

Re:OpenBSD KDE Plasma Desktop by seanw444 on Monday January 08, 2024 @04:20PM (#38918322)
To add: it's not just the fact that it's barely running anything that makes it secure, but the things that you do run have effort put into making their codebase secure as well. Such as the various daemons, like httpd.
Re:OpenBSD KDE Plasma Desktop by miah_ on Monday January 08, 2024 @09:17PM (#38921396)
Also, the code for OpenBSD has been audited for "common" security issues, and hardened against various attack types.

https://www.openbsd.org/security.html

Re:OpenBSD KDE Plasma Desktop by somat on Monday January 08, 2024 @10:37PM (#38921991)
OpenBSD out of the box is not minimal. As a base install it is more feature full than most linux base installs. It is small yes, but with a lot of high quality network focused services. I could easily run a company backend and network on only what is found in the base install. If I had a good solid group of people I could probably run the frontend on it. (the main thing it lacks is a web browser).

mail, web, routing, tunnels, bgp, dns, hell there is even an ldap server in there for some reason. but no ldap client, which kind of sucks.

Re:OpenBSD KDE Plasma Desktop by binkHN on Monday January 08, 2024 @07:00PM (#38920340)
> My use case for OpenBSD was as a firewall, but it was eventually retired because it just couldn't keep up with my network speeds.

Are you doing over 10Gbps? A lot has been done in this space.

Re:OpenBSD KDE Plasma Desktop by technofiend on Monday January 08, 2024 @11:54PM (#38922496)
Based on someone else's comment I plan to revisit OpenBSD, because previously I wasn't able to get gigabit speeds out of a low-end appliance, even though FreeBSD and Fedora both could.
Re:OpenBSD KDE Plasma Desktop by binkHN on Tuesday January 09, 2024 @12:25AM (#38922679)
Things have definitely improved over time, but some of the best improvements are also related to utilizing advanced functionality from hardware that supports it.
Re:OpenBSD KDE Plasma Desktop by htamas on Tuesday January 09, 2024 @03:53AM (#38923834)
I respectfully disagree. I have very little Linux/Unix/xBSD maintenance knowledge, but I started running my own server for my personal email and website. Although I used a script as a crutch to set things up at the beginning (thanks to sive.rs/ti), when I started digging in how things work - and when I eventually run into some issues like expired certs - I managed to understand things much faster than when I was trying to run a server before with Ubuntu.

For example, Googling things are easier since the tools don't change much over the years, so an answer from 10-15 years ago still works. Besides that, I could find most of my answers in the very well written man pages. There's also just fewer things happening so there's not much clutter to distract me finding the answers I need.

I'm still a beginner of course, but I feel like OpenBSD is good for any application where you need to run something and then "forget about it" - be it a server or maybe even a "kiosk"/informational screen.

Re:OpenBSD KDE Plasma Desktop by LanzVonL on Monday January 08, 2024 @04:34PM (#38918500)
You can understand RC. You CAN'T understand systemd. For me that's a big one. But I bailed on Linux once it came out that the Indians and Chinese had teamed up to backdoor it.
Re:OpenBSD KDE Plasma Desktop by yeeeloit on Monday January 08, 2024 @04:45PM (#38918630)
> Indians and Chinese had teamed up to backdoor it.

link?

Re:OpenBSD KDE Plasma Desktop by Pay08 on Monday January 08, 2024 @08:14PM (#38920952)
I'm guessing his own diseased mind.
Re:OpenBSD KDE Plasma Desktop by MCUmaster on Tuesday January 09, 2024 @01:51AM (#38923194)
The only disease here is you and yours.

https://cse.umn.edu/cs/linux-incident

Re:OpenBSD KDE Plasma Desktop by sneed_chucker on Monday January 08, 2024 @03:37PM (#38917747)
Pros: lightweight, really good docs, security as a design goal, designed from the top down as a complete OS so the userland generally all plays nice together and feels more coherent and less bloated than a typical Linux distro

Cons: hardware compatibility/drivers (especially for WiFi and GPU) is worse than Linux, finding help online is worse than Linux, software availability and compatibility tends to be worse than Linux, but generally you can get everything you need especially if you're willing to build from source.

Subjective: Lots of Linuxisms that people are used to having aren't present on BSD. For example, no docker, no systemd, no Snap/AppImage/Flatpak, and no eBPF. This is true even on FreeBSD, which is the most Linux-like of the family. BSDs have their own answers to most of the problems that these tools solve, but you'll have to learn those tools and your Linux knowledge and muscle memory will be mostly useless.

Re:OpenBSD KDE Plasma Desktop by Pay08 on Monday January 08, 2024 @08:11PM (#38920934)
Since when is an init system or Docker linuxisms?
Re:OpenBSD KDE Plasma Desktop by sneed_chucker on Monday January 08, 2024 @08:21PM (#38921016)
An init system isn't a Linuxism obviously. Systemd is though.

Docker is unambiguously a Linuxism. Docker on MacOS and Windows only works by running a lightweight Linux VM under the hood. Docker does not currently run on any of the BSDs, though you can achieve similar process isolation with jails.

Re:OpenBSD KDE Plasma Desktop by radiator on Monday January 08, 2024 @02:04PM (#38916548)
Pro: A website can never steal your SSH keys, because firefox is limited, via unveil(2), to only seeing your ~/Downloads folder.

Con: Every time you need to upload a file using your browser, you have to move it to this folder first.

Re:OpenBSD KDE Plasma Desktop by elric on Monday January 08, 2024 @02:11PM (#38916603)
You can do similar things in Linux with firejail, but there are a lot of folks who feel uneasy about the safety of firejail.
Re:OpenBSD KDE Plasma Desktop by bayindirh on Monday January 08, 2024 @02:28PM (#38916825)
Also, there's AppArmor which is enabled in Debian and SuSE which transparently limits applications' reach without they realize.
Re:OpenBSD KDE Plasma Desktop by belthesar on Monday January 08, 2024 @02:57PM (#38917223)
Transparent limitation is a double-edged sword. From an adversarial perspective, it's good since I'm not advertising what my system can and can't do, and poorly written software may get hung up on timeouts waiting for things to happen. On the other hand, those same benefits against an adversary are negative constraints to usability, as now silent failures can happen on a system, requiring you to watch your AppArmor logs like a hawk when using new software.

Ultimately, less of a concern for servers that likely have limited scope and use cases, but a significant decrease in usability for workstations.

Re:OpenBSD KDE Plasma Desktop by bayindirh on Monday January 08, 2024 @03:28PM (#38917649)
You need to write an AppArmor profile to limit your software. It’s an opt-in system.

The workflow is you put a test system to “complain” mode and use your software as intended, and add the required permissions to the profile by looking at the logs to see what your app is doing. Then you put AppArmor to enforcing mode, add the profile to production system and your application is sandboxed. Iteratively refine as necessary.

Debian desktop comes with AppArmor enabled. Nothing has been broken so far.

Re:OpenBSD KDE Plasma Desktop by mike_hock on Monday January 08, 2024 @04:19PM (#38918304)
And every time you upgrade to the next major release, you start again from square one because the requirements of your software have changed. You get it to work and things seem to be fine. Over time, you start noticing things that are subtly broken, until something just fails completely and doesn't work. The fix turns out to be trivial when you give it another go two days later, but at the time it happened you really didn't have the nerve to deal with it right then.

After two dist upgrades, you realize that this approach isn't workable.

Re:OpenBSD KDE Plasma Desktop by bayindirh on Monday January 08, 2024 @04:43PM (#38918618)
Well, I have two Debian desktop installations. One is six, the other one is ten years old. I never had a problem with either.

This is without adding the numerous servers which I just install and forget, and they work without any problems for years.

edit: Yes, they're dist-upgraded all the time.

Re:OpenBSD KDE Plasma Desktop by PrimeMcFly on Monday January 08, 2024 @04:28PM (#38918423)
> And every time you upgrade to the next major release, you start again from square one because the requirements of your software have changed.

Nah. That's a huge exaggeration. Most software doesn't change its base behavior like that and certainly not with every new release, and certainly browsers don't.

Re:OpenBSD KDE Plasma Desktop by radiator on Monday January 08, 2024 @02:22PM (#38916754)
Besides firefox, more than 80 userland programs have their access to the filesystem restricted with the use of unveil.
Re:OpenBSD KDE Plasma Desktop by PrimeMcFly on Monday January 08, 2024 @04:29PM (#38918432)
If Theo stopped being so resistant to solutions like AppArmor, then OpenBSD could have a real security layer instead of toys like unveil and pledge.
Re:OpenBSD KDE Plasma Desktop by thewanderer1983 on Monday January 08, 2024 @08:02PM (#38920857)
Here is Justine's write up on pledge and why he wants to port it to Linux. https://justine.lol/pledge/
Re:OpenBSD KDE Plasma Desktop by PrimeMcFly on Monday January 08, 2024 @08:21PM (#38921010)
It has its uses I guess, but it requires opt-in which is a pretty big disadvantage, and then still can't do even a fraction of what SELinux can already do. SELinux isn't that hard to learn, and the security benefits are immense.
Re:OpenBSD KDE Plasma Desktop by okasaki on Monday January 08, 2024 @05:36PM (#38919298)

    2024-01-08 22:34 ubuntu@knope:~$ sudo apparmor_status
    apparmor module is loaded.
    185 profiles are loaded.
    104 profiles are in enforce mode.
    (...)
    124 processes have profiles defined.
    122 processes are in enforce mode.

including firefox and chromium
Re:OpenBSD KDE Plasma Desktop by artsi0m on Tuesday January 09, 2024 @07:35AM (#38925413)
But apparmor is more complex system and in fact is an RBAC. unveil(2) is much more easier in implementation and enforcing.
Re:OpenBSD KDE Plasma Desktop by codedokode on Monday January 08, 2024 @03:04PM (#38917330)
Unveil looks like a hack or a patch. Why do applications have access to whole filesystem by default?
Re:OpenBSD KDE Plasma Desktop by bayindirh on Monday January 08, 2024 @04:12PM (#38918198)
Because there's already UNIX file permissions which prevent applications to reach places they shouldn't. Confine a daemon to its own user, chroot it, and it's a sitting duck in its own universe.

You add more layers with cgroup/AppArmor/SELinux in Linux, Jails in FreeBSD, unveil on OpenBSD, etc.

You harden as much as necessary. Not "drowned by default".

Re:OpenBSD KDE Plasma Desktop by mike_hock on Monday January 08, 2024 @04:50PM (#38918689)
> Because there's already UNIX file permissions which prevent applications to reach places they shouldn't

Right. Just set up a separate user for Firefox using a single unprivileged command from your user account or a few clicks in your DE, then launch Firefox as that user using another single command or click. Being subordinate to your main user account, the Firefox user's files and directories can easily be managed from your main user and you can move files between subordinate users using just an (unprivileged) chown or chgrp. Accidentally launching applications as your main user is not possible and the system strongly encourages you to create separate, subordinate users for all your applications and is designed from the ground up to make this simple and it works out of the box.

Oh wait, that's not even remotely how any of this works. On a workstation, the "user account" is an almost completely useless concept (as set up and implemented in reality). That's why we have jails/namespaces/etc. Hacks that are piled on top of the useless mess of "user accounts" (all running as the same user, on workstations) trying to solve the same problems, but ultimately failing at providing any kind of comprehensive solution with a coherent vision. Software cannot take anything for granted anymore. Anything that looks like a writable file could be a read-only bind mount. Any mundane syscall could get it SIGKILLed for no reason other than that somebody forgot to add it to the whitelist. But from the user's perspective, there's no reasonable level of security by default.

Re:OpenBSD KDE Plasma Desktop by bayindirh on Monday January 08, 2024 @05:07PM (#38918904)
Considering how we use jails/namespaces and other similar technology, your analogy sounds off. First of all, security is always set up in layers. A different user and chroot doesn't exclude the use of jails, or other kernel level security systems like AppArmor/SELinux. They are layered on top of each other as necessary.

Also, namespaces is not solely a security mechanism. Yes it allows isolation, but it allows resource limitation, too. So you can partition your system to slices and show a particular set of resources to an application (I'm sure you're way more knowledgeable than me in that regard).

On the other hand, security starts with application itself. Then you start to add extra containment barriers if you don't trust the software in question.

What I understand is our realities are completely disparate, and this is not how we hold the mechanisms I talk about. This might be due to the environment each of us live in, or due to our requirements, I don't know.

But, what I know is, the state of security is not as bleak as you portray, and necessity is mother of invention. Except SELinux, AppArmor, and FireJail all of the technologies we talk here are essentially built as virtualization, or virtualization-like technologies. They bring additional security as a secondary effect, and they're good at that.

> Software cannot take anything for granted anymore.

This is why we have stat calls, defensive programming, APIs and exception handling. The first rule of system programming is to never take anything for granted.

I have reached to the end of the time I have for today,

Have a nice day and a nice year.

Re:OpenBSD KDE Plasma Desktop by radiator on Monday January 08, 2024 @04:13PM (#38918209)
I guess it has always been like this in Unix, but also in other Operating Systems.
Re:OpenBSD KDE Plasma Desktop by Am4TIfIsER0ppos on Monday January 08, 2024 @02:51PM (#38917127)
"To upload a file move it to your downloads directory" lmao

Can you "unveil" more places, without recompiling?

Re:OpenBSD KDE Plasma Desktop by codetrotter on Monday January 08, 2024 @02:56PM (#38917205)
It would have cost them nothing to unveil a hypothetical ~/Uploads directory in the process of patching it to unveil ~/Downloads
Re:OpenBSD KDE Plasma Desktop by amatecha on Monday January 08, 2024 @04:01PM (#38918040)
You can trivially-easily add it yourself by editing a text file, unveil is configurable per-process.
Re:OpenBSD KDE Plasma Desktop by codetrotter on Monday January 08, 2024 @04:43PM (#38918619)
True, but defaults are worth a million
Re:OpenBSD KDE Plasma Desktop by radiator on Tuesday January 09, 2024 @02:54AM (#38923534)
With what purpose? Why do you want two different directories? On second thought, maybe you mean ~/Uploads could be unveiled read-only, though I still don't believe this brings much.
Re:OpenBSD KDE Plasma Desktop by SoftTalker on Monday January 08, 2024 @02:59PM (#38917244)
Yes, configurable in /etc/firefox/unveil.main
Re:OpenBSD KDE Plasma Desktop by artsi0m on Tuesday January 09, 2024 @07:36AM (#38925417)
You can edit /etc/firefox/unveil.main and add string like "~/Documents rwx" so it would be available from firefox
Re:OpenBSD KDE Plasma Desktop by PrimeMcFly on Monday January 08, 2024 @04:25PM (#38918393)
Pros: More of the software has been audited. That's it really. There's nice documentation but that's true for many linux distros as well, and much of the security claims are overblown.

Cons: Lack of available software and software compatibility. Lack of good security options to restrict software and the system.

Re:OpenBSD KDE Plasma Desktop by hospitalJail on Monday January 08, 2024 @01:55PM (#38916410)
You join the social club of people who say "Its not Linux!"

I even had chatgpt try to come up with valid reasons and it struggled.

Re:OpenBSD KDE Plasma Desktop by zilti on Monday January 08, 2024 @02:55PM (#38917178)
If you are the kind of person who uses ChatGPT for such questions, you wouldn't understand it anyway
Re:OpenBSD KDE Plasma Desktop by codetrotter on Monday January 08, 2024 @03:02PM (#38917293)
Either you are prompting it wrong, or you got unlucky, or you are stuck on GPT3.5 still and it’s less capable compared to GPT4 than I remember.

Me:

> Give me a short list of five top things that OpenBSD is superior over Linux for

ChatGPT:

> OpenBSD is known for its strong emphasis on security, simplicity, and code correctness. Here's a brief list of five aspects where OpenBSD is often considered superior to Linux:

> 1. Security by Default: OpenBSD is renowned for its security-oriented design. The system is configured with secure defaults, and security features are integrated directly into the core system, not as add-ons.

> 2. Code Quality and Audit: The OpenBSD project places a high priority on clean, readable, and well-documented code. Regular code audits are conducted to identify and fix security vulnerabilities and bugs.

> 3. Integrated Cryptography: OpenBSD includes various cryptographic tools and libraries as part of its base system, making it easier to implement secure applications.

> 4. Pf (Packet Filter): OpenBSD's native firewall, pf, is highly regarded for its flexibility and efficiency. It's often considered more straightforward and powerful than iptables, commonly used in Linux.

> 5. Documentation and Man Pages: OpenBSD’s documentation, especially its man pages, is extensive and well-maintained. It provides detailed and up-to-date information on system commands, configurations, and daemons.

> It's important to note that while OpenBSD excels in these areas, the choice between OpenBSD and Linux depends on specific use cases and personal preferences.

And then for the cons, flip the question around and ask ChatGPT for a list of five ways in which Linux is superior over OpenBSD. (Left as an exercise for the reader.)

Re:OpenBSD KDE Plasma Desktop by ikmckenz on Tuesday January 09, 2024 @12:03AM (#38922548)
Pros: Secure-by-default, easy to understand your whole system, pledge and unveil are developer-friendly hardening mechanisms, all the answers to your questions are in the (very good) documentation

Cons: all the answers to your questions are in the documentation, and not in stack overflow.

Re:OpenBSD KDE Plasma Desktop by artsi0m on Tuesday January 09, 2024 @07:49AM (#38925550)
It somehow happens that OpenBSD feels like an whole operating system rather than Linux distro built from various components. For example, when pledge(2) and unveil(2) appeared, many user-space programms got patched as soon as possible. You can see simillar process now, after pinsyscall(2) appeared and syscall(2) was removed.

I heard, that there is something simillar in FreeBSD with zstd compression.

For me cons is that you can't run some programms that depends on Linux kernel insides, like rr debugger, which depends on some specific of linux ptrace(2): https://github.com/rr-debugger/rr?tab=readme-ov-file#system-...