How to fetch certain fields as part of fsuid and euid #3527
Replies: 2 comments 5 replies
-
Other folks might know more but the best we have right now is the |
Beta Was this translation helpful? Give feedback.
-
Is there a reason why you can't use fsuid/euid/fsgid/egid in the bpftrace script and then do the id -> name translation afterwards in some post-processing step? I don't think that the translation can be done synchronously in the BPF program anyways. |
Beta Was this translation helpful? Give feedback.
-
Hi Team - I am working on writing a bt script to fetch the fsuid, euid, fsguid and egid through kernel probes and with the examples in the tools section. I want to use fetch the filesystem user name, group name, effective user and group name. I am not able to find the probes or command examples that can provide me that info. "getent" command can give me this information, but I am not sure if it is supported in bt script. Could you please guide me?
Beta Was this translation helpful? Give feedback.
All reactions