Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Fix" Permissions in RPM #122

Open
mej opened this issue Feb 6, 2023 · 1 comment · Fixed by #133
Open

"Fix" Permissions in RPM #122

mej opened this issue Feb 6, 2023 · 1 comment · Fixed by #133
Assignees
Labels
enhancement packaging Problems/improvements to RPM/DEB packaging or GNU autotools infrastructure
Milestone

Comments

@mej
Copy link
Owner

mej commented Feb 6, 2023

We (LANL) would like to be able to provide (limited) use of NHC to non-root users, but the permissions settings in the RPM specfile are too restrictive (intentionally) to facilitate this. Specifically, the following changes need to be made:

  • Mode 0711 for directory /etc/nhc
  • Mode 0755 for directory /etc/nhc/scripts
  • Mode 0644 for files /etc/nhc/scripts/*.nhc
  • Mode 0755 for directory /usr/libexec/nhc
  • Mode 0755 for files /usr/libexec/nhc/*

If other necessary changes are revealed, they will be added here.

@mej mej added enhancement packaging Problems/improvements to RPM/DEB packaging or GNU autotools infrastructure labels Feb 6, 2023
@mej mej added this to the 1.5 Release milestone Feb 6, 2023
@mej mej self-assigned this Feb 6, 2023
@mej
Copy link
Owner Author

mej commented Feb 6, 2023

If possible, it might be nice if this were a build-time conditional

mej added a commit that referenced this issue Apr 24, 2023
At LANL, we have use cases that will require `nhc` and its script
files to be readable by normal system users.  Previously, several
directories owned by the `lbnl-nhc` RPM package had permissions of
`0700` for security/privacy reasons; however, nothing in the RPM
itself is privacy- or security-sensitive, so there's no reason to
limit functionality unnecessarily.

It's still possible to obtain the prior behavior by building without
`useraccess` (i.e., `rpmbuild --without useraccess ...`), but the
default is now to use the less restrictive permissions.

Closes #122.
@mej mej linked a pull request Apr 24, 2023 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement packaging Problems/improvements to RPM/DEB packaging or GNU autotools infrastructure
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant