unix: add listns syscall introduced in Linux 6.19

Add support for the listns(2) system call available since Linux 6.19.
The system call enumerates namespace IDs with optional filtering by
namespace type and owning user namespace.

Change-Id: I8d880a51bcd97004ab81d09ba0f877aae967f3ca
GitHub-Last-Rev: 43d1dc0ae5ac2789a666cdf6eec92ca2554ef7c7
GitHub-Pull-Request: golang/sys#279
Reviewed-on: https://go-review.googlesource.com/c/sys/+/781686
LUCI-TryBot-Result: golang-scoped@luci-project-accounts.iam.gserviceaccount.com <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Reviewed-by: Junyang Shao <shaojunyang@google.com>
Reviewed-by: Florian Lehner <lhnr.flrn@gmail.com>
Reviewed-by: Michael Pratt <mpratt@google.com>
Auto-Submit: Ian Lance Taylor <iant@golang.org>
Reviewed-by: Tobias Klauser <tobias.klauser@gmail.com>
5 files changed
tree: 241e68b2c3699a864f4ec8f986bdd05637d1c618
  1. cpu/
  2. execabs/
  3. plan9/
  4. unix/
  5. windows/
  6. .gitattributes
  7. .gitignore
  8. codereview.cfg
  9. CONTRIBUTING.md
  10. go.mod
  11. LICENSE
  12. PATENTS
  13. README.md
README.md

sys

Go Reference

This repository holds supplemental Go packages for low-level interactions with the operating system.

Report Issues / Send Patches

This repository uses Gerrit for code changes. To learn how to submit changes to this repository, see https://go.dev/doc/contribute.

The git repository is https://go.googlesource.com/sys.

The main issue tracker for the sys repository is located at https://go.dev/issues. Prefix your issue with “x/sys:” in the subject line, so it is easy to find.