Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add errnumber flag for bash (kernel filter) #54

Closed
wants to merge 5 commits into from
Closed

add errnumber flag for bash (kernel filter) #54

wants to merge 5 commits into from

Conversation

huzai9527
Copy link
Contributor

image

kern/common.h Outdated Show resolved Hide resolved
kern/bash_kern.c Show resolved Hide resolved
@cfc4n cfc4n added the enhancement New feature or request label May 4, 2022
kern/common.h Outdated
@@ -23,11 +23,13 @@
#define AF_INET 2
#define AF_INET6 10
#define SA_DATA_LEN 14
#define ERRNO_DEFAULT 128
Copy link
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
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