News for hackers. Stuff that matters.
Re:Haiku R1/beta1 has been released by cgb223 on Saturday September 29, 2018 @04:04AM (#18099231)
What are the advantages to using HaikuOS vs other OSes?
Re:Haiku R1/beta1 has been released by david-given on Saturday September 29, 2018 @05:44AM (#18099523)
It's a very lightweight single-user OS with an excellent GUI and a Posix command-line environment (i.e. bash, make, gcc etc).

It's not a server OS, and it's not particularly secure, so it's not a particularly good choice in any environment where it's faced with the outside world: it assumes that you own the machine, trust it, and control what software runs on it. Remember it came out of the DOS and Win95 era.

But it's really good at giving you a comfortable Unix-ish development environment on old Pentium-grade hardware which Linux struggles on.

Re:Haiku R1/beta1 has been released by agumonkey on Saturday September 29, 2018 @08:54AM (#18100066)
Watching the 97 demos of multithreaded gui and decoupled subsystems (could change rendering parameters on the fly for each different screens) I was as sad as moved. Quite a peculiar bit of history.
Re:Haiku R1/beta1 has been released by smallstepforman on Saturday September 29, 2018 @04:29AM (#18099301)
Same dev team does whole stack, from kernel, kits, drivers, servers to user space. In theory, it is all integrated and has direct path from server to kernel, resulting in more efficient system.

BeOS core API was designed for multi core systems from day one, so the design is more modern than older systems.

The core API is C++, from kernel to user space.

Lots of things to like, it just needs more polish and devs to flourish.

Re:Haiku R1/beta1 has been released by tialaramex on Saturday September 29, 2018 @05:21AM (#18099470)
> Same dev team does whole stack, from kernel, kits, drivers, servers to user space. In theory, it is all integrated and has direct path from server to kernel, resulting in more efficient system.

Except, while that's often what the blurb says, the implementation is typically paste in whatever somebody else wrote and call it a day.

For example years back Haiku announced it was going to have WiFi. Its own WiFi stack, far more integrated and reliable than things you were using on other systems. Very exciting.

And then as a "stop gap" it pasted in FreeBSD's PCI 802.11 driver subsystem, and the WPA Supplicant you've seen on all your Free Unix systems. And that's where they stopped. Last time I checked they had a version of WPA Supplicant vulnerable to KRACK but I'm sure they'd updated for the Beta.

How does their "integrated" solution handle your WiFi credentials? They use the powerful Haiku "KeyStore" password protection system. Here's how that works: You write the plaintext password into a file. Don't worry though, in KeyStore they wrote "TODO: Actually encrypt". Which I think you'll agree is almost as good as using encryption ?

> BeOS core API was designed for multi core systems from day one, so the design is more modern than older systems.

More modern is relative. "Older systems" in this context is stuff from the 1980s, because BeOS is roughly the same age as Linux, started in 1991.

However in Haiku you won't find anything like IO Completion ports, or futexes. You won't find any privilege separation because everything runs as "root". Everybody else moved on and Haiku is stuck being really quite good by 1990s standards.

Re:Haiku R1/beta1 has been released by eloisant on Saturday September 29, 2018 @05:31AM (#18099487)
Well, BeOS is the same age as Linux but Linux was an implementation of older concepts (Unix) while BeOS was designed from scratch.
Re:Haiku R1/beta1 has been released by coldtea on Saturday September 29, 2018 @06:01AM (#18099575)
That was 1991 Linux. Modern linux has moved much further than the original implementation, introducing all kinds of non-old-time-UNIX concepts (starting from Plan9 ones).
Re:Haiku R1/beta1 has been released by pjmlp on Saturday September 29, 2018 @06:34AM (#18099659)
It still needs to catch up with mainframes' security, though.
Re:Haiku R1/beta1 has been released by yjftsjthsd-h on Saturday September 29, 2018 @08:35AM (#18100004)
In general I don't know enough to disagree, but keep in mind the context here is comparing to Haiku, which is not great at security, particularly of the multi-user sort to which you refer.
Re:Haiku R1/beta1 has been released by pjmlp on Saturday September 29, 2018 @09:45AM (#18100269)
There is a Multics security research paper that describes out-of-bounds as practically non-existent thanks to PL/I features.

According to the Linux Kernel Security Summit 2018, 68% of kernel exploits are caused by out-of-bounds errors.

That is just one example, there is plenty of material available to anyone that wants to dive into the subject.

So just because GNU/Linux faires better in security towards Haiku, doesn't mean there is nothing left to improve.

Re:Haiku R1/beta1 has been released by waddlesplash on Saturday September 29, 2018 @02:18PM (#18101903)
> You won't find any privilege separation because everything runs as "root".

The GUI runs as root, but you can start applications as non-root users (in fact the sshd does run as another user by default, etc.)

Re:Haiku R1/beta1 has been released by tialaramex on Saturday September 29, 2018 @08:55PM (#18103899)
You can, although the instructions published actually result in you still being root (and using password authentication, erk)

However, privilege separation doesn't really work, even if you go out of your way to become a genuinely non-root user, you can still read, modify and replace system files for example.

Re:Haiku R1/beta1 has been released by waddlesplash on Saturday September 29, 2018 @10:42PM (#18104172)
> You can, although the instructions published actually result in you still being root (and using password authentication, erk)

Huh? Maybe this was true on alpha4 (I have no idea), it certainly isn't true now.

> even if you go out of your way to become a genuinely non-root user, you can still read, modify and replace system files for example.

Root can't even replace system files anymore due to packagefs; but in general, there was a massive refactoring and cleanup of the VFS layer between alpha4 and beta1 which means filesystem permissions are actually enforced now.

Re:Haiku R1/beta1 has been released by tialaramex on Sunday September 30, 2018 @04:03AM (#18105125)
> Huh? Maybe this was true on alpha4 (I have no idea), it certainly isn't true now.

I followed these instructions on a live Haiku Beta ISO:

https://www.haiku-os.org/guides/daily-tasks/netservices/

Following these instructions resulted in me connecting to the Haiku machine as root (named "user" but with user ID zero and thus root rights). I was able to "kill" processes run by the desktop user and so on.

> Root can't even replace system files anymore due to packagefs

While packagefs prevents a naive user from being able to modify their system files, it actually makes it easier for an attacker because you can just add a package to modify things or remove one that's in your way.

Even after creating a separate non-root user and logging in to that rather than the root equivalent user, I was able to continue manipulating the system in this way without trouble, at first removing documentation in the desktop user's language and then gradually replacing software with my own.

Re:Haiku R1/beta1 has been released by waddlesplash on Sunday September 30, 2018 @01:50PM (#18107294)
> Following these instructions resulted in me connecting to the Haiku machine as root (named "user" but with user ID zero and thus root rights). I was able to "kill" processes run by the desktop user and so on.

Well ... yes, because you set the sshd to allow root login, and then logged in as the root user. This is the intended behavior, yes? You can leave that option off, `adduser`, and then log in as the new user instead.

> Even after creating a separate non-root user and logging in to that rather than the root equivalent user, I was able to continue manipulating the system in this way without trouble, at first removing documentation in the desktop user's language and then gradually replacing software with my own.

Hmm, well, that is a bug then; last I tried I thought this was impossible. Perhaps the directory permissions on /system/packages are incorrect.

Re:Haiku R1/beta1 has been released by coldtea on Saturday September 29, 2018 @05:59AM (#18099566)
>servers to user space

Yeah, but isn't most user space one would want to use some GNU util or another or from any number of third-party projects?

Re:Haiku R1/beta1 has been released by pjmlp on Saturday September 29, 2018 @06:36AM (#18099666)
As Apple and Microsoft have found out, one just needs to provide a UNIX/Linux userspace layer and it's a win.
Re:Haiku R1/beta1 has been released by ComputerGuru on Saturday September 29, 2018 @10:21AM (#18100485)
Apple does not have a Unix user space shim, macOS is a Unix OS with non-Unix userspace built on top of that.

But, yes, WSL proves the point.

Re:Haiku R1/beta1 has been released by pjmlp on Saturday September 29, 2018 @10:58AM (#18100717)
Layer != shim, unless I got my English wrong.

My remark was into the sense of those using OS X and WSL as pretty GNU/Linux.

In this context, a certified UNIX has a couple of surprises to those that never left GNU/Linux.

Re:Haiku R1/beta1 has been released by tomovo on Saturday September 29, 2018 @05:19AM (#18099462)
So if it were to be used as a server OS, would it have the potential to be faster/more integrated than Linux? Or at least as well?
Re:Haiku R1/beta1 has been released by ComputerGuru on Saturday September 29, 2018 @10:18AM (#18100471)
> Same dev team does whole stack, from kernel, kits, drivers, servers to user space.

This is why I use FreeBSD.

Re:Haiku R1/beta1 has been released by waddlesplash on Saturday September 29, 2018 @12:56PM (#18101402)
FreeBSD doesn't develop their own desktop environment, window manager, compositor, or display server. Haiku does all of those things.
Re:Haiku R1/beta1 has been released by zokula on Sunday September 30, 2018 @06:45PM (#18108862)
That's why Freebsd lost it's technical lead 15 years ago.
Re:Haiku R1/beta1 has been released by pjmlp on Saturday September 29, 2018 @06:32AM (#18099655)
> The core API is C++, from kernel to user space

That was what made me get interested in BeOS in first place.