debian/0000775000000000000000000000000012252704437007176 5ustar debian/libcap-ng-dev.install0000664000000000000000000000020212047464323013167 0ustar usr/include/* usr/lib/*/lib*.a usr/lib/*/lib*.so usr/lib/*/*.la usr/lib/*/pkgconfig/*.pc usr/share/aclocal/* usr/share/man/man3/* debian/python-cap-ng.install0000664000000000000000000000002012047470172013240 0ustar usr/lib/python* debian/libcap-ng0.install0000664000000000000000000000002412047464431012475 0ustar usr/lib/*/lib*.so.* debian/libcap-ng-dev.dirs0000664000000000000000000000002411574675462012500 0ustar usr/lib usr/include debian/copyright0000664000000000000000000000257711574675462011157 0ustar This package was debianized by Pierre Chifflier on Mon, 22 Jun 2009 21:47:25 +0200. It was downloaded from http://people.redhat.com/sgrubb/libcap-ng/ Upstream Author: Steve Grubb Copyright 2009 Red Hat Inc. License: This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This library 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 Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. see `/usr/share/common-licenses/LGPL-2.1'. Files in the 'utils/' directory, Makefile.am and doc/Makefile.am are licensed under the GNU General Public License version 2 or above See `/usr/share/common-licenses/GPL-2'. The Debian packaging is: Copyright (C) 2009 Pierre Chifflier and is licensed under the GPL version 3, see `/usr/share/common-licenses/GPL-3'. debian/python-cap-ng.dirs0000664000000000000000000000001011574675463012550 0ustar usr/lib debian/source/0000775000000000000000000000000011767167220010501 5ustar debian/source/format0000664000000000000000000000001411767167220011707 0ustar 3.0 (quilt) debian/changelog0000664000000000000000000000761612252704437011062 0ustar libcap-ng (0.7.3-1ubuntu2) trusty; urgency=low * debian/{control,rules}: Build with dh-autoreconf for new ports. -- Adam Conrad Fri, 13 Dec 2013 15:23:43 -0700 libcap-ng (0.7.3-1ubuntu1) saucy; urgency=low * Resynchronize on Debian, remaining changes: * debian/control: don't use python-support -- Sebastien Bacher Tue, 07 May 2013 15:34:33 +0200 libcap-ng (0.7.3-1) unstable; urgency=low * Imported Upstream version 0.7.3 * Swith to DH 9 * Tests are no enabled during build (Closes: #583882) -- Pierre Chifflier Sat, 10 Nov 2012 16:29:37 +0100 libcap-ng (0.6.6-2) unstable; urgency=high * Switch to dpkg-source 3.0 (quilt) format * Bump Standards Version to 3.9.3 * Add patch to replace memset calls by a loop to zero array. This should fix a segfault on armel (and other) architectures (Closes: #631807, #635664) * RC bugs, so urgency high -- Pierre Chifflier Sat, 16 Jun 2012 22:38:20 +0200 libcap-ng (0.6.6-1) unstable; urgency=low * Imported Upstream version 0.6.6 * Enable hardening-wrapper * Bump Standard Version to 3.9.2 -- Pierre Chifflier Sat, 25 Jun 2011 13:57:30 +0200 libcap-ng (0.6.5-1) unstable; urgency=low * Imported Upstream version 0.6.5 * Bump standards version to 3.9.1 * debian/rules: Fix installation for python2.7 (Closes: #607121). Thanks to Matthias Klose for the patch. * Use uppercase for word POSIX (Closes: #591065) -- Pierre Chifflier Tue, 14 Dec 2010 22:12:49 +0100 libcap-ng (0.6.4-1) unstable; urgency=low * Imported Upstream version 0.6.4 * Bump Standards version to 3.9.0 -- Pierre Chifflier Tue, 20 Jul 2010 10:03:49 +0200 libcap-ng (0.6.3-1) unstable; urgency=low * Imported Upstream version 0.6.3 * Bump standards version to 3.8.4 -- Pierre Chifflier Sat, 13 Mar 2010 11:14:11 +0100 libcap-ng (0.6.2-4) unstable; urgency=low * Acknowledge NMU (Closes: #563146, #553156, #555716) Thanks Matthias. * Fix lintian warning debhelper-but-no-misc-depends libcap-ng-dev -- Pierre Chifflier Mon, 04 Jan 2010 20:32:45 +0100 libcap-ng (0.6.2-3.1) unstable; urgency=low * NMU * Build with -O0 on sparc/sparc64 to work around GCC ICE. Closes: #563146. * Swap libcap-ng0/libcap-ng-dev package descriptions. Closes: #553156, #555716. -- Matthias Klose Thu, 31 Dec 2009 11:30:56 +0100 libcap-ng (0.6.2-3) unstable; urgency=low * Apply patch from Simon McVittie: * Use host rather than build to detect armel (for correct cross-compilation), use the Debian architecture rather than the GNU triplet, and reference Bug #552224 to explain why the workaround is there -- Pierre Chifflier Mon, 26 Oct 2009 23:34:37 +0100 libcap-ng (0.6.2-2) unstable; urgency=low * Apply patch from Simon McVittie: * Don't optimize on armel, to work around overly aggressive optimization (?) on __thread variable. Closes: #546823 * Fix NAME sections of man pages so whatis can understand them (Lintian warning). * Install .pc file so pkg-config can be used to find libcap-ng (dh_install warning). Closes: #552039 -- Pierre Chifflier Fri, 23 Oct 2009 14:25:28 +0200 libcap-ng (0.6.2-1) unstable; urgency=low * New upstream release -- Pierre Chifflier Fri, 09 Oct 2009 10:22:55 +0200 libcap-ng (0.6.1-1) unstable; urgency=low * New upstream release (Closes: #545556) * Bump Standards Version to 3.8.3 (no changes) * Set package priority to optional (Closes: #545558) * Add new bonary package for Python bindings -- Pierre Chifflier Thu, 10 Sep 2009 01:41:27 +0200 libcap-ng (0.5.1-1) unstable; urgency=low * Initial release (Closes: #533508) -- Pierre Chifflier Mon, 22 Jun 2009 21:47:25 +0200 debian/compat0000664000000000000000000000000212047464064010375 0ustar 9 debian/rules0000775000000000000000000000205112252704340010245 0ustar #!/usr/bin/make -f # -*- makefile -*- # debian/rules file for libcap-ng # Written by Pierre Chifflier # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 export DEB_BUILD_HARDENING=1 PYTHON2=$(shell pyversions -vr) build-python%: build-lib vers="$*"; \ pythonvers="python$*"; \ echo "python $$pythonvers"; \ PYFLAGS="PYTHON_VERSION=$$vers _capng_la_LIBADD=\"-l$$pythonvers\""; \ sed -i "s/2\.[4567]/$$vers/" bindings/python/Makefile; \ $(MAKE) -C bindings/python clean; \ $(MAKE) -C bindings/python $$PYFLAGS; \ $(MAKE) -C bindings/python $$PYFLAGS DESTDIR=$(CURDIR)/debian/tmp-python-cap-ng install; \ echo "OK" override_dh_auto_build: build-lib $(PYTHON2:%=build-python%) build-lib: dh_auto_build override_dh_auto_install: dh_auto_install ;\ rm -rf debian/tmp/usr/lib/python*; \ find debian/tmp-python-cap-ng/usr/lib -name "*.la" -delete; \ mv debian/tmp-python-cap-ng/usr/lib/* debian/tmp/usr/lib/ override_dh_auto_clean: dh_auto_clean -rm -rf debian/tmp-python-cap-ng %: dh $@ --with=python2,autoreconf debian/dirs0000664000000000000000000000002111574675462010066 0ustar usr/bin usr/sbin debian/control0000664000000000000000000000537612252704356010614 0ustar Source: libcap-ng Priority: optional Maintainer: Ubuntu Developers XSBC-Original-Maintainer: Pierre Chifflier Build-Depends: debhelper (>= 9), dh-autoreconf, autotools-dev, libattr1-dev, chrpath, swig, python-all-dev, hardening-wrapper Standards-Version: 3.9.3 Section: libs Homepage: http://people.redhat.com/sgrubb/libcap-ng Package: libcap-ng-dev Section: libdevel Architecture: any Depends: libcap-ng0 (= ${binary:Version}), ${misc:Depends} Description: Development and header files for libcap-ng This library implements the user-space interfaces to the POSIX 1003.1e capabilities available in Linux kernels. These capabilities are a partitioning of the all powerful root privilege into a set of distinct privileges. . The libcap-ng library is intended to make programming with POSIX capabilities much easier than the traditional libcap library. Package: libcap-ng0 Section: libs Architecture: any Pre-Depends: multiarch-support Depends: ${shlibs:Depends}, ${misc:Depends} Description: An alternate POSIX capabilities library This library implements the user-space interfaces to the POSIX 1003.1e capabilities available in Linux kernels. These capabilities are a partitioning of the all powerful root privilege into a set of distinct privileges. . The libcap-ng library is intended to make programming with POSIX capabilities much easier than the traditional libcap library. . This package contains header files and libraries for libcap-ng. Package: libcap-ng-utils Section: admin Architecture: any Depends: ${shlibs:Depends}, ${misc:Depends}, libcap-ng0 (= ${binary:Version}) Description: Utilities for analysing and setting file capabilities This library implements the user-space interfaces to the POSIX 1003.1e capabilities available in Linux kernels. These capabilities are a partitioning of the all powerful root privilege into a set of distinct privileges. . The libcap-ng library is intended to make programming with POSIX capabilities much easier than the traditional libcap library. . This package contains utilies for analysing and setting file capabilities. Package: python-cap-ng Section: python Architecture: any XB-Python-Version: ${python:Versions} Depends: ${shlibs:Depends}, ${misc:Depends}, ${python:Depends} Description: Python bindings for libcap-ng This library implements the user-space interfaces to the POSIX 1003.1e capabilities available in Linux kernels. These capabilities are a partitioning of the all powerful root privilege into a set of distinct privileges. . The libcap-ng library is intended to make programming with POSIX capabilities much easier than the traditional libcap library. . This package contains the Python bindings for libcap-ng. debian/libcap-ng-utils.install0000664000000000000000000000003711574675463013574 0ustar usr/bin/* usr/share/man/man8/* debian/pyversions0000664000000000000000000000000511574675463011351 0ustar 2.4- debian/libcap-ng0.dirs0000664000000000000000000000001011574675463012000 0ustar usr/lib debian/watch0000664000000000000000000000036611574675464010251 0ustar # watch control file for uscan # run the "uscan" command to check for upstream updates and more. # See uscan(1) for format # Compulsory line, this is a version 3 file version=3 http://people.redhat.com/sgrubb/libcap-ng/libcap-ng-(.*)\.tar\.gz debian/docs0000664000000000000000000000001411574675462010057 0ustar NEWS README debian/patches/0000775000000000000000000000000011767167220010630 5ustar debian/patches/01_manpage_description.patch0000664000000000000000000000143611767167220016170 0ustar Description: Fix short description in manpages Fix short description in manpages . Author: Pierre Chifflier --- --- libcap-ng-0.6.6.orig/docs/capng_set_caps_fd.3 +++ libcap-ng-0.6.6/docs/capng_set_caps_fd.3 @@ -1,6 +1,6 @@ .TH "CAPNG_SET_CAPS_FD" "3" "June 2009" "Red Hat" "Libcap-ng API" .SH NAME -capng_set_caps_fd \- +capng_set_caps_fd \- write file-based capabilities to extended attributes .SH "SYNOPSIS" .B #include .sp --- libcap-ng-0.6.6.orig/docs/capng_get_caps_fd.3 +++ libcap-ng-0.6.6/docs/capng_get_caps_fd.3 @@ -1,6 +1,6 @@ .TH "CAPNG_GET_CAPS_FD" "3" "June 2009" "Red Hat" "Libcap-ng API" .SH NAME -capng_get_caps_fd \- +capng_get_caps_fd \- read file-based capabilities from extended attributes .SH "SYNOPSIS" .B #include .sp debian/patches/02_fix_armel_segfault_memset.patch0000664000000000000000000000250311767167220017364 0ustar Index: libcap-ng/src/cap-ng.c =================================================================== --- libcap-ng.orig/src/cap-ng.c 2011-06-11 16:27:05.000000000 +0200 +++ libcap-ng/src/cap-ng.c 2012-06-16 22:28:05.181687824 +0200 @@ -136,6 +136,11 @@ __u32 bounds[2]; }; + +static struct __user_cap_header_struct hdrzz = {0, 0}; +static cap_data_t datazz = { {0, 0, 0} }; +static __u32 boundzz = {0}; + // Global variables with per thread uniqueness static __thread struct cap_ng m = { 1, {0, 0}, @@ -149,7 +154,7 @@ if (m.state != CAPNG_NEW) return; - memset(&m.hdr, 0, sizeof(m.hdr)); + m.hdr = hdrzz; (void)capget(&m.hdr, NULL); // Returns -EINVAL if (m.hdr.version == _LINUX_CAPABILITY_VERSION_3 || m.hdr.version == _LINUX_CAPABILITY_VERSION_2) { @@ -161,7 +166,7 @@ return; } - memset(&m.data, 0, sizeof(cap_data_t)); + m.data = datazz; #ifdef HAVE_SYSCALL_H m.hdr.pid = (unsigned)syscall(__NR_gettid); #else @@ -178,10 +183,13 @@ return; if (set & CAPNG_SELECT_CAPS) - memset(&m.data, 0, sizeof(cap_data_t)); + m.data = datazz; #ifdef PR_CAPBSET_DROP - if (set & CAPNG_SELECT_BOUNDS) - memset(m.bounds, 0, sizeof(m.bounds)); + if (set & CAPNG_SELECT_BOUNDS) { + unsigned i; + for (i=0; i