From 05d04f83310f016bd6876e5f56239166b7957a08 Mon Sep 17 00:00:00 2001 From: Enrico Scholz Date: Thu, 27 Jan 2005 20:38:12 +0000 Subject: [PATCH] added capability-compat.h git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@1822 94cd875c-1c1d-0410-91d2-eb244daf1a30 --- util-vserver/src/Makefile-files | 1 + util-vserver/src/capability-compat.h | 31 +++++++++++++++++++++++++++++++ 2 files changed, 32 insertions(+) create mode 100644 util-vserver/src/capability-compat.h diff --git a/util-vserver/src/Makefile-files b/util-vserver/src/Makefile-files index 9b6ed53..1a976ae 100644 --- a/util-vserver/src/Makefile-files +++ b/util-vserver/src/Makefile-files @@ -79,6 +79,7 @@ DIETPROGS += src/chcontext-compat \ src/vserver-info noinst_HEADERS += src/vutil.h src/vutil.p \ + src/capability-compat.h \ src/util.h \ src/fstool.h \ src/compat-pivot_root.h \ diff --git a/util-vserver/src/capability-compat.h b/util-vserver/src/capability-compat.h new file mode 100644 index 0000000..8493080 --- /dev/null +++ b/util-vserver/src/capability-compat.h @@ -0,0 +1,31 @@ +// $Id$ --*- c -*-- + +// Copyright (C) 2005 Enrico Scholz +// +// This program is free software; you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation; version 2 of the License. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program; if not, write to the Free Software +// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + + +#ifdef HAVE_CONFIG_H +# include +#endif + +#ifdef HAVE_SYS_CAPABILITY_H +# include +#else +# include + +extern int capget (struct __user_cap_header_struct *, struct __user_cap_data_struct *); +extern int capset (struct __user_cap_header_struct *, struct __user_cap_data_struct *); + +#endif -- 1.8.1.5