226,983 questions
Score of -8
0 answers
106 views
How to I clean my environment variables that seem to have been hacked? [closed]
I have a Linux server that has been hacked. They have been able to add a bunch of what look like sub-variables
_xspecs=([lokalize]="!*.po" [acroread]="!*.[pf]df"
I can't reset ...
Score of -4
0 answers
71 views
Can't remove miniconda installation from linux [closed]
I had installed miniconda earlier and worked well until recently. Wanted to wipe it out due to mismatched python installations, however even with sudo on a shared machine, couldn't remove the ...
Score of 0
1 answer
49 views
using argon2 from zig standard library (v0.16.0) verifyHash crashes with a padding error when writing to and reading from a file
I first tested the argon2id algorithm by checking the hash returned from createHash passing it to verifyHash. It worked as expected. Then, I wrote the following code to write the hash to a file and ...
Score of 2
0 answers
134 views
How can I block syscalls for a specific thread on Linux and macOS?
I run untrusted native code (loaded with dlopen) on the same process as trusted code. I want to mark certain threads so that any code running on them cannot make syscalls, while other threads in the ...
Score of 0
0 answers
183 views
Writing just one line to fifo
I'm confused by the following behavior on Linux.
With the below Rust code, when I run the resulting binary in one terminal and run
cat /tmp/fifotest
in another terminal, then in the latter terminal, I ...
Score of 4
4 answers
234 views
Redirect stderr to both stderr and stdout
I'm trying to redirect stderr such that
stderr is integrated in stdout
stderr shown separately as stderr - without stdout in it
F.i. given a script exec_my_proc.sh with content:
echo a
echo b
echo ...
Score of -1
0 answers
49 views
AvaloniaUI app running on Linux DRM (”Framebuffer”), ILITek touch panel, Libinput: rotate touch input to match screen orientation?
Summary
Avalonia 11.3, Linux DRM, libinput. The application’s display is rotated 180º (in hardware), but I cannot find any way to rotate touch inputs to match this orientation.
I want any solution, ...
Score of 1
1 answer
147 views
Understanding the difference between using 'dotnet run' and the Debugger in VS Code
I am working on an ASP.NET Core MVC web app in VS Code using C#. It's a basic MVC project, but I struggle to properly debug it for the following reasons - for context, the setup is as follows:
The ...
Score of 0
1 answer
174 views
Does running Docker inside a KVM VM inside Docker improve security isolation? [closed]
I am evaluating different approaches to improve isolation and security for production workloads and would like feedback from people with experience in virtualization and container security.
My current ...
Score of -3
3 answers
173 views
Best Way to Specify Linux Distribution Repo Version of Python Dependencies?
I have a Python project that needs to be installed at the customer site without PyPI, using only Linux distribution repositories for security reasons. I still want to include the PyPI versions of my ...
Score of 5
1 answer
320 views
How to work around Linux's lack of mandatory file locking?
In Windows, the CreateFile function has a sharing mode, which you can use to prevent other processes from opening files or writing to files you are currently operating on. The same mechanism was ...
Score of 0
1 answer
139 views
How can i solve this pip wfuzz package instalation error? [closed]
I'm trying to install Wfuzz package with the Pip tool but whenever i try i get this error:
Collecting pycurl<=7.43.0.3 (from wfuzz)
Downloading pycurl-7.43.0.3.tar.gz (215 kB)
Installing build ...
Score of 0
2 answers
281 views
How do I allow my program to edit its configuration files in /usr/local/etc?
I am writing a Python program that reads some sensors using a Raspberry Pi and the pigpio library and publishes that data to a MODBUS TCP server. I have packaged this Python script as a binary ...
Score of 1
0 answers
158 views
How to avoid Android Kernel from always rebuilding from scratch?
Every time that I need to build a specific Android Kernel, it restarts the whole build from scratch, ignoring absolutely all previously built objects. In other words, it doesn't matter if I had ...
Score of -5
1 answer
148 views
How does ldd select which lib.so file to load?
On my computer I have 2 libraries with the same name - one is proprietary and one is open source.
In my project I explicitly link to the open source one, however during the runtime the other one loads....