nix-rust / nix

Rust friendly bindings to *nix APIs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ci: `personality` doc test is failing

tammela opened this issue · comments

The documentation for personality(2) seems to be failing the CI test:
https://cirrus-ci.com/task/4888482292695040

I don't think it's related to #2036.
Other PRs seems to be having the same issue.

I ran it multiple times over the last two weeks, thinking it was possibly a bad image/emulator but it has been persistent (returns EPERM).
Either some CI security sandbox is blocking it or a newer kernel added more security checks...

Might be seccomp. If I don't get a good answer here, I'll disable that doc test. Thanks for reporting.
cirruslabs/cirrus-ci-docs#1182

Disabling seccomp didn't work (see PR #2063). I'm just going to leave that doc test as no_run instead. The effort to work around seccomp outweighs the benefit in test coverage from testing such a trivial function.