-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Add permission to read /sys/fs/cgroup/system.slice/hosted-compute-agent.service/memory.max in security.policy #18771
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
Conversation
…etStringValue Signed-off-by: Craig Perkins <[email protected]>
|
FYI @reta there are some more issues arising around JDK24, not only socket access for windows. |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #18771 +/- ##
============================================
- Coverage 72.90% 72.83% -0.07%
+ Complexity 68587 68535 -52
============================================
Files 5566 5566
Lines 314701 314701
Branches 45653 45653
============================================
- Hits 229434 229221 -213
- Misses 66655 66905 +250
+ Partials 18612 18575 -37 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
Actually, I think it makes sense to add this in the general grant portion of security.policy. If the JDK allows it generally, then so should our policy and then it doesn't require an update to the agent |
Thanks @cwperks , the missing cgroups parts should be included into |
Pushing an update now. Sorry was afk for a couple of hours. |
Signed-off-by: Craig Perkins <[email protected]>
|
@reta updated this PR. |
Signed-off-by: Craig Perkins <[email protected]>
|
❌ Gradle check result for 862b7a6: FAILURE Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change? |
|
❌ Gradle check result for 862b7a6: FAILURE Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change? |
|
❌ Gradle check result for 862b7a6: FAILURE Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change? |
|
❌ Gradle check result for 862b7a6: FAILURE Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change? |
|
❌ Gradle check result for 862b7a6: FAILURE Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change? |
|
❌ Gradle check result for 00179f2: FAILURE Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change? |
…nt.service/memory.max in security.policy (opensearch-project#18771) * Ignore frames after jdk.internal.platform.CgroupSubsystemController.getStringValue Signed-off-by: Craig Perkins <[email protected]> * Add missing permission in security.policy Signed-off-by: Craig Perkins <[email protected]> * Add current as well Signed-off-by: Craig Perkins <[email protected]> --------- Signed-off-by: Craig Perkins <[email protected]>
…nt.service/memory.max in security.policy (opensearch-project#18771) * Ignore frames after jdk.internal.platform.CgroupSubsystemController.getStringValue Signed-off-by: Craig Perkins <[email protected]> * Add missing permission in security.policy Signed-off-by: Craig Perkins <[email protected]> * Add current as well Signed-off-by: Craig Perkins <[email protected]> --------- Signed-off-by: Craig Perkins <[email protected]>
…nt.service/memory.max in security.policy (opensearch-project#18771) * Ignore frames after jdk.internal.platform.CgroupSubsystemController.getStringValue Signed-off-by: Craig Perkins <[email protected]> * Add missing permission in security.policy Signed-off-by: Craig Perkins <[email protected]> * Add current as well Signed-off-by: Craig Perkins <[email protected]> --------- Signed-off-by: Craig Perkins <[email protected]>
Description
This PR resolves an issue seen in neural-search when trying to upgrade to JDK24
Action in Neural-Search where this was seen: https://github.com/opensearch-project/neural-search/actions/runs/16206585072/job/46116901486?pr=1436
Relevant change in the JDK where AccessController.doPrivileged calls were removed: openjdk/jdk24u@3d49665#diff-96f6e99fbc0d093a8b423d1a3fc86c0408768b2bb10747d926832d9286c6b3bb
See the removed CGroupUtil file
Check List
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.