libinput/src/libinput-restore-selinux-context.sh

11 lines
243 B
Bash
Raw Normal View History

#!/bin/sh
#
# $1: abs path to libdir
# $2: abs path to .so file
libdir="$1"
sofile=$(basename "$2")
echo "Restoring SELinux context on $MESON_INSTALL_DESTDIR_PREFIX/$libdir/$sofile"
restorecon "$MESON_INSTALL_DESTDIR_PREFIX/$libdir/$sofile"