|
Bugzilla – Full Text Bug Listing |
| Summary: | zgrep complains about lua-lmod files permissions | ||
|---|---|---|---|
| Product: | [openSUSE] openSUSE Tumbleweed | Reporter: | Christophe Marin <christophe> |
| Component: | Other | Assignee: | Egbert Eich <eich> |
| Status: | RESOLVED FIXED | QA Contact: | E-mail List <qa-bugs> |
| Severity: | Normal | ||
| Priority: | P5 - None | CC: | danilo.spinella, eich, fvogt, jdelvare, meissner |
| Version: | Current | ||
| Target Milestone: | --- | ||
| Hardware: | Other | ||
| OS: | Other | ||
| Whiteboard: | |||
| Found By: | --- | Services Priority: | |
| Business Priority: | Blocker: | --- | |
| Marketing QA Status: | --- | IT Deployment: | --- |
|
Description
Christophe Marin
2023-06-29 07:16:43 UTC
reassigned + added the gzip maintainers to cc /usr/share/lmod/8.7.17/init/bash is not a standalone shell script: it gets sourced - like the other files in this directory Therefore, none of these should have the execute bit set. Furthermore, I've just tested with a freshly updated TW, `zgrep --help` does not give me the strange error message you are seeing. [13:55] <krop> can anyone run `zgrep --help` and check if it complains about lmod permissions? [13:55] <fvogt> /usr/bin/zgrep: /usr/share/lmod/8.7.17/init/bash: Keine Berechtigung That confirms it's not a local issue. I see this too. It's because lua-lmod does export BASH_ENV=/usr/share/lmod/8.7.17/init/bash. zgrep has an apparmor profile which is fairly restrictive and does not allow execution. I also wonder why lua-lmod is installed at all, FWICT it doesn't provide any generically useful functionality? The description says: It is not recommended to install this tool on systems which do not belong to an HPC deployment which uses the module system. But still it's installed by default on TW. (In reply to Fabian Vogt from comment #4) > I also wonder why lua-lmod is installed at all, FWICT it doesn't provide any > generically useful functionality? Lmod's functionality aims *only* at HPC. > The description says: > > It is not recommended to install this tool on systems which do not belong > to an HPC deployment which uses the module system. > > But still it's installed by default on TW. Not sure what you mean: I've just tested the software default selections for all 6 system roles available with TW. For none of these lua-lmod is pre-selected. If you have such a system, please check what requires it. Meanwhile I found bug 1206957 which is the same issue as here but supposedly fixed. (In reply to Egbert Eich from comment #5) > (In reply to Fabian Vogt from comment #4) > > I also wonder why lua-lmod is installed at all, FWICT it doesn't provide any > > generically useful functionality? > > Lmod's functionality aims *only* at HPC. > > > The description says: > > > > It is not recommended to install this tool on systems which do not belong > > to an HPC deployment which uses the module system. > > > > But still it's installed by default on TW. > > Not sure what you mean: I've just tested the software default selections for > all 6 system roles available with TW. For none of these lua-lmod is > pre-selected. > > If you have such a system, please check what requires it. > testsolv -W lua-lmod /var/log/zypper.solverTestCase/testcase.t installed i2c-tools-4.3-1.10.x86_64@@System: update/keep installed installed lua-lmod-8.7.17-2.1.x86_64@openSUSE-20180203-0: i2c-tools-4.3-1.10.x86_64 recommends modules It's because of the way too generic "Provides: modules" which should be renamed to include "lua" at least. i2c-tools has a similarly wrong "Recommends: modules" which should be removed. I suggest to rename that to lua-modules or similar. (In reply to Fabian Vogt from comment #6) > Meanwhile I found bug 1206957 which is the same issue as here but supposedly > fixed. I'm afraid this is not the same. That one triggered Apparmor when trying to run additional commands fron within the inited sources while the one at hand triggers by sourcing (ie. reading) /usr/share/lmod/%version/init/bash itself. I'm afraid this one can only be fixed by adding an apparmor abstraction extending the existing ones for bash. A possible solution can now be found and tested in the lua-lmod devel-project. > (In reply to Egbert Eich from comment #5) > > (In reply to Fabian Vogt from comment #4) > > > I also wonder why lua-lmod is installed at all, FWICT it doesn't provide any > > > generically useful functionality? > > > > Lmod's functionality aims *only* at HPC. > > > > > The description says: > > > > > > It is not recommended to install this tool on systems which do not belong > > > to an HPC deployment which uses the module system. > > > > > > But still it's installed by default on TW. > > > > Not sure what you mean: I've just tested the software default selections for > > all 6 system roles available with TW. For none of these lua-lmod is > > pre-selected. > > > > If you have such a system, please check what requires it. > > > testsolv -W lua-lmod /var/log/zypper.solverTestCase/testcase.t > installed i2c-tools-4.3-1.10.x86_64@@System: > update/keep installed > installed lua-lmod-8.7.17-2.1.x86_64@openSUSE-20180203-0: > i2c-tools-4.3-1.10.x86_64 recommends modules > > It's because of the way too generic "Provides: modules" which should be > renamed to include "lua" at least. 'modules' is the name of the original implementation of environment modules. This is why this Provides is there. https://modules.sourceforge.net/ The package 'Modules' exists on TW which provides `environment-modules`. Maybe this is what Lmod should provide as well. > i2c-tools has a similarly wrong "Recommends: modules" which should be > removed. Indeed. There is no package 'modules'. > I suggest to rename that to lua-modules or similar. This would defy the purpose of this `Provides`. @Jean - could you have a look at the line Recommends: modules in the i2c-tools package? There actually is not real package by this name any more on TW. The dependency to lua-lmod was accidental, I've changed it already. Still, with this line i2c-tools may have undesirable side effects. (In reply to Egbert Eich from comment #7) > (In reply to Fabian Vogt from comment #6) > > It's because of the way too generic "Provides: modules" which should be > > renamed to include "lua" at least. > > 'modules' is the name of the original implementation of environment modules. > This is why this Provides is there. > https://modules.sourceforge.net/ > The package 'Modules' exists on TW which provides `environment-modules`. > Maybe this is what Lmod should provide as well. IIUC, lua-lmod is another implementation of environment modules. If this is meant to be a capability provided by any implementation, "environment-modules" would be correct indeed.. (In reply to Egbert Eich from comment #8) > @Jean - could you have a look at the line > Recommends: modules > in the i2c-tools package? There actually is not real package by this name > any more on TW. The dependency to lua-lmod was accidental, I've changed it > already. > Still, with this line i2c-tools may have undesirable side effects. Note that I already opened https://build.opensuse.org/request/show/1096836. lua-lmod update with an Apparmor abstraction for bash submitted to Factory - SR#1096953. This is an autogenerated message for OBS integration: This bug (1212837) was mentioned in https://build.opensuse.org/request/show/1097041 Factory / lua-lmod |