We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1c55833 commit 8aaaa23Copy full SHA for 8aaaa23
src/uu/pgrep/src/process.rs
@@ -409,6 +409,14 @@ impl ProcessInformation {
409
self.get_uid_or_gid_field("Gid", 1)
410
}
411
412
+ pub fn suid(&mut self) -> Result<u32, io::Error> {
413
+ self.get_uid_or_gid_field("Uid", 2)
414
+ }
415
+
416
+ pub fn sgid(&mut self) -> Result<u32, io::Error> {
417
+ self.get_uid_or_gid_field("Gid", 2)
418
419
420
// Root directory of the process (which can be changed by chroot)
421
pub fn root(&mut self) -> Result<PathBuf, io::Error> {
422
read_link(format!("/proc/{}/root", self.pid))
0 commit comments