xref: /third_party/libinput/src/libinput-restore-selinux-context.sh
  • Home
  • History
  • Annotate Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
  • only in /third_party/libinput/src/
1a46c0ec8Sopenharmony_ci#!/bin/sh
2a46c0ec8Sopenharmony_ci#
3a46c0ec8Sopenharmony_ci# $1: abs path to libdir
4a46c0ec8Sopenharmony_ci# $2: abs path to .so file
5a46c0ec8Sopenharmony_ci
6a46c0ec8Sopenharmony_cilibdir="$1"
7a46c0ec8Sopenharmony_cisofile=$(basename "$2")
8a46c0ec8Sopenharmony_ci
9a46c0ec8Sopenharmony_ciif command -v restorecon >/dev/null; then
10a46c0ec8Sopenharmony_ci	echo "Restoring SELinux context on ${DESTDIR}${libdir}/${sofile}"
11a46c0ec8Sopenharmony_ci	restorecon "${DESTDIR}${libdir}/${sofile}"
12a46c0ec8Sopenharmony_cifi
13

Indexes created Thu Nov 07 10:32:03 CST 2024