• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#!/bin/sh
2#
3# $1: abs path to libdir
4# $2: abs path to .so file
5
6libdir="$1"
7sofile=$(basename "$2")
8
9if command -v restorecon >/dev/null; then
10	echo "Restoring SELinux context on ${DESTDIR}${libdir}/${sofile}"
11	restorecon "${DESTDIR}${libdir}/${sofile}"
12fi
13