Skip to content

add errnumber flag for bash (kernel filter)#54

Closed
huzai9527 wants to merge 5 commits into
gojue:masterfrom
huzai9527:master
Closed

add errnumber flag for bash (kernel filter)#54
huzai9527 wants to merge 5 commits into
gojue:masterfrom
huzai9527:master

Conversation

@huzai9527
Copy link
Copy Markdown
Contributor

image

Comment thread kern/common.h Outdated
Comment thread kern/bash_kern.c
@cfc4n cfc4n added the enhancement New feature or request label May 4, 2022
Comment thread kern/common.h Outdated
#define AF_INET 2
#define AF_INET6 10
#define SA_DATA_LEN 14
#define ERRNO_DEFAULT 128
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why is it 128 ? why not 0 ?

Copy link
Copy Markdown
Contributor Author

@huzai9527 huzai9527 May 4, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

cause [0-127] has practical meaning,0 represents the command exec successfully

cfc4n and others added 5 commits May 5, 2022 00:25
remove vmlinux.h , use autogen shell to create a compatible code on current kernel version.

Signed-off-by: CFC4N <cfc4n.cs@gmail.com>
on ubuntu 19.10 or newer, bpftool can be installed with `sudo apt install linux-tools-common linux-tools-generic`

Signed-off-by: CFC4N <cfc4n.cs@gmail.com>
# This is the 1st commit message:

modify func readline

# This is the commit message #2:

add errnumber flag for bash command

# This is the commit message #3:

add errnumber flag for bash command

# This is the commit message #4:

add errnumber flag for bash command
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants