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

update(scripts): driver loader cycles available gcc versions #1408

Merged
merged 1 commit into from
Sep 16, 2020

Conversation

fntlnz
Copy link
Contributor

@fntlnz fntlnz commented Sep 16, 2020

The falco-driver-loader script calls dkms to compile the kernel
module using the default gcc.
In some systems, and in the falcosecurity/falco container image,
the defult gcc is not the right one to compile it.

The script will try to compile the module by cycling trough all the available GCCs
starting from the default one until the module is compiled the first
time.

The default gcc is the highest priority while trying.
Newer GCCs have the priority over older GCCs.

Co-Authored-By: Leonardo Di Donato leodidonato@gmail.com
Signed-off-by: Lorenzo Fontana fontanalorenz@gmail.com

What type of PR is this?

/kind feature

/area build

What this PR does / why we need it:

Which issue(s) this PR fixes:

Fixes #1407

Special notes for your reviewer:

Does this PR introduce a user-facing change?:

new(scripts/falco-driver-loader): detect and try to build the Falco kernel module driver using different GCC versions available in the current environment.

The falco-driver-loader script calls dkms to compile the kernel
module using the default gcc.
In some systems, and in the falcosecurity/falco container image,
the defult gcc is not the right one to compile it.

The script will try to compile the module by cycling trough all the available GCCs
starting from the default one until the module is compiled the first
time.

The default gcc is the highest priority while trying.
Newer GCCs have the priority over older GCCs.

Co-Authored-By: Leonardo Di Donato <leodidonato@gmail.com>
Signed-off-by: Lorenzo Fontana <fontanalorenz@gmail.com>
@poiana
Copy link

poiana commented Sep 16, 2020

LGTM label has been added.

Git tree hash: b18ea22ac33d85a3ee42c543c0ffa3b800798f16

@leodido
Copy link
Member

leodido commented Sep 16, 2020

/milestone 0.26.0

@poiana poiana added this to the 0.26.0 milestone Sep 16, 2020
@leodido leodido changed the title update(scripts): driver loader cycle available gcc versions update(scripts): driver loader cycles available gcc versions Sep 16, 2020
Copy link
Member

@leogr leogr left a comment

Choose a reason for hiding this comment

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

LGTM

@poiana
Copy link

poiana commented Sep 16, 2020

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: leodido, leogr

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

falco-driver-loader should try to compile the driver (kmod) with various GCC
4 participants