]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit - kernel/ksysfs.c
kernel/ksysfs.c: expose file_caps_enabled in sysfs
authorLudwig Nussel <ludwig.nussel@suse.de>
Mon, 28 Feb 2011 14:57:17 +0000 (15:57 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 19 Apr 2011 23:45:51 +0000 (16:45 -0700)
commit088ab0b4d855d68a0f0c16b72fb8e492a533aaa1
tree7ca0a26573e074ff754b56eaeeb18467fbcc9926
parentaed65af1cc2f6fc9ded5a8158f1405a02cf6d2ff
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: Ludwig Nussel <ludwig.nussel@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Documentation/ABI/testing/sysfs-kernel-fscaps [new file with mode: 0644]
kernel/ksysfs.c