OpenGrok search
   
Repository SCM Type: Parent (branch) Current version
nginx Mercurial: (default) 2022-07-19 17:05 +0300 069a 2022-07-19 17:05 +0300 069a4813e8d6 Maxim Dounin <mdounin@mdounin.ru> release-1.23.1 tag show more ...
unit Mercurial: (default) 2022-08-02 19:39 +0200 8eee 2022-08-02 19:39 +0200 8eee6cdafb58 Alejandro Colomar <alx.manpages@gmail.com> Rejecting non-Linux pivot_root(2).

Some non-Linux systems implement pivot_root(2), even if they
don't document that. An example is MacOS:

$ grepc pivot_root / 2>/dev/null
.../sys/sysproto.h:3012:
int pivot_root(struct proc *, struct pivot_root_args *, int *);

Since the prototype of the syscall differs from that of Linux, we
can't use that syscall. Let's make sure the test only detects
pivot_root(2) under Linux. Also, rename the feature macro to make
clear that it's only about Linux's pivot_root(2).

This closes #737 issue on GitHub.
show more ...