]> git.michaelhowe.org Git - packages/o/openafs.git/commit
Linux - Fix disk cache access for selinux/AppArmor constrained processes
authorMarc Dionne <marc.c.dionne@gmail.com>
Wed, 28 Oct 2009 21:54:32 +0000 (17:54 -0400)
committerRuss Allbery <rra@debian.org>
Wed, 4 Nov 2009 04:49:57 +0000 (20:49 -0800)
commit205ff276151bb1736603259eb8d32d0bcbdcc2a3
treee69041b4735dbb31ca5e9768c7da8008afcda925
parentb4f047ffd28cb76a4afbca65cd7b8316d49a3d59
Linux - Fix disk cache access for selinux/AppArmor constrained processes

Preserve the credentials used for cache initialisation and use then
whenever disk cache files are opened.  This takes advantage of the
credentials separation work from David Howells available in kernels
2.6.29 and above.
Access to cache files was done under the security context of the
user process, causing processes constrained by selinux or AppArmor to
fail to access AFS cache files and causing the cache manager to panic.

Besides the RT tickets, should also fix the following Ubuntu bugs:
 415766 429260 457779 459299

FIXES 92944,125544

Change-Id: Ief8acd65c1a3e4d8c951f80bfd65f8340b8cec34
Reviewed-on: http://gerrit.openafs.org/752
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Reviewed-by: Russ Allbery <rra@stanford.edu>
Tested-by: Russ Allbery <rra@stanford.edu>
Reviewed-on: http://gerrit.openafs.org/774
src/afs/LINUX/osi_file.c
src/afs/afs_init.c