]> git.baikalelectronics.ru Git - kernel.git/commit
device_cgroup: prepare code for bpf-based device controller
authorRoman Gushchin <guro@fb.com>
Sun, 5 Nov 2017 13:15:31 +0000 (08:15 -0500)
committerDavid S. Miller <davem@davemloft.net>
Sun, 5 Nov 2017 14:26:51 +0000 (23:26 +0900)
commitb06ad9f3fcf08a09757ece621600c28f94fc2680
treef807782b4060641e926e7d600369d7dd0f058e2a
parentb58800fdc261df80e28ab4b8542bc13d415a2c83
device_cgroup: prepare code for bpf-based device controller

This is non-functional change to prepare the device cgroup code
for adding eBPF-based controller for cgroups v2.

The patch performs the following changes:
1) __devcgroup_inode_permission() and devcgroup_inode_mknod()
   are moving to the device-cgroup.h and converting into static inline.
2) __devcgroup_check_permission() is exported.
3) devcgroup_check_permission() wrapper is introduced to be used
   by both existing and new bpf-based implementations.

Signed-off-by: Roman Gushchin <guro@fb.com>
Acked-by: Tejun Heo <tj@kernel.org>
Acked-by: Alexei Starovoitov <ast@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/device_cgroup.h
security/device_cgroup.c