HNHacker News
TopNewBestAskShowJobs

ben_bai

642 karma · joined January 19, 2015

submissionscomments
ben_bai··on OpenBSD on a Laptop
MacBook G4 sure... newer ones may have problems. To new users/new hardware I would recommend an usb stick with the network installer and then try to install to the usb stick and check what is working.

Also check if you PC is listed here. https://dmesgd.nycbug.org/index.cgi?do=index&fts=apple

ben_bai··on OpenBSD on a Laptop
It does work if you do it manually. The nested softraid will not be assembled at boot. Thus oficially unsupported.
ben_bai··on One Windows Kernel
Of all the Windows version Win2k still has a special place in my head. Way better/stabler than Win95/Win98. For a long time my goto OS, I finally considered switching to XP SP2 but then Linux entered my world.
ben_bai··on Are Black Holes Actually Dark Energy Stars?
Fabric of spacetime is the name for the 4 dimensional "space" we live in/can observe. But the word space is already defined to 3 dimensions so better call it something else, like fabric.
ben_bai··on What's a CPU to do when it has nothing to do?
Except raising prices is the only thing that has the desired outcome. If PCs use only half the wattage that they used to consume... great now I can afford to run 2 for the same price.
ben_bai··on Modifications to Google Chromium for removing Google integration
It's Chromium without Google integration, too.
ben_bai··on What Is Systems Programming, Really?
that's what -ffreestanding and others (-nostdlib) are for.

C is not cheating, the compiler assumes you work on user level stuff. Want to write bare metal (kernel) then you need to tell the compiler.

ben_bai··on Awesome Tmux
To be fair most tmux use cases are:

ssh -> tmux -> start something -> ctrl-b d -> logout

and maybe later:

ssh -> tmux a

to check the status.

ben_bai··on Happy Sysadmins Day 23 things only 90s Sysadmins will remember
Way too young to be a sysadmin back then but still remember all those things.

Still got a bad habit from Win95, whenever the system seems sluggish I have to move the mouse around, because when the mouse didn't respond under Win95 it was time to press the hardware RESET button.

Maybe that's the reason Windows 2000 is still the best Windows ever in my mind.

ben_bai··on Unveil(2) – Unveil parts of a restricted filesystem view
The trick is to unveil all the files the server needs to operate on and then lock further unveiling.

This way bugs/exploits of the server can't suddenly go read/write to i.e. /etc/passwd.

ben_bai··on OpenBSD disables Intel's hyperthreading due to security concerns
How about 17 seconds? https://www.blackhat.com/us-18/briefings/schedule/#tlbleed-w...
ben_bai··on OpenBSD, C, httpd and SQLite – Web App stack
httpd(8) only supports the FastCGI protocol. If you want to run your "legacy" CGI programs you need a wrapper. The chosen name for this wrapper is slowcgi(8).

CGI always spawns off an new process for each request, and always was slow compared to FastCGI, so slowcgi(8) seems like a good name.

ben_bai··on Retguard: An improved stack protector for OpenBSD
W^X (W xor X) which means memory is either writeable or executable. Guess what, OpenBSD maps code only executable and not writeable.
ben_bai··on Ask HN: How do security researchers know where to look for vulnerabilites?

    "Throw a rock, you gonna hit something"
    --- Ted Unangst, about OpenSSL
I guess it's true for most Software. 1 bug per 1000 LoC is pretty standard.
ben_bai··on NetBSD Network Security Audit
1) reading code, spotting standard bugs, or with domain know-how spotting logic errors.

2) static code analyzers (i.e. llvm scan-build). Lots of false positives, still requires 1).

3) fuzzing (i.e. afl). Usually some setup needed, still requires 1).

ben_bai··on Don't just shorten your URL, make it suspicious and frightening (2010)
OT: I did, it asked me to select traffic signs. No picture had any. Not marking anything is not an option. So I marked 2 traffic lights and a gas station sign. Accepted. :(
ben_bai··on Patch runs ed, and ed can run anything
Patch applies files created with diff. Diff has 4 different output formats. One of those formats is basically a batch script with ed instructions.

For patch to work correctly you have to allow executing ed commands (internally or by spawning ed) but for security reasons you better not let ed execute yet another program.

ben_bai··on Non-uniform memory access meets the OOM killer
What happened to good old returning NULL when no memory is available?

No let's do overcommit (malloc always works) and OOM-kill some random process when under memory pressure!

ben_bai··on Atomically thin LED opens the possibility for invisible displays
Google glass without mirrors?
ben_bai··on Using old laptop batteries to build homemade powerwalls
Except that the dude is measuring every individual cell (remaining capacity, resistance, ...) and then builds his power packs from the good cells. Just look at his channel, he has lots of videos about the process and multiple thousand cells to choose from.
ben_bai··on TinyVM – A small and easy to understand virtual machine in C
In a .h file?

Have to agree with userbinator.

ben_bai··on Shotcut: Free, open source, cross-platform video editor
Ever tried blender? Yes, it has an (Standalone) video editor build in. https://www.blender.org/features/video-editing/
ben_bai··on No One Wants Used Clothes Anymore
If all else fails they are shredded and made into painter mats, industrial rags or even sound proofing panels.
ben_bai··on About the security content of Security Update 2017-001
Oh it's never that easy. It happens 20 layers deep, with configuration set a certain way... only every Friday the 13th.

I.e. MacOS is based on UNIX/BSD, root is all powerfull. So root is disabled form login with <star> password, but it's still there. Then there is the Apple autentication framework on top of that, here root is disabled. But if you try to log in with root, it gets enabled but can't login because password is still <star> an disabled. Then somebody decides new password hashes are safer and we should update old hashes whenever possible. So now when a disabled root account gets enabled, the update routine mishandles <star> password and updates the root password hash with <empty string>.

ben_bai··on The /bin/true Command and Copyright (1990)
Most likely nobody uses /bin/true (/usr/bin/true).

Executing true without the pathname will run the shell embedded function.

ben_bai··on A Little Story About the `yes` Unix Command
This is exactly the OpenBSD implementation.
ben_bai··on A survey of BSD kernel vulnerabilities [pdf]
I only subscribe to OpenBSD but there have been 24 fixes, in the last weeks, for issues reported by Ilja van Sprundel.

http://marc.info/?l=openbsd-cvs&w=2&r=1&s=Ilja+van+Sprundel&...

ben_bai··on SpaceX Successfully Launches and Lands Second Reused Rocket
3 engine landing burn. That thing came in HOT.
ben_bai··on The bell has tolled for rand() (2014)
/dev/urandom is a perfectly good source for random numbers. Because it's fed from the kernel which is gathering all kinds of entropy, including mouse movement interrupt timings. Bad implementations not considered.

One problem with /dev/urandom is you always have to open it, create a filedescriptor just to get to some random number!?

ben_bai··on The bell has tolled for rand() (2014)
Providing good random numbers should be done by the OS (kernel and libc). Don't try to fake it in userland.

   Please wiggle your mouse for 1 minute so we can gather entropy for you AES key.
REALLY?
← PreviousPage 7 of 11Next →