Skip to content
Snippets Groups Projects
Commit 088ab0b4 authored by Ludwig Nussel's avatar Ludwig Nussel Committed by Greg Kroah-Hartman
Browse files

kernel/ksysfs.c: expose file_caps_enabled in sysfs


A kernel booted with no_file_caps allows to install fscaps on a binary
but doesn't actually honor the fscaps when running the binary. Userspace
currently has no sane way to determine whether installing fscaps
actually has any effect. Since parsing /proc/cmdline is fragile this
patch exposes the current setting (1 or 0) via /sys/kernel/fscaps

Signed-off-by: default avatarLudwig Nussel <ludwig.nussel@suse.de>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent aed65af1
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment