Use correct kernel headers version
Nobody has claimed this yet.
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 20/100
- Issue type
- Refactor
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- centos, linux, shell
- Domain
- build-system, operating-systems
Research direction
No files or tests are named. Start by locating the arm64 and x86 toolchain configuration and the kernel-header selection, then verify the chosen headers against CentOS 6.10's 2.6.32 baseline. Done means both toolchains use the oldest supported kernel headers and the required compatibility handling is validated.
Written by the indexing model from the issue text.
Description
The arm64 and x86 toolchain should use the same kernel headers version as found on the oldest distro version we want to support. Not newer, not older.
Currently the x86 toolchain targets CentOS 6.10, glibc 2.12.2, which has a kernel version 2.6.32, but we use kernel headers for 4.7.
This causes problems when configuring the third party libraries for the target system, because they can detect features that aren't actually present.
At the same time the kernel data structures used might not be in sync with what the actual underlying kernel is using (think of audit, netlink, perf etc), which could result in errors, access to invalid memory, crashes.
What we should do instead is to have the toolchain use the correct headers and then have osquery create it's own copy of defines or data structures where necessary, and switch between them depending on the version of kernel it's running on.
- Dominant language
- Shell
- Stars
- 43
- Forks
- 23
- PR merge metrics
- No merged PRs in 30d
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from osquery/osquery-toolchain
-
Build error.Open
Difficulty 3/5 1-2 days Newbie friendliness 25/100
osquery/osquery-toolchain#29 ·
-
bug
Difficulty 4/5 3-5 days Newbie friendliness 35/100
osquery/osquery-toolchain#26 ·
-
question
Difficulty 5/5 Over a week Newbie friendliness 25/100
osquery/osquery-toolchain#24 · 3 comments ·
-
Difficulty 4/5 3-5 days Newbie friendliness 25/100
osquery/osquery-toolchain#13 ·
-
Explore toolchain build reproducibilityMay be free again @theopolis claimed this 2644 days ago, and no pull request is open. Openenhancement
osquery/osquery-toolchain#11 · 1 comment · 1 assignee ·
All issues in osquery/osquery-toolchain
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 79/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
ardia-browser/ardia#6391 ·
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
software-mansion-labs/Diplomat#291 ·
Maintainers usually reply within 1 day
-
Area/Infrastructure Aspect/Infra Resources Type/Bug
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
wso2/agent-manager#2717 ·
Maintainers usually reply within 1 day
-
meta
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
last9/last9-mcp-server#786 ·
Maintainers usually reply within 1 day