git: be1e4a0bdf45 - main - linux(4): Return ENOSYS for unsupported P_PIDFD waitid idtype.
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 31 Mar 2022 17:50:40 UTC
The branch main has been updated by dchagin: URL: https://cgit.FreeBSD.org/src/commit/?id=be1e4a0bdf45da4bbdce996d2146eba3e32b3766 commit be1e4a0bdf45da4bbdce996d2146eba3e32b3766 Author: Dmitry Chagin <dchagin@FreeBSD.org> AuthorDate: 2022-03-31 17:42:42 +0000 Commit: Dmitry Chagin <dchagin@FreeBSD.org> CommitDate: 2022-03-31 17:42:42 +0000 linux(4): Return ENOSYS for unsupported P_PIDFD waitid idtype. Reviewed by: emaste Differential revision: https://reviews.freebsd.org/D31559 MFC after: 2 weeks --- sys/compat/linux/linux_misc.c | 3 +++ sys/compat/linux/linux_misc.h | 1 + 2 files changed, 4 insertions(+) diff --git a/sys/compat/linux/linux_misc.c b/sys/compat/linux/linux_misc.c index 6eae0fc01694..260eef258ddb 100644 --- a/sys/compat/linux/linux_misc.c +++ b/sys/compat/linux/linux_misc.c @@ -1122,6 +1122,9 @@ linux_waitid(struct thread *td, struct linux_waitid_args *args) return (EINVAL); idtype = P_PGID; break; + case LINUX_P_PIDFD: + LINUX_RATELIMIT_MSG("unsupported waitid P_PIDFD idtype"); + return (ENOSYS); default: return (EINVAL); } diff --git a/sys/compat/linux/linux_misc.h b/sys/compat/linux/linux_misc.h index 9a7cf89466a2..a2dd5eb9f82b 100644 --- a/sys/compat/linux/linux_misc.h +++ b/sys/compat/linux/linux_misc.h @@ -136,6 +136,7 @@ extern int stclohz; #define LINUX_P_ALL 0 #define LINUX_P_PID 1 #define LINUX_P_PGID 2 +#define LINUX_P_PIDFD 3 #define LINUX_RLIMIT_LOCKS 10 #define LINUX_RLIMIT_SIGPENDING 11