summaryrefslogtreecommitdiff
path: root/src/libinput-restore-selinux-context.sh
blob: 606b5b08344497bef9e1d6b527180613c50474db (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/sh
#
# $1: abs path to libdir
# $2: abs path to .so file

libdir="$1"
sofile=$(basename "$2")

if command -v restorecon >/dev/null; then
	echo "Restoring SELinux context on ${DESTDIR}${libdir}/${sofile}"
	restorecon "${DESTDIR}${libdir}/${sofile}"
fi