diff options
author | Greg Becker <becker33@llnl.gov> | 2018-10-11 14:29:07 -0700 |
---|---|---|
committer | Todd Gamblin <tgamblin@llnl.gov> | 2018-10-11 14:29:07 -0700 |
commit | d1a5113cfed76fb8d4935bb90f83560f231942cb (patch) | |
tree | 1c58cc870e5616365c489f49fc97233cf632fa1f /etc | |
parent | 91fbc59f226c9ddf1bc245848e4aadf6ac5c5587 (diff) | |
download | spack-d1a5113cfed76fb8d4935bb90f83560f231942cb.tar.gz spack-d1a5113cfed76fb8d4935bb90f83560f231942cb.tar.bz2 spack-d1a5113cfed76fb8d4935bb90f83560f231942cb.tar.xz spack-d1a5113cfed76fb8d4935bb90f83560f231942cb.zip |
permissions: add permission configuration to packages.yaml (#8773)
Spack can now be configured to assign permissions to the files installed by a package.
In the `packages.yaml` file under `permissions`, the attributes `read`, `write`, and `group` control the package permissions. These attributes can be set per-package, or for all packages under `all`. If permissions are set under `all` and for a specific package, the package-specific settings take precedence. The `read` and `write` attributes take one of `user`, `group`, and `world`.
packages:
all:
permissions:
write: group
group: spack
my_app:
permissions:
read: group
group: my_team
Diffstat (limited to 'etc')
-rw-r--r-- | etc/spack/defaults/packages.yaml | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/etc/spack/defaults/packages.yaml b/etc/spack/defaults/packages.yaml index 961fb157f0..5c38ddb683 100644 --- a/etc/spack/defaults/packages.yaml +++ b/etc/spack/defaults/packages.yaml @@ -40,4 +40,6 @@ packages: szip: [libszip, libaec] tbb: [intel-tbb] unwind: [libunwind] - + permissions: + read: world + write: user |