From 11d6079ed3cb067dc66a795a1c7565c13afd5a00 Mon Sep 17 00:00:00 2001 From: Elliott Hughes Date: Sat, 31 Oct 2015 12:15:25 -0700 Subject: Add ps -Z. As with ls, it doesn't seem like -Z should be guarded behind LSM availability. On a non-SELinux system, the label is always "unconfined". --- toys/pending/lsof.c | 8 -------- 1 file changed, 8 deletions(-) (limited to 'toys/pending') diff --git a/toys/pending/lsof.c b/toys/pending/lsof.c index 18013f77..0a9fc9cd 100644 --- a/toys/pending/lsof.c +++ b/toys/pending/lsof.c @@ -121,14 +121,6 @@ static void fill_flags(struct file_info *fi) fclose(fp); } -static char *chomp(char *s) -{ - char *p = strrchr(s, '\n'); - - if (p) *p = 0; - return s; -} - static int scan_proc_net_file(char *path, int family, char type, void (*fn)(char *, int, char, struct file_info *, long), struct file_info *fi, long sought_inode) -- cgit v1.2.3