b3357a6f5b90f1e342c270de66491afc412c1cf7Daniel Lezcano * lxc: linux Container library
b3357a6f5b90f1e342c270de66491afc412c1cf7Daniel Lezcano * (C) Copyright IBM Corp. 2007, 2008
9afe19d634946d50eab30e3b90cb5cebcde39eeaDaniel Lezcano * Daniel Lezcano <daniel.lezcano at free.fr>
b3357a6f5b90f1e342c270de66491afc412c1cf7Daniel Lezcano * This library is free software; you can redistribute it and/or
b3357a6f5b90f1e342c270de66491afc412c1cf7Daniel Lezcano * modify it under the terms of the GNU Lesser General Public
b3357a6f5b90f1e342c270de66491afc412c1cf7Daniel Lezcano * License as published by the Free Software Foundation; either
b3357a6f5b90f1e342c270de66491afc412c1cf7Daniel Lezcano * version 2.1 of the License, or (at your option) any later version.
b3357a6f5b90f1e342c270de66491afc412c1cf7Daniel Lezcano * This library is distributed in the hope that it will be useful,
b3357a6f5b90f1e342c270de66491afc412c1cf7Daniel Lezcano * but WITHOUT ANY WARRANTY; without even the implied warranty of
b3357a6f5b90f1e342c270de66491afc412c1cf7Daniel Lezcano * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
b3357a6f5b90f1e342c270de66491afc412c1cf7Daniel Lezcano * Lesser General Public License for more details.
b3357a6f5b90f1e342c270de66491afc412c1cf7Daniel Lezcano * You should have received a copy of the GNU Lesser General Public
b3357a6f5b90f1e342c270de66491afc412c1cf7Daniel Lezcano * License along with this library; if not, write to the Free Software
250b1eec71b074acdff1c5f6b5a1f0d7d2c20b77Stéphane Graber * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
7d40e69bd7fd3e9eaf120be9f749245e7f48f997Daniel Lezcanoextern int lxc_caps_down(void);
7d40e69bd7fd3e9eaf120be9f749245e7f48f997Daniel Lezcanoextern int lxc_caps_up(void);
7d40e69bd7fd3e9eaf120be9f749245e7f48f997Daniel Lezcanoextern int lxc_caps_init(void);
abeded90ddf5619637ad3af901537f50f8a867fbChristian Braunerextern bool lxc_proc_cap_is_set(cap_value_t cap, cap_flag_t flag);
abeded90ddf5619637ad3af901537f50f8a867fbChristian Braunerextern bool lxc_file_cap_is_set(const char *path, cap_value_t cap, cap_flag_t flag);
abeded90ddf5619637ad3af901537f50f8a867fbChristian Braunerstatic inline bool lxc_proc_cap_is_set(cap_value_t cap, cap_flag_t flag) {
abeded90ddf5619637ad3af901537f50f8a867fbChristian Braunerstatic inline bool lxc_file_cap_is_set(const char *path, cap_value_t cap, cap_flag_t flag) {
c4b790845d76edd2ed2f7ed8973dc194be38123aStéphane Graber out: __ret ? errno = ___errno,__ret : __ret2; \