]> git.ipfire.org Git - thirdparty/lxc.git/commit
caps: add lxc_{proc,file}_cap_is_set()
authorChristian Brauner <christian.brauner@ubuntu.com>
Sat, 15 Apr 2017 13:00:14 +0000 (15:00 +0200)
committerChristian Brauner <christian.brauner@ubuntu.com>
Sat, 15 Apr 2017 20:50:50 +0000 (22:50 +0200)
commit207c4c71ee7b18bca65b02cffe11d65831d85342
tree1884a556a37e2e6fa460f8cbc7285e8039d46149
parent4bc3b759578023f3b1592fe080d6fa605c6e022a
caps: add lxc_{proc,file}_cap_is_set()

Add two new helpers that allow to determine whether a given proc or file has a
capability in the given set and move lxc_cap_is_set() to static function that
both call internally.

Closes #296.

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
src/lxc/caps.c
src/lxc/caps.h
src/lxc/start.c