Skip to content

[7.x][ML] Fix macOS sandbox rules #1147

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

Merged
merged 1 commit into from
Apr 17, 2020

Conversation

droberts195
Copy link
Contributor

Two rules were missing:

  1. We were blocking our own SIGIO signals used to wake up blocking
    file reads. (This is quite nasty as this functionality is only
    used in edge cases.)
  2. We were blocking the setpriority() calls made by nice().

I added the (debug deny) rule so that any blocked calls get logged
to the system console. This makes it easier to see which rules are
required but missing.

I also changed the code style to match what our current style guide
says.

Backport of #1146

Two rules were missing:

1. We were blocking our own SIGIO signals used to wake up blocking
   file reads.  (This is quite nasty as this functionality is only
   used in edge cases.)
2. We were blocking the setpriority() calls made by nice().

I added the (debug deny) rule so that any blocked calls get logged
to the system console.  This makes it easier to see which rules are
required but missing.

I also changed the code style to match what our current style guide
says.

Backport of elastic#1146
@droberts195 droberts195 merged commit 4abacd7 into elastic:7.x Apr 17, 2020
@droberts195 droberts195 deleted the fix_macos_sandbox_7x branch April 17, 2020 10:10
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.

1 participant