]> git.michaelhowe.org Git - packages/o/openafs.git/commit
linux: rpm: Fix SELinux attributes on /afs when installing openafs-client package
authorJonathan Billings <jsbillin@umich.edu>
Wed, 1 Jun 2011 15:05:11 +0000 (11:05 -0400)
committerDerrick Brashear <shadow@dementia.org>
Sun, 5 Jun 2011 15:15:21 +0000 (08:15 -0700)
commit46842f03d96d586e69b9ed5f70d6f4c220d3a93c
treea804dd4c2f6d4293d09d6dd87d81d16e5f847a0b
parentaa7de1a4d3a985a6bef911186ffa249b075efc42
linux: rpm: Fix SELinux attributes on /afs when installing openafs-client package

Since the directory /afs isn't included in the package manifest, but
rather created in a script in the openafs-client package, it never
gets the appropriate SELinux attributes that are required to mount a
volume (mnt_t).

This change fixes the problem by running '/sbin/restorecon' (if it is
an executable that exists) on the /afs directory after the
openafs-client package is installed, right after the directory is
created.

Reviewed-on: http://gerrit.openafs.org/4763
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Simon Wilkinson <sxw@inf.ed.ac.uk>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
(cherry picked from commit b3232b2cb44a3df02a37efd852ecfef2f3a9e5cc)

Change-Id: I5944c16f558f2651250d122f547fbfd71519c1d1
Reviewed-on: http://gerrit.openafs.org/4786
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Derrick Brashear <shadow@dementia.org>
src/packaging/RedHat/openafs.spec.in