[2]Yazışmada 2 ileti var[RFC] fs/ioctl.c: FIBMAP requires CAP_SYS_RAWIO while FIEMAP exposes identical data unprivileged

From: Cyber_black <hidden>
Date: 2026-05-18 16:21:56
Also in: linux-fsdevel

On Fri, May 15, 2026 at 05:36:45PM +0000, Maintainer wrote:> No, FIEMAP really should not be available unprivileged. So I think B is
the right thing. Can you send a proper patch with a proper signoff?
Absolutely, thanks for the guidance. You're right that Option B is the
correct approach for consistency and security.

I've prepared the patch below. It adds CAP_SYS_RAWIO check to
ioctl_fiemap() to match the protection already in place for FIBMAP.

The check is placed early in the function, before any filesystem-specific
operations, following the same pattern as ioctl_fibmap().

Best regards,

Eneshan Erdoğan Karaca

My github:https://github.com/Kisaca-Enes

Attachments

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help