Questions tagged [userland]

15 questions
7
votes
2 answers

Has anyone created a PHP Session-like class in user code (not native)?

The native PHP Session functionality is great, but it's ultimately a singleton. There are times when you need to maintain state for multiple apps and in the scope of an already-started session (e.g. in an app framework). Technically one can…
Steve Clay
  • 8,671
  • 2
  • 42
  • 48
5
votes
2 answers

Is it possible to run the BSD userland as a replacement to GNU coreutils with the linux kernel?

I have been looking for a linux distribution that is not for embedded systems and does not use many of the GNU utilities found in many popular distributions. I want to develop a (pet project) linux distribution that uses musl-libc, bsd userland, and…
wohlleben
  • 59
  • 1
  • 3
3
votes
0 answers

Loading kernel module from C user space application

I'm trying to load a kernel module from C using kmod, but it's not working at all. Here's what I have: #include #include #include #include #include int main(int argc, char **argv){ …
alexandernst
  • 14,352
  • 22
  • 97
  • 197
2
votes
1 answer

Debugging userland program (full of anti debug) through VMWare

I am currently trying to reverse a program under Linux that has a bunch of anti-debug tricks. I was able to defeat some of them, but I am still fighting against the remaining ones. Sadly since I am mediocre, it is taking me more time than expected.…
2
votes
3 answers

Linux userland exec

I need a C library which lets me exec() a statically linked binary, without invoking the execve() system call. The reason why the system call wouldn't work is that the binary file is not executable, and it's not possible to make it executable on…
pts
  • 80,836
  • 20
  • 110
  • 183
1
vote
3 answers

How can I JavaScript add a value to the "onClick" event if the function name is in a string?

THIS ISSUE HAS BEEN FIXED Note: You can read the solution and the evaluation that I carried out thanks to the answers after the explanation of the problem. I am trying to create a small JavaScript script in order to solve some needs for users (a…
Alex
  • 13
  • 4
1
vote
1 answer

Verify FIT image against data corruption in linux userland

How can i check the contents of a FIT image against data corruption in linux userland? Use case: In an embedded application, I have a FIT image in a NAND partition and I want to know if it would be able to boot (without actually booting…
yussuf
  • 635
  • 1
  • 4
  • 18
1
vote
1 answer

Error starting userland proxy: listen tcp 0.0.0.0:7050: bind: address already in use

I'm setting up a Hyperledger Fabric private network on Linux and got the message while running ./byfn.sh up as I'm a newbie in Ubuntu and docker I think that the port needs to be changed in order to fix the problem, however, I have no clue in doing…
1
vote
1 answer

Loading a non-relocatable, static ELF binary in userspace

I'm trying to write a basic userspace ELF loader that should be able to load statically linked (not dynamically linked) non-relocatable binaries (i.e. not built with -pie, -fPIE and so on). It should work on x86 CPU's for now. I've followed the code…
Thomas
  • 3,321
  • 1
  • 21
  • 44
0
votes
0 answers

How to extend the existing generic class power_supply in linux kernel?

I want to extend the generic sysfs class power-supply with some specific attributes. What is the proper way to do that? I'm confused after reading the sysfs power-supply documentation. According to it, it is recommended to use the existing class as…
0
votes
1 answer

Run newer webserver without root permissions

I want to use PHP 7 when it comes out, but my server admin refuses to upgrade past PHP 5.3.3 and I don't have root privileges. I can run a webserver on port 1024 or higher, but I need it to be available on ports 80 and 443. I am considering…
Zach
  • 1
0
votes
1 answer

User Mode vs Userland

Is Userland just another way to say User Space & User-Mode? For example, would I be able to say: There are various subsystems in Userland. Instead of: There are various subsystems in User-Mode. ..and would it be a valid way of saying that?
ajdbnabad13
  • 355
  • 3
  • 11
0
votes
1 answer

Ios Jailbreak-How does this happen?

i am wondering how hackers create jailbreak.I know what means Userland exploit and kernel exploit.I know that when I have userland exploit I need to find kernel exploit.But I really don't know what means "payload", "ROP","ROP Payload","payload".How…
nmzik
  • 141
  • 1
  • 1
  • 9
-1
votes
1 answer

How can I stop emmc recovery?

I have a prebuilt Linux kernel 4.19. I can't build a fresh one. I can mount an emmc partition read-only with no issue. I have trouble mounting partitions read and write. It reports "running CQE recovery" I am thinking of killing the recovery…
Bret Joseph
  • 401
  • 3
  • 13
-1
votes
3 answers

Implementing user level threads library Starting a new thread [Homework]

I have seen this: Implementing a User-Level Threads Package and it doesn't apply. During the implementation of Thread_new(int func(void*)), that assigns a thread and creates a stack, I am unable to think of a way to set the program counter (%eip) if…
GCon
  • 1,397
  • 3
  • 16
  • 33