Skip to content

statx: fallback to lstat if ENOSYS is returned in errno. #2546

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
Oct 23, 2019

Conversation

spevans
Copy link
Contributor

@spevans spevans commented Oct 20, 2019

  • Security mechanisms used in Linux VMs, eg libseccomp and
    Docker's security policy may block certain system calls if they
    are new and unknown to the library and ENOSYS may be returned
    instead of EPERM.

  • Update the use of statx() to disable future calls and fallback to
    lstat() if ENOSYS is returned.

- Security mechanisms used in Linux VMs, eg libseccomp and
  Docker's security policy may block certain system calls if they
  are new and unknown to the library and ENOSYS may be returned
  instead of EPERM.

- Update the use of statx() to disable future calls and fallback to
  lstat() if ENOSYS is returned.
@spevans
Copy link
Contributor Author

spevans commented Oct 20, 2019

@swift-ci test

@spevans
Copy link
Contributor Author

spevans commented Oct 23, 2019

@swift-ci test and merge

@swift-ci swift-ci merged commit ab96e06 into swiftlang:master Oct 23, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants