-
Notifications
You must be signed in to change notification settings - Fork 107
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
MULTIARCH-4654: Enabled the Security Profiles Operator for ppc64le #2589
base: main
Are you sure you want to change the base?
Conversation
|
Welcome @pranitaT! |
Hi @pranitaT. Thanks for your PR. I'm waiting for a kubernetes-sigs member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: pranitaT The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Thank you for the PR @pranitaT, do you mind signing the CLA? |
Hey @saschagrunert I shared with Pranita how our team signs the CLA. We'll get this done a.s.a.p. Thank you for the time, Paul |
operatorframework.io/arch.amd64: supported | ||
operatorframework.io/arch.ppc64le: supported |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
operatorframework.io/arch.amd64: supported | |
operatorframework.io/arch.ppc64le: supported |
We don't need the arches. I think arm/amd64 are already supported and we are adding s390x.
@@ -102,7 +102,7 @@ func generateBpfObj(builder *strings.Builder) error { | |||
builder.WriteString(header) | |||
builder.WriteString("var bpfObjects = map[string][]byte{\n") | |||
|
|||
for _, arch := range []string{"amd64", "arm64"} { | |||
for _, arch := range []string{"amd64", "arm64", "ppc64le", "s390x"} { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
for _, arch := range []string{"amd64", "arm64", "ppc64le", "s390x"} { | |
for _, arch := range []string{"amd64", "arm64"} { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sorry based on testing, I don't think we need this anymore.
@@ -65,7 +65,7 @@ const ( | |||
docsHeader = "The following Kernels are supported to run the BPF recorder " + | |||
"beside those which already expose `/sys/kernel/btf/vmlinux`. " + | |||
"Please note that at least a Linux kernel version 5.8 is required " + | |||
"to use the bpf recorder.\n\n" | |||
"to use the bpf recorder, and this includes support for ppc64le and s390x architectures.\n\n" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"to use the bpf recorder, and this includes support for ppc64le and s390x architectures.\n\n" | |
"to use the bpf recorder.\n\n" |
Please rebase to fix the CI |
57bc010
to
afbcb5b
Compare
/ok-to-test |
@@ -0,0 +1,16 @@ | |||
//go:build !ppc64le && !s390x | |||
// +build !ppc64le,!s390x |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
// +build !ppc64le,!s390x | |
// +build !ppc64le,!s390x,!amd64 |
Or remove the amd64 entry, and push the method details in here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Probably need to change to _default.go or something along those lines
457c49d
to
f889b64
Compare
b90ed22
to
f5fe13d
Compare
@@ -91,6 +91,7 @@ data: | |||
"setuid", | |||
"sigaltstack", | |||
"socket", | |||
"stat", # Adding 'stat' to support mkdirall functionality |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"stat", # Adding 'stat' to support mkdirall functionality | |
"stat", |
Adding 'stat' to support mkdirall functionality
// UnameMachineToString provides a stub implementation for unsupported architectures. | ||
func UnameMachineToString(uname syscall.Utsname) string { | ||
return "" | ||
} | ||
|
||
// UnameReleaseToString provides a stub implementation for unsupported architectures. | ||
func UnameReleaseToString(uname syscall.Utsname) string { | ||
return "" | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
// UnameMachineToString provides a stub implementation for unsupported architectures. | |
func UnameMachineToString(uname syscall.Utsname) string { | |
return "" | |
} | |
// UnameReleaseToString provides a stub implementation for unsupported architectures. | |
func UnameReleaseToString(uname syscall.Utsname) string { | |
return "" | |
} | |
// UnameMachineToString converts uname.Machine to a string for arm64. | |
func UnameMachineToString(uname *syscall.Utsname) string { | |
return toStringInt8(uname.Machine) | |
} | |
// UnameReleaseToString converts uname.Release to a string for arm64. | |
func UnameReleaseToString(uname *syscall.Utsname) string { | |
return toStringInt8(uname.Release) | |
} |
@@ -0,0 +1,32 @@ | |||
//go:build !ppc64le && !s390x && !amd64 && !arm64 && !linux |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
//go:build !ppc64le && !s390x && !amd64 && !arm64 && !linux | |
//go:build !ppc64le && !s390x |
@@ -0,0 +1,44 @@ | |||
//go:build ppc64le && linux |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
//go:build ppc64le && linux | |
//go:build (ppc64le || s390x) && linux |
What about something like the above?
4590beb
to
72e99ac
Compare
72e99ac
to
a75a1ac
Compare
dirPermissionMode os.FileMode = 0o744 | ||
// dirPermissionMode os.FileMode = 0o744. | ||
|
||
dirPermissionMode os.FileMode = 0o755 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe causing the failures... original is 744
1a91fed
to
e520108
Compare
81d52e8
to
ce9904c
Compare
…dded fixes for seccomp and SELinux profiles, and verified functionality with logenricher.
ce9904c
to
e3c0400
Compare
@pranitaT: The following test failed, say
Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here. |
What type of PR is this?
/kind feature
What this PR does / why we need it:
This PR enables the Security Profiles Operator for the ppc64le architecture, providing support for managing seccomp and SELinux profiles. The changes have been tested and verified using logenricher to ensure functionality and compliance.
Which issue(s) this PR fixes: https://issues.redhat.com/browse/MULTIARCH-4654
Does this PR have test?
N/A
Special notes for your reviewer:
Does this PR introduce a user-facing change?