psmisc
I have attached the latest patch for psmisc that I am using. I have removed a number of gratuitous white-space changes to make it more clear what is being changed for SE, and I have initialised the variable sid in main() in the killall program to -1 so that "killall process" will work.
I will now send this upstream...
Signature · 3 lines
I do not get viruses because I do not use MS software. If you use Outlook then please do not put my email address in your address-book so that WHEN you get a virus it won't use my address in the
Quoted 1 line
From field.
debian/changelog renamed from psmisc-21/debian/changelog +13 -0
@@ -1,3 +1,16 @@ +psmisc (21-3.se2) unstable; urgency=low + + * Removed some of the white-space patches and make killall work when you + don't specify a sid/context. + + -- Russell Coker <[email protected]> Mon, 2 Sep 2002 16:46:00 +0200 + +psmisc (21-3.se1) unstable; urgency=low + + * Compile with SE Linux support. + + -- Russell Coker <[email protected]> Sat, 27 Jul 2002 15:06:00 +0200 + psmisc (21-3) unstable; urgency=low * build-depends needs gettext otherwise conflicts happen Closes:
doc/killall.1 renamed from psmisc-21/doc/killall.1 +8 -0
@@ -11,6 +11,8 @@ .RB [ \-v , \-\-verbose ] .RB [ \-w , \-\-wait ] .RB [ \-V, \-\-version ] +.RB [ \-S , \-\-sid ] +.RB [ \-c , \-\-context ] .RB [ \-s , \-\-signal .IR signal ] .RB [ \-\- ]
@@ -66,6 +68,12 @@ any of the killed processes still exist and only returns if none are left. Note that \fBkillall\fP may wait forever if the signal was ignored, had no effect, or if the process stays in zombie state. +.IP \fB\-S\fP +(Flask only) Specify SID: kill only processes with given SID. Mutually exclusive +with \fB-c\fP argument. Must precede other arguments on command line. +.IP \fB\-c\fP +(Flask only) Specify security context: kill only processes with given security context. +Mutually exclusive with \fB-s\fP. Must precede other arguments on the command line. .SH FILES .nf /proc location of the proc file system
doc/pstree.1 renamed from psmisc-21/doc/pstree.1 +4 -0
@@ -74,6 +74,10 @@ with \fBecho -e '\\033%@'\fP .IP \fB\-V\fP Display version information. +.IP \fB\-s\fP +(Flask) Show Security ID (SID) for each process. +.IP \fB\-x\fP +(Flask) Show security context for each process. .SH FILES .nf /proc location of the proc file system
src/Makefile.am renamed from psmisc-21/src/Makefile.am +4 -1
@@ -1,5 +1,8 @@ CFLAGS = -Wall -DLOCALEDIR=\"/usr/share/locale\" +DEFS = @DEFS@ -I. -I$(srcdir) -I.. -DFLASK_LINUX +INCLUDES = -I/usr/include/selinux +LDADD = /usr/lib/libsecure.a bin_PROGRAMS = fuser killall pstree
@@ -9,7 +12,7 @@ pstree_SOURCES = pstree.c comm.h -pstree_LDADD = @TERMCAP_LIB@ +pstree_LDADD = @TERMCAP_LIB@ $(LDADD) BUILT_SOURCES = signames.h
src/Makefile.in renamed from psmisc-21/src/Makefile.in +10 -14
@@ -1,6 +1,6 @@ -# Makefile.in generated automatically by automake 1.4 from Makefile.am +# Makefile.in generated automatically by automake 1.4-p5 from Makefile.am -# Copyright (C) 1994, 1995-8, 1999 Free Software Foundation, Inc. +# Copyright (C) 1994, 1995-8, 1999, 2001 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved.
@@ -92,6 +92,9 @@ VERSION = @VERSION@ CFLAGS = -Wall -DLOCALEDIR=\"/usr/share/locale\" +DEFS = @DEFS@ -I. -I$(srcdir) -I.. -DFLASK_LINUX +INCLUDES = -I/usr/include/selinux +LDADD = /usr/lib/libsecure.a bin_PROGRAMS = fuser killall pstree
@@ -101,7 +104,7 @@ pstree_SOURCES = pstree.c comm.h -pstree_LDADD = @TERMCAP_LIB@ +pstree_LDADD = @TERMCAP_LIB@ $(LDADD) BUILT_SOURCES = signames.h
@@ -113,21 +116,19 @@ CONFIG_CLEAN_FILES = PROGRAMS = $(bin_PROGRAMS) - -DEFS = @DEFS@ -I. -I$(srcdir) -I.. CPPFLAGS = @CPPFLAGS@ LDFLAGS = @LDFLAGS@ LIBS = @LIBS@ fuser_OBJECTS = fuser.o signals.o fuser_LDADD = $(LDADD) -fuser_DEPENDENCIES = +fuser_DEPENDENCIES = /usr/lib/libsecure.a fuser_LDFLAGS = killall_OBJECTS = killall.o signals.o killall_LDADD = $(LDADD) -killall_DEPENDENCIES = +killall_DEPENDENCIES = /usr/lib/libsecure.a killall_LDFLAGS = pstree_OBJECTS = pstree.o -pstree_DEPENDENCIES = +pstree_DEPENDENCIES = /usr/lib/libsecure.a pstree_LDFLAGS = COMPILE = $(CC) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) LTCOMPILE = $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
@@ -247,7 +248,7 @@ awk ' { files[$$0] = 1; } \ END { for (i in files) print i; }'`; \ test -z "$(ETAGS_ARGS)$$unique$(LISP)$$tags" \ - || (cd $(srcdir) && etags $(ETAGS_ARGS) $$tags $$unique $(LISP) -o $$here/TAGS) + || (cd $(srcdir) && etags -o $$here/TAGS $(ETAGS_ARGS) $$tags $$unique $(LISP)) mostlyclean-tags:
@@ -273,11 +274,6 @@ || cp -p $$d/$$file $(distdir)/$$file || :; \ fi; \ done -fuser.o: fuser.c ../config.h comm.h loop.h signals.h -killall.o: killall.c ../config.h comm.h signals.h -pstree.o: pstree.c ../config.h comm.h -signals.o: signals.c signals.h signames.h - info-am: info: info-am dvi-am:
src/killall.c renamed from psmisc-21/src/killall.c +106 -5
205 lines not on this page · raw message
src/pstree.c renamed from psmisc-21/src/pstree.c +121 -2
258 lines not on this page · raw message