veganism.social is one of the many independent Mastodon servers you can use to participate in the fediverse.
Veganism Social is a welcoming space on the internet for vegans to connect and engage with the broader decentralized social media community.

Administered by:

Server stats:

293
active users

#OpenBSD

39 posts28 participants3 posts today

I need some advise: Is there a good portable and free (really free, not GPL!) #implementation of #bcrypt in #C around?

There's #OpenBSD source I could use, but integrating that would probably be quite a hassle...

Background: I want to start creating a second credential checker for #swad using files. And it probably makes sense to support a sane subset of #Apache's #htpasswd format here. Looking at the docs:
httpd.apache.org/docs/current/
... the "sane subset" seems to be just bcrypt. *MAYBE* also this apache-specific flavor of "iterated" MD5, although that sounds a bit fishy ...

httpd.apache.orgPassword Formats - Apache HTTP Server Version 2.4

Next #swad improvement: Make sure to #wipe #passwords from RAM directly after used. That's more of a #security precaution, because there *should* be no way how an attacker can access a running process' memory, but you never know which bugs surface 🙈.

Unexpectedly, that posed #portability issues. #C11 has #memset_s ... a pretty weird function, but suitable for wiping. It's there on #FreeBSD and on #OpenBSD. Not on #NetBSD though. But NetBSD offers the much saner #C23 function #memset_explicit. Looking at #Linux, there's neither. But there is the (non-standard!) #explicit_bzero 🤯 .. and with glibc, it requires _DEFAULT_SOURCE to be defined as soon as you compile with a C standard version given to the compiler. This function exists on some other systems as well, but there's confusion whether it should be declared in string.h or strings.h. 🤪

Here's the full set of compile-tests I'm now doing, only to find the best way to really erase memory:
github.com/Zirias/swad/blob/ma

And if none of these functions is found, swad uses the "hacky" way that most likely works as well: Access the normal memset function via a volatile pointer.

Simple Web Authentication Daemon. Contribute to Zirias/swad development by creating an account on GitHub.
GitHubswad/src/bin/swad/swad.mk at master · Zirias/swadSimple Web Authentication Daemon. Contribute to Zirias/swad development by creating an account on GitHub.

Today, I implemented the #async / #await pattern (as known from #csharp and meanwhile quite some other languages) ...

... in good old #C! 😎

Well, at least sort of.

* It requires some standard library support, namely #POSIX user context switching with #getcontext and friends, which was deprecated in POSIX-1.2008. But it's still available on many systems, including #FreeBSD, #NetBSD, #Linux (with #glibc). It's NOT available e.g. on #OpenBSD, or Linux with some alternative libc.

* I can't do anything about the basic language syntax, so some boilerplate comes with using it.

* It has some overhead (room for extra stacks, even extra syscalls as getcontext unfortunately also always saves/restores the signal mask)

But then ... async/await in C! 🥳

Here are the docs:
zirias.github.io/poser/api/lat

zirias.github.ioposer: PSC_AsyncTask Class Reference

One of my (very few) annoyances with #OpenBSD is that, in the event of total power failure, the filesystem can be left in an inconsistent state and require manual intervention to fix it before the machine will boot.

I'd find it more annoying, apart from the fact that I have to use the command `fsck_ffs` which perfectly mirrors my own sentiments when it occurs :-D

I started porting a game server to #OpenBSD then realized that OpenBSD doesn't have MySQL 9.1 in ports, so I'm going to see if I can get it working in #FreeBSD. At least I'll be able to jail it.

#LispyGopherClimate #lisp #ai #peertube
communitymedia.video/w/7KpDL8d

@kentpitman #haiku

Resurrected Sandewall's #softwareIndividuals from 2014.

This episode is dedicated to general purpose interaction in the software individual / #CAISOR paradigm.

Next will be porting the dynamicwindows zetalisp zwei to McCLIM #commonlisp.

@prahou #unix_surrealism next #openbsd release art??

Also @pesco and @dougmerritt on IPE '84

co guest and join in on #lambdaMOO as always!

@mdhughes @nosrednayduj @sacha

