244 questions
5
votes
1
answer
76
views
write(2) syscall returns EFAULT for string in .rodata on OpenBSD 7.3--7.8
I'm writing a hello-world program in i386 assembly for OpenBSD 7.8. The program works if the string (buf argument of write(2)) is in .data or on the stack, but write(2) returns EFAULT (== 14) if the ...
0
votes
1
answer
161
views
OpenBSD httpd location match patterns rule returns 404 for anything beginning with any character in the set
In configuring location match rules for OpenBSD httpd, which uses patterns, an OpenBSD implementation of Lua patterns, the following rules result in any request that begins with one of the characters (...
3
votes
1
answer
123
views
How can I use a IPV6-only socket on BSD systems?
I am trying to listen on a socket. If the user specifies to use IPv6, I use the following, which works on Linux:
setsockopt(listen_fd, SOL_IPV6, IPV6_V6ONLY, &one, sizeof(one));
But SOL_IPV6 does ...
2
votes
0
answers
98
views
compile gcc on openbsd for libgccjit -- unable to find libc.a
I have cloned gcc repo from (https://github.com/gcc-mirror/gcc/tree/releases/gcc-13). Configured within build directory as such:
../configure --enable-host-shared --enable-languages=jit,c++ --disable-...
2
votes
1
answer
383
views
Are there always-used and Kernel-specific system call for BSDs and Linux?
I am currently working on a project depends on detecting which OS the executable belong to.
I am only working on ELF executable format so I tried to use e_ident[EI_OSABI] value but doesn't give ...
1
vote
0
answers
261
views
Setup YubiKey login on OpenBSD
How can I configure YubiKey-based login on OpenBSD without relying on the YubiKey Personalization GUI?
I attempted to set up YubiKey login on OpenBSD by following various online tutorials that explain ...
1
vote
0
answers
39
views
Application freezes when 2xclick on the binary but ok if run from a terminal
I have a fpc (free pascal) with msegui widgetset application that compiles ok on OpenBSD.
It runs perfectly when launched from terminal.
But if 2xclick on the binary in the window manager, the app ...
0
votes
1
answer
149
views
lazy binding failed: undefined symbol 'XRRGetScreenInfo' - compiling sfml program on openbsd
I'm trying to get SFML to work and I ran into this strange problem:
clang++ test.cpp -L/usr/local/lib/ -lsfml-graphics -lsfml-window -lsfml-system
./a.out
a.out:/usr/local/lib/libsfml-window.so.2.0: ...
0
votes
1
answer
66
views
Potential race condition within Python I/O Multiplexer
Problem Statement
We are using tail and subprocess.Popen to ingest log data into a custom application. This application is expected to run on a variety of *NIX systems including OpenBSD, RedHat Linux, ...
-1
votes
1
answer
205
views
How to modify bits in EC of a laptop on BSD?
I am a new user trying to make BSD as my daily driver. Apparently, the only thing stopping me is unable to control the fan. I am using Gigabyte Aero 10th Gen Intel Core i7 with NVIDIA GTX 1660Ti card. ...
4
votes
0
answers
280
views
How can I use c11 headers in openbsd?
I want to use specific c11 macros in my C code, but they aren't available. I installed gcc 8.4 via pkg_add on a fresh OpenBSD 7.1 install. /usr/include/float.h is missing any c11 definitions.
gcc-8.4:
...
2
votes
1
answer
1k
views
How to tell if the current operating system is OpenBSD in NeoVim?
I use NeoVim on two machines, one running OpenBSD and another running Linux. I want to be able to run/load certain commands if I'm on the OpenBSD machine. How can I do this? I've tried the following ...
0
votes
1
answer
650
views
OpenBSD Encode and Decode Base64
According to what I read, OpenBSD seems to have its own system on encoding and decoding using Base64. However,I cant find any literature whatsoever that can describe it mathematically. my question is, ...
0
votes
1
answer
136
views
Is there a preprocessor Macro i can check to see if arc4random is available? [duplicate]
Windows doesn't seem to support arc4random. Is there a preprocessor macro I can use to identify if arc4random is supported by the platform I'm compiling for ?
https://man.openbsd.org/arc4random.3
1
vote
1
answer
827
views
Trying to set up a mail server in OpenBSD: doveadm auth login fails
I set up an OpenBSD 7.0 instance on Vultr in order to get a mail server running with Dovecot and OpenSMTPD. I (mostly) followed the instructions here and here and a bit here.
I set it up to use with ...
0
votes
1
answer
472
views
OpenBSD Socket Programming
There's a dynamic IP address (the public IP of my home) that I'd like to track (i.e., have it as a file on my OpenBSD server). I came up with this simple server:
#include<stdio.h>
#include<...
2
votes
1
answer
385
views
How can I make syscalls directly?
How can I execute syscalls directly? I'm using OpenBSD right now, the Unix platform.
I want to be able to call syscalls without the 'wrapper', as an example:
instead of write(1, "hello!", 6) ...
0
votes
1
answer
270
views
Connect PHP to Postgresql on OpenBSD
I have PHP and Postgresql installed on OpenBSD 7.0 (VPS). PHP is working (I can echo from an index.php file). And my Postgresql server is running (I can connect and create tables from the command ...
0
votes
1
answer
308
views
OpenBSD - PHP (chroot) - exec() cannot execute statically linked binary
I use OpenBSD and PHP for my private homepage. For the purpose of education (don't use this in production), I have to tried to execute a simple Hello World program in a chroot. Linked the binary ...
3
votes
1
answer
933
views
Does OpenBSD support parallel Kernel access
I tried to figure out if multiple processes or threads can execute concurrent syscalls, without one of them sleeping.
That's to say: Does OpenBSD use something like a Big Kernel Lock.
One would expect,...
0
votes
1
answer
1k
views
Failing to connect to IBMi sshd server, password authentication
I am trying to access the SSHD server on my IBMi. However I keep getting Permission denied (publickey,password,keyboard-interactive)..
I am running v7r2 on my IBMi
This was working until ran the ...
-1
votes
1
answer
1k
views
How to run multiple .sh files from different directories [duplicate]
SO I have a BSD server and want to host a Minecraft BungeeCoord server. The thing is the server files are in different directories
EG: /home/name/bungee/servers/Survival/start.sh AND /home/name/bungee/...
0
votes
1
answer
663
views
(Kernel) developer-level documentation concerning OpenBSD
OpenBSD is known to provide correct and extensive documentation, compared to e. g. GNU/Linux. Is there a technical overview, for a developer, who would like to start contributing code to OpenBSD? I ...
0
votes
1
answer
126
views
Java directory pathway
I wanted to start learning Java but I am a bit confused as to how to set the path correctly. I want to make a directory in my home directory for all my java programs so I was thinking something like:
/...
-1
votes
1
answer
821
views
Ansible doesn't seems to apply encrypted vault password but reads the vault file
I'm new to ansible and trying to create new user with encrypted password using ansible-vault. The taget system is OpenBsd, and I'm using ansible 2.10 on Ubuntu 20.04
.
The "problem" is once ...