Linux 5.9: Seccomp Notifier, RISC-V and DebugFS


-
The Seccomp Notifier - Cranking up the crazy with bpf()
The 2. feature just landed in the merge window for v5.9. So what better time than now to boot a v5.9 pre-rc1 kernel and play with the new features.
I said that these features make it possible to intercept syscalls that return file descriptors or that pass file descriptors to the kernel. Syscalls that come to mind are open(), connect(), dup2(), but also bpf(). People that read the first blogpost might not have realized how crazy^serious one can get with these two new features so I thought it be a good exercise to illustrate it. And what better victim than bpf().
As we know, bpf() and unprivileged containers don't get along too well. But that doesn't need to be the case. For the demo you're about to see I enabled LXD to supervise the bpf() syscalls for tasks running in unprivileged containers. We will intercept the bpf() syscalls for the BPF_PROG_LOAD command for BPF_PROG_TYPE_CGROUP_DEVICE program types and the BPF_PROG_ATTACH, and BPF_PROG_DETACH commands for the BPF_CGROUP_DEVICE attach type. This allows a nested unprivileged container to load its own device profile in the cgroup2 hierarchy.
-
RISC-V Software Support Adds More Features With Linux 5.9
More kernel architecture features continue to be supported by the RISC-V code with Linux 5.9.
Each kernel cycle we have been seeing more RISC-V code get squared away and over the past year has begun running nicely on the likes of SiFive's HiFive Unleashed.
-
Linux 5.9 Exposes Device Link Details Via Sysfs, Allows Hiding DebugFS From User-Space
There are a few driver core changes for the Linux 5.9 kernel worth mentioning.
Exciting changes to the core driver infrastructure for the mainline Linux kernel are rare though this time around are a few alterations worth pointing out:
- The recently covered work by Sony on being able to allow restricting user-space access to DebugFS while keeping the debug feature enabled is in Linux 5.9. While most distributions / Linux configurations already restrict DebugFS access to root / admin privileges, as this file-system often exposes sensitive system information, the change by Sony allows for it to be initialized but not accessible from user-space. Sony's focus on this effort appears to be in line of further securing their Android smartphones.
-

- Login or register to post comments
Printer-friendly version- 2201 reads
PDF version
More in Tux Machines
- Highlights
- Front Page
- Latest Headlines
- Archive
- Recent comments
- All-Time Popular Stories
- Hot Topics
- New Members
digiKam 7.7.0 is released
After three months of active maintenance and another bug triage, the digiKam team is proud to present version 7.7.0 of its open source digital photo manager. See below the list of most important features coming with this release.
|
Dilution and Misuse of the "Linux" Brand
|
Samsung, Red Hat to Work on Linux Drivers for Future Tech
The metaverse is expected to uproot system design as we know it, and Samsung is one of many hardware vendors re-imagining data center infrastructure in preparation for a parallel 3D world.
Samsung is working on new memory technologies that provide faster bandwidth inside hardware for data to travel between CPUs, storage and other computing resources. The company also announced it was partnering with Red Hat to ensure these technologies have Linux compatibility.
|
today's howtos
|








.svg_.png)
Content (where original) is available under CC-BY-SA, copyrighted by original author/s.

Recent comments
1 year 11 weeks ago
1 year 11 weeks ago
1 year 11 weeks ago
1 year 11 weeks ago
1 year 11 weeks ago
1 year 11 weeks ago
1 year 11 weeks ago
1 year 11 weeks ago
1 year 11 weeks ago
1 year 11 weeks ago