The SSD in my mailserver has 19,782 power on hours (which is 825 days, little over two years) with 'just' 13 powercycles. And let me tell you, those 13 powercycles are solely because I rebooted the system (upgrade, maintenance).

That is how rock-stable #OpenBSD and #OpenSMTPD are.

The initial konilo-over-irc system is running in the #retro and ##forth channels on libera.chat. This provides a full #Konilo #Forth system, with separate memory, block storage, and stacks per user, and persistence between uses. It uses a lightly modified version of the standard VM, and runs on a stock #OpenBSD system.

The initial code snapshot has been released on my patreon, and a general release will be made in the next few weeks, after further testing, cleanups, and documenting.

I've also been working on a hosted shell-based system, which should be released to my patrons within a few days, and more broadly next month.

With 7.7 on track, I think it's time for some OpenBSD #77HYPE :flan_hacker::flan_cool:

#OpenBSD 7.7 adds ice(4), a new driver for Intel E810 based 100Gb Ethernet devices, and ixv(4), a driver for the virtual functions (SR-IOV) of the Intel 82598EB, 82559, and X540.

bsd.network/@brynet/1134116206

UEFI support improvements, such as preferring GPT in the installer over MBR when installing on modern machines... as well an initial UEFI boot manager support! :flan_cheer:

bsd.network/@brynet/1140012716

bsd.network/@brynet/1140328597

bsd.network/@brynet/1142914585

Jonathan Gray (jsg@) updated the drm(4) graphics drivers (inteldrm/radeondrm/amdgpu) in #OpenBSD 7.7 to 6.12.y/6.12.21 longterm stable drivers, from 6.6.68.

bsd.network/@brynet/1139604047

OpenBSD 7.7 extends pf(4) HFSC Queues to support larger than 4Gbit/s values.

bsd.network/@brynet/1134693228

OpenBSD now has separate performance policies (hw.perfpolicy) for when on battery power vs. on AC power, extending the syntax for hw.perfpolicy=ac-policy,battery-policy.

bsd.network/@brynet/1135209145

AF_FRAME a new socket(4) type, intended for implementing low-overhead/data rate protocols, such as LLDP.

bsd.network/@brynet/1136577293

Many previously unsupported internal webcams now work on more laptops, numerous improvements to the uvideo(4) driver, USB3 speeds, and video(4), the V4L2 compat layer.

bsd.network/@brynet/1136984206

bsd.network/@brynet/1140881252

An issue with flaky PS/2 keyboards/trackpads on some laptops, such as chromebooks was fixed by Miod Vallat.

bsd.network/@brynet/1139810265

Support for the Radxa Orion O6 Armv9 motherboard was as added for OpenBSD 7.7.

bsd.network/@brynet/1140002768

#OpenBSD/arm64 now has SVE (Scalable Vector Extension) support.

bsd.network/@brynet/1139877321

..and lots more for users to discover in the 7.7 release! Keep a look out for the announcement later this month! :flan_guns:

BSD NetworkBryan Steele :flan_beard: (@brynet@bsd.network)A new ixv(4) driver has been added to #OpenBSD -current, for the virtual functions (SR-IOV) of the Intel 82598EB, 82559, and X540 devices. > yasuoka@ modifed src/*: Add ixv(4), a driver for virtual functions of Intel 82598EB, 82559, and X540. The driver was originally written by Intel and released as ixv driver version 1.5.32 and ported to OpenBSD by Yuichiro NAITO, naito.yuichiro at gmail.com. tested by henson at acm.org and many others. > > ok jmatthew iavf(4) was added in 2019 for Intel 700 series SR-IOV devices.

Kevin Lo has added Realtek RTL8125D support to the #OpenBSD rge(4) driver in #OpenBSD -current.

This is an integrated 2.5Gb Ethernet chipset found on some more recent AM5 motherboards.

kevlo@ modified src/*: Add support for the Realtek RTL8125D chip to the rge(4) driver and update microcode for RTL8125B.

The RTL8125D chip can be found on motherboards like MSI PRO B840-P WIFI.