Description
For security reasons /sys/kernel/debug is restrict to root only so by relocating /proc/fs/lustre/ost & mdt to /sys/kenrnel/debug/lustre breaks many tools such as 'performance co pilot" that run as non-privilege users. We rely on such tools to collect lustre metric.
We could change the permissions on /sys/kernel/debug but that is not good security practice. Can there be a build option to selected the location?
Attachments
Issue Links
- is duplicated by
-
LU-11988 Some lctl *_param values only readable by root
-
- Resolved
-
- is related to
-
LU-11988 Some lctl *_param values only readable by root
-
- Resolved
-
-
LU-12244 lfs check subcommand no longer works as non-root user
-
- Resolved
-
-
LU-12513 Address YAML limitations
-
- Resolved
-
-
LU-17471 Add symlink /proc/fs/lustre/osd-*/*/brw_stats to /sys/kernel/debug/lustre/osd-*/*/brw_stats
-
- Resolved
-
-
LU-18709 High frequency performance counters accessible to non-root users
-
- Open
-
-
LU-12841 Add ability for lctl get_param to get subfield of YAML output
-
- Open
-
-
LU-16164 Check params and make them valid YAML if they are designed to be
-
- Open
-
-
LU-17472 Create programming wrappers (python, go) for liblustreapi Netlink stats API
-
- Open
-
- is related to
-
LU-8066 Move lustre procfs handling to sysfs and debugfs.
-
- Open
-
-
LU-9680 Improve the user land to kernel space interface for lustre
-
- In Progress
-
The kernel has rules about what can be in sysfs. An excellent article covering these rules is here:
https://lwn.net/Articles/378884
Since Lustre has complex data files they are not allowed in sysfs. So the quick fix done for the linux client was moving it to debugfs . The point of this policy was due to proc becoming a dumpster. Now the dumpster is debugfs
Note I have been avoiding the move of several files like stats to debugfs for the OpenSFS tree.
No fear netlink will resolve these issues. I have a prototypes partially working. I just need to work out the nesting of data. I see its the ptlrpc service stats.