libcap - Library for getting and setting POSIX capabilities ChangeLog

HOWTO


# libcap 2.69
# ===========
# Slackware 14.0, 14.1, 14.2: libcap 2.22
# Slackware 15.0: 2.63

# Release Notes for 2.69
# https://sites.google.com/site/fullycapable/release-notes-for-libcap?authuser=0#h.iuvg7sbjg8pe

# Prerequisites:
# Go (optional)

# Get the source
cd
test -f installed/libcap-2.69.tar.gz &&
mv -f installed/libcap-2.69.tar.gz .
test ! -f libcap-2.69.tar.gz &&
wget https://git.kernel.org/pub/scm/libs/libcap/libcap.git/snapshot/libcap-2.69.tar.gz

# Extract the source
mkdir -p -m 0700 ~/src
cd ~/src
find -maxdepth 1 -type d -name "libcap-*" -not -name "libcap-ng-*" \
-exec rm -r {} \;
tar xzvf ~/libcap-2.69.tar.gz
cd libcap-2.69
test $UID = 0 && chown -R root:root .

# Build it
make

# Test the build
make test

# Become root to install it
su

# You may have a bunch of different things using the old/existing version of
# libcap.so.*  Run lsof to see which are running now:
lsof /lib*/libcap.so.*

# Remove the Slackware package, if there is one
test -x /sbin/removepkg && /sbin/removepkg libcap

# If you get a go-related error with 'make install'
# flag provided but not defined: -mod
# Run 'make -i install' to continue passed the error
# ...maybe try upgrading Go
# ...check libcap issue tracker

# Install it
make install
ldconfig

# Also install these contrib scripts
install -m 0755 contrib/pcaps4convenience /usr/sbin/
install -m 0755 contrib/pcaps4server /usr/sbin/
install -m 0755 contrib/pcaps4suid0 /usr/sbin/

# Become your non-root user again
exit

# Save the source for later
cd
mkdir -p 0700 installed
rm -f installed/libcap-*.tar.*
mv libcap-2.69.tar.gz installed/


# If you ever want to uninstall libcap, this should do it:
cd
su
( cd /lib64
  rm -f libcap.* libpsx.* pkgconfig/libpcap.pc libpsx.pc )
( cd /sbin
  rm -f capsh captree getcap getpcaps setcap )
( cd /usr/include/sys
  rm -f capability.h psx_syscall.h )
rm -f /usr/man/man1/capsh.1
( cd /usr/man/man3
  rm -f cap_*.3 capgetp.3 capsetp.3 libcap.3 psx_*.3 )
( cd /usr/man/man8
  rm -f captree.8 getcap.8 getpcaps.8 setcap.8 )
( cd /usr/sbin
  rm -f pcaps4convenience pcaps4server pcaps4suid0 )
ldconfig
exit
find ~/src -maxdepth 1 -type d -name "libcap-*" -exec rm -r {} \;
rm -f ~/installed/libcap-*.tar.*

List of HOWTOs

Web page itself last updated: 2023-12-20 8:06pm (EST -0500)
HOWTO last updated: 2023-09-11 11:30pm
Copyright © 2001-2024 Jason Englander. All Rights reserved.
[HTML5]