29,777 questions with no answers
2
votes
0
answers
121
views
Why is epoll not signalling EPOLLIN for anonymous pipe when all write ends have been closed?
Why is epoll not signalling EPOLLIN for anonymous pipe read end when all write ends have been closed and there is no more data to read? This seems to differ from the behaviour with TCP sockets being ...
2
votes
0
answers
51
views
How can I add more storage in assembly (x86) as user is typing input?
I am trying to build some kind of simple text editor and I am trying to get input from user but it is not unlimited, user can only input 10 bytes of memory
section .bss
input resb 10
info ...
0
votes
0
answers
28
views
Simulating keypress in java running in linux to change keyboard layout
I am writing a dictionary program with requires switching keyboard layout.
I have kde set up that ctrl-alt-k switches layout.
I have tried simulating the ctrl-alt-k keypress from the program but this ...
0
votes
0
answers
299
views
How to store credentials in IWD for PEAP/MSCHAPV2 network
I'm trying to connect to a WPA2-Enterprise network with PEAP security and MSCHAPV2 for phase 2. I'm using iwd to do that (as I previously failed with wpa_supplicant and networkmanager).
Successful ...
2
votes
0
answers
105
views
How can I track process creation using ptrace in C and ensure only one child process is allowed?
I'm trying to use ptrace.h to track the creation of new processes in a binary. My intent is to only allow the creation of a single process (that in the future I will also track what it can write).
To ...
1
vote
0
answers
52
views
Could not find *Config.cmake in several C++ cmake projects
I have problem with using libraries for C++ using Conan2 and Cmake in Linux. Files are:
CMakeList.txt in root:
cmake_minimum_required(VERSION 3.5)
set(CMAKE_CXX_COMPILER "/usr/bin/clang++") ...
0
votes
0
answers
107
views
Nodejs puppeteer.launch() is hanging and timing out
After the RHEL8 Patching , Suddenly we started noticing this on our servers and Interesting thing is it is working in other environments which are patched with same versions.
Environment details :
...
1
vote
0
answers
109
views
Running Selenium on Koyeb: Session not created: Chrome failed to start: exited normally
I have been trying to run a Python script that goes into a website using Selenium. Scrape some data and check with a text file if there has been anychanges. If there is a difference send a mail to ...
1
vote
0
answers
89
views
XPresent in a user application that is run with compositing manager
I have an interactive graphics application that run with X11 server. Graphics output can be produced with a means of software rendering(update pixel buffer with a CPU), as well as by the means of ...
0
votes
0
answers
47
views
Second client connect() on unix domain socket succeeds even when listen() set to zero and server only accepts a single connection
I am writing a Python 3-based server/client program using a Unix-domain socket. I am trying to build the server such that only a single client can connect to the server and subsequent connect() calls ...
0
votes
0
answers
46
views
Select a specific USB device with nfcpy when I have multiple identical devices plugged
the nfcpy doc describe five way to select a usb nfc reader :
>>> import nfc
>>> clf = nfc.ContactlessFrontend()
>>> assert clf.open('usb:003:009') is True # open device 9 ...
2
votes
0
answers
97
views
don't timeout on recv just in this one instance
I have a socket for which I set the receive timeout like this:
timeval const tv{.tv_sec = 5};
setsockopt(sock, SOL_SOCKET, SO_RCVTIMEO, &tv, sizeof(tv));
I have one place in the code that I ...
0
votes
0
answers
25
views
Custom VS Code Extension Pack CLI Install
I've created a custom visual studio code extension pack containing extensions I like to use for Python development. I opted to go for a manual distribution and package my extension pack with a .vsix ...
0
votes
0
answers
57
views
300ms delay in network, kernel's TCP write buffer filled to the brim in embedded linux
I'm writing a semi-realtime application for an embedded board running BusyBox which packages and sends some telemetry data (around 100KB) on a TCP socket every 100 milliseconds. This board uses the ...
1
vote
0
answers
57
views
Is it possible to perform a CIFS mount with user permissions after namespace isolation using clone() or unshare()
I'm working on isolating namespaces using clone() in a Linux environment and I have a question regarding CIFS mounts.
If I use clone() to isolate the network namespace (and potentially other ...
0
votes
0
answers
215
views
/sys/fs/cgroup/user.slice/cgroup.subtree_control lists only fraction of enabled controllers
Lately, I found why rootless podman was unable to run containers with some of the constraints:
$ podman run --tty=true --rm --cpuset-cpus=0-3 ubuntu:latest pwd
Error: runc: runc create failed: unable ...
1
vote
0
answers
128
views
cant resolve domain names while docker compose build
I'm encountering an issue when building Docker images using docker compose build. The build process fails with the following error:
curl: (6) Could not resolve host: deb.nodesource.com
This issue ...
0
votes
0
answers
50
views
using org.freedesktop.GeoClue2.Location in c#
I am trying to get the location using org.freedesktop.GeoClue2.Location but i have the error cannot deserialyze type Location. I don't no why.
Stack trace:
at Tmds.DBus.Signature.GetSig(Type type, ...
1
vote
0
answers
94
views
Black output from git is unreadable in my terminal - how to change colors?
I cannot easily read black letters displayed on my bright-white (foreground) on dark-ish blue (background) terminal window. I want to change all the black output from a colorized git diff to some ...
3
votes
0
answers
72
views
How to exactly hook file deletion from eBPF on linux 6.x kernel?
I am looking for ways to prevent file deletion using eBPF LSM hooks.
I have previously looked into pure LSM solution without eBPF but I had to give up on that because that would have required me to ...
0
votes
0
answers
30
views
sg_set_buf reports an error when hot-plugging memory
When memory-hotplugged, new memblock nodes will be added by using standard Linux kernel API:
*add_memory_driver_managed() -> add_memory_resource() -> memblock_add_node() -> memblock_add_range(...
2
votes
0
answers
76
views
Is it possible to specify a source port in libfabric's DRMA client side?
I'm working with libfabric and trying to specify a source port for my application. I've set up my fi_info structure and assigned the source address and port, but it doesn't seem to be working as ...
0
votes
0
answers
112
views
FBIOPUT_VSCREENINFO failed, double buffering disabled on STM32MP157F-EV1
I’m working on an STM32MP157F-EV1 board and encountering this error:
warning: FBIOPUT_VSCREENINFO failed, double buffering disabled
I’ve tried enabling framebuffer-related options, including enabling ...
0
votes
0
answers
39
views
VS Code Runs differently on Windows and Unix using devcontainers and docker
I have a machine learning environment build as a Dockerfile image and as a prebuilt image for my Deep Learning class. That is, when I build my container, I commit it and push it to dockerhub. So I get ...
0
votes
0
answers
48
views
create a gateway with multiple gateway ip to snat egress ip mappings for Openshifts AdminPolicyBasedExternalRoute
The functionality, I try to achieve, is to give selected namespaces on Openshift a specific egress ip address. Example;
namespace bar gets 10.20.30.1
namespace cafe gets 10.20.30.2
On Openshift I can ...