added capability-compat.h
authorEnrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
Thu, 27 Jan 2005 20:38:12 +0000 (20:38 +0000)
committerEnrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
Thu, 27 Jan 2005 20:38:12 +0000 (20:38 +0000)
git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@1822 94cd875c-1c1d-0410-91d2-eb244daf1a30

util-vserver/src/Makefile-files
util-vserver/src/capability-compat.h [new file with mode: 0644]

index 9b6ed53..1a976ae 100644 (file)
@@ -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 (file)
index 0000000..8493080
--- /dev/null
@@ -0,0 +1,31 @@
+// $Id$    --*- c -*--
+
+// Copyright (C) 2005 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
+//  
+// 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 <config.h>
+#endif
+
+#ifdef HAVE_SYS_CAPABILITY_H
+#  include <sys/capability.h>
+#else
+#  include <linux/capability.h>
+
+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