You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Sorry for the late reply, I wanted to deal with this, but forgot it.
The problem here is not FPATH, but the missing configuration files for apparmor. Due to a suboptimal layout of the apparmor package in openSUSE, we can't add this configuration itself (the apparmor package doesn't create the /etc/apparmor.d/abstractions/bash.d drop in directory).
If you want to use apparmor and OHPC you will have to create the file /etc/apparmor.d/abstractions/bash.d/lmod
with the following content
abi <abi/3.0>,
/opt/ohpc/admin/lmod/8.7.53/init/* r,
/opt/ohpc/admin/lmod/8.7.53/libexec/addto ix,
I will create a PR for this. @e4t created this for openSUSE packages.
P.S.
apparmor will go away in the upcoming releases, openSUSE tumbleweed already switched to selinux.
I have a somewhat similar issue to #1974, where
less
used on any file prints this message:I have tracked down the problem to the line:
in
/opt/ohpc/admin/lmod/8.7.53/init/bash
(when commenting this line the message doesn't appear anymore).Running this line in bash directly works normally.
I confirmed that this is an AppArmor problem by looking at the logs in
/var/log/audit/audit.log
:I have tried to add
/usr/bin/lua5.3
to/etc/apparmor.d/usr.bin.lessopen.sh
, to try the solution proposed in #1974, but that didn't solve the problem.I have reproduced the issue on fresh installs of both openSuse Leap 15.5 and 15.6, after setting up OpenHPC repository and installing only
ohpc-base
.I noticed that package
lua-lmod
provided in the openSuse repository doesn't have this problem, and seems to enclose theexport FPATH...
part with:The text was updated successfully, but these errors were encountered: