Skip to contentSkip to conversation

DISCUSSION Nick 3 participants 5 messages Dec 5, 2003 – Dec 6, 2003 1 message not in the archive SELinux security module

lore
Share & tools
lore

Nick

author
#0 lore raw

I rebooted the system and logged into the console

newrole -r sysadm_r

dmesg | grep ssh

avc: denied { signal } for pid=1002 exe=/usr/sbin/sshd scontext=system_u:system_r:sshd_t tcontext=system_u:system_r:sshd_t tclass=process

I dont think I get this one at all, unless the process which is starting sshd is what is not able to send a signal or is it sshd can't send a signal out?

now I walk over to a terminal and ssh in.

newrole -r sysadm_r

dmesg | grep ssh

avc: denied { signal } for pid=1002 exe=/usr/sbin/sshd scontext=system_u:system_r:sshd_t tcontext=system_u:system_r:sshd_t tclass=process

avc: denied { getattr } for pid=1055 exe=/usr/sbin/sshd name=xauth dev=03:02 ino=2261013 scontext=system_u:system_r:sshd_t tcontext=system_u:object_r:bin_t tclass=file

avc: denied { name_bind } for pid=1055 exe=/usr/sbin/sshd port=6010 scontext=system_u:system_r:sshd_t tcontext=system_u:object_r:port_t tclass=tcp_socket

The first one is the message that is still there from the startup. I'm not sure I understand the next two though.

The daemon wants getattr access to xauth (Why) and it wants to bind to 6010. (Why)

More importantly the question is if these are normal why aren't the covered by the policy already in place? I certainly didn't go out of my way to change the behavior of SSH.

A google search of "SSH" and 6010 indicates that this is normal behavior when the daemon is started with port forwarding turned on. So the question again is since this is "Normal" for Redhat, what is up with the policy??

Nix

Signature · 11 lines
Never give a cow a typewriter - Click, Clack, Moo

Nick (Nix) Gray
Senior Systems Engineer
Bruzenak Inc.
(512) 331-7998

--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to [email protected] with
the words "unsubscribe selinux" without quotes as the message.
#1 lore raw

Re: ssh policy

Quoted 7 lines · Nick

avc: denied { signal } for pid=1002 exe=/usr/sbin/sshd scontext=system_u:system_r:sshd_t tcontext=system_u:system_r:sshd_t tclass=process

I dont think I get this one at all, unless the process which is starting sshd is what is not able to send a signal or is it sshd can't send a signal out?

I don't get it either. Usually sshd runs fine with that blocked, but sometimes it doesn't work correctly. In my latest policy I have enabled that access, but it needs more review.

Quoted 3 lines

avc: denied { getattr } for pid=1055 exe=/usr/sbin/sshd name=xauth dev=03:02 ino=2261013 scontext=system_u:system_r:sshd_t tcontext=system_u:object_r:bin_t tclass=file

You are logging in with X11 forwarding enabled. I strongly recommend that you set "ForwardX11 no" in your ssh_config file and then specifically enable X11 forwarding when you want it with the "-X" option to ssh. Otherwise whenever you ssh to a hostile machine they can use X to take over your account.

Quoted 3 lines

avc: denied { name_bind } for pid=1055 exe=/usr/sbin/sshd port=6010 scontext=system_u:system_r:sshd_t tcontext=system_u:object_r:port_t tclass=tcp_socket

6010 is for DISPLAY=:10.0 . In my current policy I don't enable this unless you have startx or xdm policy included. I can see that this was an error, it should be included for ssh as it's quite valid to have an ssh tunnel be the only X server on a machine. In my next release I will also check for xauth policy.

If you don't have xauth policy then using sshd with X forwarding is probably a bad idea.

PS Please choose an appropriate subject for your messages.

Signature · 10 lines
http://www.coker.com.au/selinux/   My NSA Security Enhanced Linux packages
http://www.coker.com.au/bonnie++/  Bonnie++ hard drive benchmark
http://www.coker.com.au/postal/    Postal SMTP/POP benchmark
http://www.coker.com.au/~russell/  My home page


--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to [email protected] with
the words "unsubscribe selinux" without quotes as the message.

A message that is not in the archive (sent off-list or not yet received): [email protected]

#3 lore raw

Re: ssh policy

Quoted 4 lines · Nick
Quoted 3 lines

I don't get it either. Usually sshd runs fine with that blocked, but sometimes it doesn't work correctly. In my latest policy I have enabled that access, but it needs more review.

Quoted 8 lines

I took a look at the source for sshd. While the daemon is waiting for connections it regenerates it's server key every hour. This is done through a SIGALRM. I am trying to figure out why this would cause intermittent failures on the daemon if it wasn't allowed.

I guess it really doesn't matter, it should be allowed. As the resident expert on policies, can you tell me if we can restrict the signals down to a type? I will look later.

Strange. In any case this has to be enabled for running as a daemon.

For the moment I will deny sshd_t access to send signals to itself when running from inetd.

Quoted 2 lines

I just found out I don't need X at all, so for now this solves any problem I have with that.

In that case it's best to disable X forwarding on both client and server.

Signature · 10 lines
http://www.coker.com.au/selinux/   My NSA Security Enhanced Linux packages
http://www.coker.com.au/bonnie++/  Bonnie++ hard drive benchmark
http://www.coker.com.au/postal/    Postal SMTP/POP benchmark
http://www.coker.com.au/~russell/  My home page


--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to [email protected] with
the words "unsubscribe selinux" without quotes as the message.
#4 lore raw

SLAT: SE Linux policy file analysis.

In reply to Nick

The SELinux Analysis Tools (SLAT) provide a systematic way to determine if security goals are achieved by a given SELinux policy configuration. In particular, SLAT is concerned with information flow security goals, which describe desired paths by which information moves throughout a system. We provide a simple syntax in which to express these goals.

The tools extract the allowed information flows specified by a given SELinux policy configuration. The information flow and the security goals are translated into model checker input, which attempts to prove that the policy configure meets the specified security goals. Each counterexample generated by the model checker indicates some sort of configuration failure.

To make the tools more accessible, I've placed a source distribution and an RPM at the following location:

http://www.ccs.neu.edu/home/ramsdell/tools/selinux/slat-1.0.1.tar.gz

http://www.ccs.neu.edu/home/ramsdell/tools/selinux/slat-1.0.1-1.i386.rpm

The SLAT software uses OCaml, a dialect of ML. The easiest way to install it is with an RPM from:

http://caml.inria.fr

John

--
This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.

#5 lore raw

Security contexts in strace

I augmented strace so one sees security context information in system call trace output. For example, here is an augmented trace of the usual hello world program:

$ ./strace -X ./hello
execve("./hello", ["./hello"], [/* 25 vars */]) = 0 <<ramsdell:user_r:user_t>>
uname({sys="Linux", node="expresso", ...}) = 0 <<ramsdell:user_r:user_t>>
set_tid_address(0)                      = -1 ENOSYS (Function not implemented) <<ramsdell:user_r:user_t>>
brk(0)                                  = 0x8049524 <<ramsdell:user_r:user_t>>
open("/etc/ld.so.preload" <<???>>, O_RDONLY) = -1 ENOENT (No such file or directory) <<ramsdell:user_r:user_t>>
open("/etc/ld.so.cache" <<gwilliam:object_r:etc_t>>, O_RDONLY) = 3 <<ramsdell:user_r:user_t>>
fstat64(3 <<???>>, {st_mode=S_IFREG|0644, st_size=58502, ...}) = 0 <<ramsdell:user_r:user_t>>
old_mmap(NULL, 58502, PROT_READ, MAP_PRIVATE, 3 <<???>>, 0) = 0x40016000 <<ramsdell:user_r:user_t>>
close(3 <<???>>)                        = 0 <<ramsdell:user_r:user_t>>
open("/lib/i686/libc.so.6" <<system_u:object_r:shlib_t>>, O_RDONLY) = 3 <<ramsdell:user_r:user_t>>
read(3 <<???>>, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0000\\\1"..., 512) = 512 <<ramsdell:user_r:user_t>>
fstat64(3 <<???>>, {st_mode=S_IFREG|0755, st_size=1561552, ...}) = 0 <<ramsdell:user_r:user_t>>
old_mmap(NULL, 1288868, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3 <<???>>, 0) = 0x40025000 <<ramsdell:user_r:user_t>>
old_mmap(0x4015a000, 16384, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3 <<???>>, 0x134000) = 0x4015a000 <<ramsdell:user_r:user_t>>
old_mmap(0x4015e000, 6820, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x4015e000 <<ramsdell:user_r:user_t>>
close(3 <<???>>)                        = 0 <<ramsdell:user_r:user_t>>
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40160000 <<ramsdell:user_r:user_t>>
munmap(0x40016000, 58502)               = 0 <<ramsdell:user_r:user_t>>
fstat64(1 <<ramsdell:object_r:user_devpts_t>>, {st_mode=S_IFCHR|0620, st_rdev=makedev(136, 1), ...}) = 0 <<ramsdell:user_r:user_t>>
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40016000 <<ramsdell:user_r:user_t>>
write(1 <<ramsdell:object_r:user_devpts_t>>, "Hello\n", 6Hello
) = 6 <<ramsdell:user_r:user_t>>
munmap(0x40016000, 4096)                = 0 <<ramsdell:user_r:user_t>>
exit_group(0)                           = ? <<ramsdell:user_r:user_t>>
$

To build an SELinux extended strace, save this message in a file named strace-selinux.patch, and then go to

http://sourceforge.net/projects/strace

and download strace version 4.5. Build the patched system as follows.

$ tar xjf strace-4.5.tar.bz2
$ cd strace-4.5
$ patch -p1 < ../strace-selinux.patch
$ autoreconf
$ ./configure
$ make
$ ./strace -X ....

Note, this is a very preliminary version of the code, but I thought some of you might like to play with it in its current state.

John

Only in strace-4.5: aclocal.m4

bjm.c +1 -1
diff -ur strace-4.5/bjm.c strace/bjm.c
@@ -27,7 +27,7 @@
  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  *
- *	$Id: bjm.c,v 1.11 2002/11/06 14:00:12 ludvigm Exp $
+ *	$Id: bjm.c,v 1.1.1.1 2003/11/14 11:32:22 ramsdell Exp $
  */
 #include "defs.h"
 

Only in strace-4.5: compile
Only in strace-4.5: config.guess
Only in strace-4.5: config.h.in
Only in strace-4.5: config.sub
Only in strace-4.5: configure

configure.ac +5 -1
diff -ur strace-4.5/configure.ac strace/configure.ac
@@ -1,6 +1,6 @@
 dnl Process this file with autoconf to create configure.  Use autoreconf.
 AC_PREREQ(2.57)
-AC_INIT([strace],[4.5])
+AC_INIT([strace],[4.5X])
 AC_CONFIG_SRCDIR([strace.c])
 AM_CONFIG_HEADER([config.h])
 AM_INIT_AUTOMAKE([foreign check-news dist-bzip2])
@@ -187,6 +187,10 @@
 AC_CHECK_LIB(nsl, main)
 fi
 
+dnl See if Security-Enhanced Linux library is available.
+AC_CHECK_HEADERS([selinux/selinux.h])
+AC_CHECK_LIB([selinux], [is_selinux_enabled])
+
 AC_CHECK_FUNCS(sigaction strerror strsignal pread sys_siglist _sys_siglist getdents mctl prctl sendmsg inet_ntop if_indextoname)
 AC_CHECK_HEADERS([sys/reg.h sys/filio.h sys/acl.h sys/asynch.h sys/door.h stropts.h sys/conf.h sys/stream.h sys/tihdr.h sys/tiuser.h sys/sysconfig.h ioctls.h sys/ioctl.h sys/ptrace.h termio.h linux/ptrace.h asm/reg.h sys/uio.h sys/aio.h  poll.h sys/poll.h sys/vfs.h asm/sysmips.h linux/utsname.h sys/nscsys.h], [], [])
 AC_CHECK_HEADERS([linux/icmp.h linux/in6.h linux/netlink.h linux/if_packet.h],
COPYRIGHT +1 -1
diff -ur strace-4.5/COPYRIGHT strace/COPYRIGHT
@@ -28,4 +28,4 @@
 (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
 THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 
-$Id: COPYRIGHT,v 1.3 2002/03/31 18:43:00 wichert Exp $
+$Id: COPYRIGHT,v 1.1.1.1 2003/11/14 11:32:22 ramsdell Exp $
debian/copyright +1 -1
diff -ur strace-4.5/debian/copyright strace/debian/copyright
@@ -35,4 +35,4 @@
 (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
 THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 
-$Id: copyright,v 1.1 2002/03/31 18:45:45 wichert Exp $
+$Id: copyright,v 1.1.1.1 2003/11/14 11:32:22 ramsdell Exp $
defs.h +43 -1

53 lines not on this page · raw message

Only in strace-4.5: depcomp

desc.c +10 -6
diff -ur strace-4.5/desc.c strace/desc.c
@@ -27,7 +27,7 @@
  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  *
- *	$Id: desc.c,v 1.12 2003/01/14 07:53:31 roland Exp $
+ *	$Id: desc.c,v 1.3 2003/12/03 14:47:54 ramsdell Exp $
  */
 
 #include "defs.h"
@@ -264,7 +264,8 @@
 	extern struct xlat openmodes[];
 
 	if (entering(tcp)) {
-		tprintf("%ld, ", tcp->u_arg[0]);
+		printdesc(tcp->u_arg[0]);
+		tprintf(", ");
 		printxval(fcntlcmds, tcp->u_arg[1], "F_???");
 		switch (tcp->u_arg[1]) {
 		case F_SETFD:
@@ -347,7 +348,8 @@
 struct tcb *tcp;
 {
 	if (entering(tcp)) {
-		tprintf("%ld, ", tcp->u_arg[0]);
+		printdesc(tcp->u_arg[0]);
+		tprintf(", ");
 		if (!printflags(flockcmds, tcp->u_arg[1]))
 			tprintf("LOCK_???");
 	}
@@ -360,7 +362,7 @@
 struct tcb *tcp;
 {
 	if (entering(tcp)) {
-		tprintf("%ld", tcp->u_arg[0]);
+		printdesc(tcp->u_arg[0]);
 	}
 	return 0;
 }
@@ -370,7 +372,7 @@
 struct tcb *tcp;
 {
 	if (entering(tcp)) {
-		tprintf("%ld", tcp->u_arg[0]);
+		printdesc(tcp->u_arg[0]);
 	}
 	return 0;
 }
@@ -380,7 +382,9 @@
 struct tcb *tcp;
 {
 	if (entering(tcp)) {
-		tprintf("%ld, %ld", tcp->u_arg[0], tcp->u_arg[1]);
+		printdesc(tcp->u_arg[0]);
+		printargsep();
+		printdesc(tcp->u_arg[1]);
 	}
 	return 0;
 }
errnoent.sh +1 -1
diff -ur strace-4.5/errnoent.sh strace/errnoent.sh
@@ -24,7 +24,7 @@
 # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
 # THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 #
-#	$Id: errnoent.sh,v 1.1.1.1 1999/02/19 00:22:09 wichert Exp $
+#	$Id: errnoent.sh,v 1.1.1.1 2003/11/14 11:32:22 ramsdell Exp $
 
 awk '
 /^#define[ 	]+E[A-Z0-9_]+[ 	]+[0-9]+/ {
file.c +63 -38

264 lines not on this page · raw message

freebsd/syscalls.cat +1 -1
diff -ur strace-4.5/freebsd/syscalls.cat strace/freebsd/syscalls.cat
@@ -24,7 +24,7 @@
 # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
 # THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 #
-#      $Id: syscalls.cat,v 1.1 2000/09/01 21:03:06 wichert Exp $
+#      $Id: syscalls.cat,v 1.1.1.1 2003/11/14 11:32:22 ramsdell Exp $
 #
 # Syscalls categories
 # syntax: syscall catmask
freebsd/syscalls.pl +1 -1
diff -ur strace-4.5/freebsd/syscalls.pl strace/freebsd/syscalls.pl
@@ -25,7 +25,7 @@
 # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
 # THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 #
-#      $Id: syscalls.pl,v 1.3 2001/03/08 17:27:20 hughesj Exp $
+#      $Id: syscalls.pl,v 1.1.1.1 2003/11/14 11:32:22 ramsdell Exp $
 #/
 
 # Buils syscall.h and syscallent.h from:
freebsd/syscalls.print +1 -1
diff -ur strace-4.5/freebsd/syscalls.print strace/freebsd/syscalls.print
@@ -24,7 +24,7 @@
 # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
 # THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 #
-#      $Id: syscalls.print,v 1.4 2001/03/08 13:59:00 hughesj Exp $
+#      $Id: syscalls.print,v 1.1.1.1 2003/11/14 11:32:22 ramsdell Exp $
 #
 # Printable syscalls
 # syntax: syscall [printfunc]

Only in strace-4.5: install-sh

io.c +33 -14

131 lines not on this page · raw message

ioctl.c +1 -1
diff -ur strace-4.5/ioctl.c strace/ioctl.c
@@ -27,7 +27,7 @@
  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  *
- *	$Id: ioctl.c,v 1.9 2003/01/14 07:53:34 roland Exp $
+ *	$Id: ioctl.c,v 1.1.1.1 2003/11/14 11:32:22 ramsdell Exp $
  */
 
 #include "defs.h"
ioctlsort.c +1 -1
diff -ur strace-4.5/ioctlsort.c strace/ioctlsort.c
@@ -25,7 +25,7 @@
  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  *
- *	$Id: ioctlsort.c,v 1.2 2001/03/17 17:26:34 wichert Exp $
+ *	$Id: ioctlsort.c,v 1.1.1.1 2003/11/14 11:32:22 ramsdell Exp $
  */
 
 
ipc.c +1 -1
diff -ur strace-4.5/ipc.c strace/ipc.c
@@ -27,7 +27,7 @@
  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  *
- *	$Id: ipc.c,v 1.6 2003/07/17 09:03:04 roland Exp $
+ *	$Id: ipc.c,v 1.1.1.1 2003/11/14 11:32:22 ramsdell Exp $
  */
 
 #include "defs.h"
linux/alpha/syscallent.h +1 -1
diff -ur strace-4.5/linux/alpha/syscallent.h strace/linux/alpha/syscallent.h
@@ -25,7 +25,7 @@
  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  *
- *	$Id: syscallent.h,v 1.11 2003/07/09 09:47:59 roland Exp $
+ *	$Id: syscallent.h,v 1.1.1.1 2003/11/14 11:32:22 ramsdell Exp $
  */
 
 	{ 6,	0,	printargs,		"osf_syscall"		}, /* 0, not implemented */
linux/dummy.h +1 -1
diff -ur strace-4.5/linux/dummy.h strace/linux/dummy.h
@@ -25,7 +25,7 @@
  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  *
- *	$Id: dummy.h,v 1.12 2003/06/27 21:20:10 roland Exp $
+ *	$Id: dummy.h,v 1.1.1.1 2003/11/14 11:32:22 ramsdell Exp $
  */
 
 /* still unfinished */
linux/hppa/syscallent.h +1 -1
diff -ur strace-4.5/linux/hppa/syscallent.h strace/linux/hppa/syscallent.h
@@ -1,7 +1,7 @@
 /*
  * Copyright (c) 2001 Hewlett-Packard, Matthew Wilcox
  *
- * $Id: syscallent.h,v 1.8 2003/05/23 00:29:00 roland Exp $
+ * $Id: syscallent.h,v 1.1.1.1 2003/11/14 11:32:22 ramsdell Exp $
  *
  */
 
linux/ia64/syscallent.h +1 -1
diff -ur strace-4.5/linux/ia64/syscallent.h strace/linux/ia64/syscallent.h
@@ -25,7 +25,7 @@
  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  *
- *	$Id: syscallent.h,v 1.15 2003/07/17 09:07:41 roland Exp $
+ *	$Id: syscallent.h,v 1.1.1.1 2003/11/14 11:32:22 ramsdell Exp $
  */
 
 /*
linux/ioctlent.sh +1 -1
diff -ur strace-4.5/linux/ioctlent.sh strace/linux/ioctlent.sh
@@ -25,7 +25,7 @@
 # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
 # THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 #
-#	$Id: ioctlent.sh,v 1.8 2003/03/31 01:03:34 roland Exp $
+#	$Id: ioctlent.sh,v 1.1.1.1 2003/11/14 11:32:22 ramsdell Exp $
 #
 
 # Validate arg count.
linux/mips/ioctlent.sh +1 -1
diff -ur strace-4.5/linux/mips/ioctlent.sh strace/linux/mips/ioctlent.sh
@@ -27,7 +27,7 @@
 # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
 # THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 #
-#	$Id: ioctlent.sh,v 1.1 1999/11/01 00:46:49 wichert Exp $
+#	$Id: ioctlent.sh,v 1.1.1.1 2003/11/14 11:32:22 ramsdell Exp $
 
 # Files to find.
 file_find='asm/*.h linux/*.h scsi/*.h'
linux/powerpc/syscallent.h +1 -1
diff -ur strace-4.5/linux/powerpc/syscallent.h strace/linux/powerpc/syscallent.h
@@ -25,7 +25,7 @@
  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  *
- *	$Id: syscallent.h,v 1.14 2003/07/17 09:03:01 roland Exp $
+ *	$Id: syscallent.h,v 1.1.1.1 2003/11/14 11:32:22 ramsdell Exp $
  */
 
 	{ 5,	0,	printargs,		"SYS_0"			}, /* 0 */
linux/sh/syscallent.h +1 -1
diff -ur strace-4.5/linux/sh/syscallent.h strace/linux/sh/syscallent.h
@@ -27,7 +27,7 @@
  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  *
- *	$Id: syscallent.h,v 1.3 2003/08/21 09:58:00 roland Exp $
+ *	$Id: syscallent.h,v 1.1.1.1 2003/11/14 11:32:22 ramsdell Exp $
  */
 
 	{ 0,	0,	sys_setup,		"setup"		}, /* 0 */
linux/sparc/dummy2.h +1 -1
diff -ur strace-4.5/linux/sparc/dummy2.h strace/linux/sparc/dummy2.h
@@ -24,7 +24,7 @@
  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  *
- *	$Id: dummy2.h,v 1.1.1.1 1999/02/19 00:23:09 wichert Exp $
+ *	$Id: dummy2.h,v 1.1.1.1 2003/11/14 11:32:22 ramsdell Exp $
  */
 
 /* still unfinished */
linux/sparc/syscall1.h +1 -1
diff -ur strace-4.5/linux/sparc/syscall1.h strace/linux/sparc/syscall1.h
@@ -24,7 +24,7 @@
  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  *
- *	$Id: syscall1.h,v 1.1.1.1 1999/02/19 00:23:16 wichert Exp $
+ *	$Id: syscall1.h,v 1.1.1.1 2003/11/14 11:32:22 ramsdell Exp $
  */
 
 #define	SOLARIS_syscall	0
linux/sparc/syscallent1.h +1 -1
diff -ur strace-4.5/linux/sparc/syscallent1.h strace/linux/sparc/syscallent1.h
@@ -24,7 +24,7 @@
  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  *
- *	$Id: syscallent1.h,v 1.1.1.1 1999/02/19 00:23:19 wichert Exp $
+ *	$Id: syscallent1.h,v 1.1.1.1 2003/11/14 11:32:22 ramsdell Exp $
  */
 
 	{ 6,	0,	solaris_syscall,	"syscall"	}, /* 0 */
linux/sparc/syscall.h +1 -1
diff -ur strace-4.5/linux/sparc/syscall.h strace/linux/sparc/syscall.h
@@ -25,7 +25,7 @@
  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  *
- *	$Id: syscall.h,v 1.7 2003/01/30 20:15:20 roland Exp $
+ *	$Id: syscall.h,v 1.1.1.1 2003/11/14 11:32:22 ramsdell Exp $
  */
 #include "dummy.h"
 
linux/sparc/syscall.h.2 +1 -1
diff -ur strace-4.5/linux/sparc/syscall.h.2 strace/linux/sparc/syscall.h.2
@@ -25,7 +25,7 @@
  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  *
- *	$Id: syscall.h.2,v 1.1.1.1 1999/02/19 00:23:14 wichert Exp $
+ *	$Id: syscall.h.2,v 1.1.1.1 2003/11/14 11:32:22 ramsdell Exp $
  */
 
 #include "dummy.h"
linux/syscallent.h +1 -1
diff -ur strace-4.5/linux/syscallent.h strace/linux/syscallent.h
@@ -25,7 +25,7 @@
  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  *
- *	$Id: syscallent.h,v 1.22 2003/08/21 10:08:54 roland Exp $
+ *	$Id: syscallent.h,v 1.1.1.1 2003/11/14 11:32:22 ramsdell Exp $
  */
 
 	{ 0,	0,	sys_setup,		"setup"		}, /* 0 */
linux/syscall.h +1 -1
diff -ur strace-4.5/linux/syscall.h strace/linux/syscall.h
@@ -25,7 +25,7 @@
  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  *
- *	$Id: syscall.h,v 1.32 2003/07/17 09:03:02 roland Exp $
+ *	$Id: syscall.h,v 1.1.1.1 2003/11/14 11:32:22 ramsdell Exp $
  */
 
 #include "dummy.h"

Only in strace-4.5: Makefile.in

mem.c +6 -4
diff -ur strace-4.5/mem.c strace/mem.c
@@ -29,7 +29,7 @@
  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  *
- *	$Id: mem.c,v 1.28 2003/06/26 22:40:42 roland Exp $
+ *	$Id: mem.c,v 1.3 2003/12/05 15:43:43 ramsdell Exp $
  */
 
 #include "defs.h"
@@ -197,9 +197,10 @@
 		printflags(mmap_flags, u_arg[3]);
 #endif
 		/* fd (is always int, not long) */
-		tprintf(", %d, ", (int)u_arg[4]);
+		printargsep();
+		printdesc(u_arg[4]);
 		/* offset */
-		tprintf("%#lx", u_arg[5]);
+		tprintf(", %#lx", u_arg[5]);
 	}
 	return RVAL_HEX;
 }
@@ -298,7 +299,8 @@
 		printflags(mmap_flags, u_arg[3]);
 #endif
 		/* fd */
-		tprintf(", %ld, ", u_arg[4]);
+		printdesc(u_arg[4]);
+		printargsep();
 		/* offset */
 		tprintf("%#llx", LONG_LONG(u_arg[5], u_arg[6]));
 	}

Only in strace-4.5: missing
Only in strace-4.5: mkinstalldirs

net.c +32 -15

131 lines not on this page · raw message

proc.c +1 -1
diff -ur strace-4.5/proc.c strace/proc.c
@@ -24,7 +24,7 @@
  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  *
- *	$Id: proc.c,v 1.5 2000/09/01 21:03:06 wichert Exp $
+ *	$Id: proc.c,v 1.1.1.1 2003/11/14 11:32:22 ramsdell Exp $
  */
 
 #include "defs.h"
process.c +12 -7
diff -ur strace-4.5/process.c strace/process.c
@@ -34,7 +34,7 @@
  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  *
- *	$Id: process.c,v 1.71 2003/08/21 09:58:00 roland Exp $
+ *	$Id: process.c,v 1.6 2003/12/05 16:02:41 ramsdell Exp $
  */
 
 #include "defs.h"
@@ -1298,7 +1298,7 @@
 {
 	if (entering(tcp)) {
 #ifndef SVR4
-		tprintf("%lu", tcp->u_arg[0]);
+		printpid(tcp->u_arg[0]);
 #endif /* !SVR4 */
 	}
 	return 0;
@@ -1309,7 +1309,7 @@
 struct tcb *tcp;
 {
 	if (entering(tcp)) {
-		tprintf("%lu", tcp->u_arg[0]);
+		printpid(tcp->u_arg[0]);
 	}
 	return 0;
 }
@@ -1326,7 +1326,7 @@
 struct tcb *tcp;
 {
 	if (entering(tcp)) {
-		tprintf("%lu", tcp->u_arg[0]);
+		printdesc(tcp->u_arg[0]);
 	}
 	return 0;
 }
@@ -1336,7 +1336,9 @@
 struct tcb *tcp;
 {
 	if (entering(tcp)) {
-		tprintf("%lu, %lu", tcp->u_arg[0], tcp->u_arg[1]);
+		printpid(tcp->u_arg[0]);
+		printargsep();
+		printpid(tcp->u_arg[1]);
 	}
 	return 0;
 }
@@ -1714,7 +1716,8 @@
 	int exited = 0;
 
 	if (entering(tcp)) {
-		tprintf("%ld, ", tcp->u_arg[0]);
+		printpid(tcp->u_arg[0]);
+		tprintf(", ");
 	} else {
 		/* status */
 		if (!tcp->u_arg[1])
@@ -2755,7 +2758,9 @@
 			  "PT_???"
 #endif
 			);
-		tprintf(", %lu, ", tcp->u_arg[1]);
+		printargsep();
+		printpid(tcp->u_arg[1]);
+		tprintf(", ");
 		addr = tcp->u_arg[2];
 #ifndef FREEBSD
 		if (tcp->u_arg[0] == PTRACE_PEEKUSER
resource.c +1 -1
diff -ur strace-4.5/resource.c strace/resource.c
@@ -27,7 +27,7 @@
  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  *
- *	$Id: resource.c,v 1.9 2003/01/14 23:40:54 roland Exp $
+ *	$Id: resource.c,v 1.1.1.1 2003/11/14 11:32:22 ramsdell Exp $
  */
 
 #include "defs.h"
signal.c +3 -2
diff -ur strace-4.5/signal.c strace/signal.c
@@ -30,7 +30,7 @@
  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  *
- *	$Id: signal.c,v 1.44 2003/09/23 22:19:32 roland Exp $
+ *	$Id: signal.c,v 1.3 2003/12/03 14:47:54 ramsdell Exp $
  */
 
 #include "defs.h"
@@ -1674,7 +1674,8 @@
 struct tcb *tcp;
 {
 	if (entering(tcp)) {
-		tprintf("%ld, %s", tcp->u_arg[0], signame(tcp->u_arg[1]));
+		printpid(tcp->u_arg[0]);
+		tprintf(", %s", signame(tcp->u_arg[1]));
 	}
 	return 0;
 }
signalent.sh +1 -1
diff -ur strace-4.5/signalent.sh strace/signalent.sh
@@ -24,7 +24,7 @@
 # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
 # THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 #
-#	$Id: signalent.sh,v 1.1.1.1 1999/02/19 00:22:28 wichert Exp $
+#	$Id: signalent.sh,v 1.1.1.1 2003/11/14 11:32:22 ramsdell Exp $
 
 cat $* |
 	sed -n -e 's/\/\*.*\*\// /' -e 's/^#[ 	]*define[ 	][ 	]*SIG\([^_ 	]*\)[ 	][ 	]*\([0-9][0-9]*\)[ 	]*$/\1 \2/p' |
sock.c +1 -1
diff -ur strace-4.5/sock.c strace/sock.c
@@ -24,7 +24,7 @@
  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  *
- *	$Id: sock.c,v 1.6 2003/06/26 22:40:42 roland Exp $
+ *	$Id: sock.c,v 1.1.1.1 2003/11/14 11:32:22 ramsdell Exp $
  */
 
 #include "defs.h"
strace.1 +1 -1
diff -ur strace-4.5/strace.1 strace/strace.1
@@ -25,7 +25,7 @@
 .\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
 .\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 .\"
-.\"	$Id: strace.1,v 1.9 2003/01/24 04:31:20 roland Exp $
+.\"	$Id: strace.1,v 1.1.1.1 2003/11/14 11:32:22 ramsdell Exp $
 .\"
 .de CW
 .sp
strace.c +18 -2
diff -ur strace-4.5/strace.c strace/strace.c
@@ -27,7 +27,7 @@
  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  *
- *	$Id: strace.c,v 1.49 2003/06/10 03:05:53 roland Exp $
+ *	$Id: strace.c,v 1.5 2003/12/05 15:43:43 ramsdell Exp $
  */
 
 #include <sys/types.h>
@@ -159,6 +159,7 @@
 -u username -- run command as username handling setuid and/or setgid\n\
 -E var=val -- put var=val in the environment for command\n\
 -E var -- remove var from the environment for command\n\
+-X -- print SELinux specific information when possible\n\
 " /* this is broken, so don't document it
 -z -- print only succeeding syscalls\n\
   */
@@ -175,6 +176,10 @@
 #endif /* MIPS */
 #endif /* SVR4 */
 
+#if defined SELINUX
+int selinux_enabled= 0;
+#endif
+
 int
 main(argc, argv)
 int argc;
@@ -205,7 +210,7 @@
 	set_sortby(DEFAULT_SORTBY);
 	set_personality(DEFAULT_PERSONALITY);
 	while ((c = getopt(argc, argv,
-		"+cdfFhiqrtTvVxza:e:o:O:p:s:S:u:E:")) != EOF) {
+		"+cdfFhiqrtTvVxXza:e:o:O:p:s:S:u:E:")) != EOF) {
 		switch (c) {
 		case 'c':
 			cflag++;
@@ -298,6 +303,14 @@
 				exit(1);
 			}
 			break;
+		case 'X':
+#if defined SELINUX
+			selinux_enabled = is_selinux_enabled();
+			break;
+#else
+			fprintf(stderr, "SELinux support not available\n");
+			exit(1);
+#endif
 		default:
 			usage(stderr, 1);
 			break;
@@ -2275,6 +2288,9 @@
 printtrailer(tcp)
 struct tcb *tcp;
 {
+#if defined SELINUX
+        selinux_printcon();
+#endif
 	tprintf("\n");
 	tcp_last = NULL;
 }
strace-graph +1 -1
diff -ur strace-4.5/strace-graph strace/strace-graph
@@ -33,7 +33,7 @@
 # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
 # THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 #
-#	$Id: strace-graph,v 1.2 1999/08/30 23:26:53 wichert Exp $
+#	$Id: strace-graph,v 1.1.1.1 2003/11/14 11:32:22 ramsdell Exp $
 
 my %unfinished;
 
stream.c +1 -1
diff -ur strace-4.5/stream.c strace/stream.c
@@ -25,7 +25,7 @@
  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  *
- *	$Id: stream.c,v 1.19 2003/04/02 01:10:44 roland Exp $
+ *	$Id: stream.c,v 1.1.1.1 2003/11/14 11:32:22 ramsdell Exp $
  */
 
 #include "defs.h"
sunos4/dummy.h +1 -1
diff -ur strace-4.5/sunos4/dummy.h strace/sunos4/dummy.h
@@ -25,7 +25,7 @@
  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  *
- *	$Id: dummy.h,v 1.1.1.1 1999/02/19 00:23:34 wichert Exp $
+ *	$Id: dummy.h,v 1.1.1.1 2003/11/14 11:32:22 ramsdell Exp $
  */
 
 /* Obsolete syscalls */
sunos4/ioctlent.sh +1 -1
diff -ur strace-4.5/sunos4/ioctlent.sh strace/sunos4/ioctlent.sh
@@ -24,7 +24,7 @@
 # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
 # THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 #
-#	$Id: ioctlent.sh,v 1.1.1.1 1999/02/19 00:23:38 wichert Exp $
+#	$Id: ioctlent.sh,v 1.1.1.1 2003/11/14 11:32:22 ramsdell Exp $
 
 if [ $# -ne 1 ]
 then
sunos4/syscallent.h +1 -1
diff -ur strace-4.5/sunos4/syscallent.h strace/sunos4/syscallent.h
@@ -25,7 +25,7 @@
  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  *
- *	$Id: syscallent.h,v 1.1.1.1 1999/02/19 00:23:40 wichert Exp $
+ *	$Id: syscallent.h,v 1.1.1.1 2003/11/14 11:32:22 ramsdell Exp $
  */
 
 	{ 1,	0,	sys_indir,		"indir"		}, /* 0 */
sunos4/syscall.h +1 -1
diff -ur strace-4.5/sunos4/syscall.h strace/sunos4/syscall.h
@@ -25,7 +25,7 @@
  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  *
- *	$Id: syscall.h,v 1.1.1.1 1999/02/19 00:23:39 wichert Exp $
+ *	$Id: syscall.h,v 1.1.1.1 2003/11/14 11:32:22 ramsdell Exp $
  */
 #include "dummy.h"
 
svr4/dummy.h +1 -1
diff -ur strace-4.5/svr4/dummy.h strace/svr4/dummy.h
@@ -24,7 +24,7 @@
  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  *
- *	$Id: dummy.h,v 1.11 2002/05/17 11:37:50 hughesj Exp $
+ *	$Id: dummy.h,v 1.1.1.1 2003/11/14 11:32:22 ramsdell Exp $
  */
 
 /* still unfinished */
svr4/ioctlent.sh +1 -1
diff -ur strace-4.5/svr4/ioctlent.sh strace/svr4/ioctlent.sh
@@ -24,7 +24,7 @@
 # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
 # THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 #
-#	$Id: ioctlent.sh,v 1.4 2002/05/17 14:04:24 hughesj Exp $
+#	$Id: ioctlent.sh,v 1.1.1.1 2003/11/14 11:32:22 ramsdell Exp $
 
 if [ $# -ne 1 ]
 then
svr4/syscallent.h +1 -1
diff -ur strace-4.5/svr4/syscallent.h strace/svr4/syscallent.h
@@ -24,7 +24,7 @@
  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  *
- *	$Id: syscallent.h,v 1.9 2001/03/27 13:57:48 hughesj Exp $
+ *	$Id: syscallent.h,v 1.1.1.1 2003/11/14 11:32:22 ramsdell Exp $
  */
 
 #ifdef MIPS
svr4/syscall.h +1 -1
diff -ur strace-4.5/svr4/syscall.h strace/svr4/syscall.h
@@ -24,7 +24,7 @@
  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  *
- *	$Id: syscall.h,v 1.10 2002/05/17 11:37:50 hughesj Exp $
+ *	$Id: syscall.h,v 1.1.1.1 2003/11/14 11:32:22 ramsdell Exp $
  */
 
 #include "dummy.h"
syscall.c +1 -1
diff -ur strace-4.5/syscall.c strace/syscall.c
@@ -30,7 +30,7 @@
  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  *
- *	$Id: syscall.c,v 1.58 2003/09/24 22:22:41 roland Exp $
+ *	$Id: syscall.c,v 1.1.1.1 2003/11/14 11:32:22 ramsdell Exp $
  */
 
 #include "defs.h"
syscallent.sh +1 -1
diff -ur strace-4.5/syscallent.sh strace/syscallent.sh
@@ -24,7 +24,7 @@
 # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
 # THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 #
-#	$Id: syscallent.sh,v 1.3 2003/03/31 01:03:34 roland Exp $
+#	$Id: syscallent.sh,v 1.1.1.1 2003/11/14 11:32:22 ramsdell Exp $
 
 cat ${1+"$@"} |
 	sed -n 's/^#[ 	]*define[ 	][ 	]*SYS_\([^ 	]*\)[ 	]*[^0-9]*\([0-9]*\).*$/\1 \2/p
system.c +3 -2
diff -ur strace-4.5/system.c strace/system.c
@@ -27,7 +27,7 @@
  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  *
- *	$Id: system.c,v 1.27 2002/11/06 14:00:13 ludvigm Exp $
+ *	$Id: system.c,v 1.5 2003/12/05 15:43:43 ramsdell Exp $
  */
 
 #include "defs.h"
@@ -613,7 +613,8 @@
 struct tcb *tcp;
 {
 	if (entering(tcp)) {
-		tprintf("%lu, ", tcp->u_arg[0]);
+		printdesc(tcp->u_arg[0]);
+		printargsep();
 		printxval(pathconflimits, tcp->u_arg[1], "_PC_???");
 	}
 	return 0;
term.c +1 -1
diff -ur strace-4.5/term.c strace/term.c
@@ -24,7 +24,7 @@
  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  *
- *	$Id: term.c,v 1.6 2003/01/14 07:53:40 roland Exp $
+ *	$Id: term.c,v 1.1.1.1 2003/11/14 11:32:22 ramsdell Exp $
  */
 
 #include "defs.h"
time.c +1 -1
diff -ur strace-4.5/time.c strace/time.c
@@ -26,7 +26,7 @@
  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  *
- *	$Id: time.c,v 1.5 2003/03/30 23:52:28 roland Exp $
+ *	$Id: time.c,v 1.1.1.1 2003/11/14 11:32:22 ramsdell Exp $
  */
 
 #include "defs.h"
util.c +118 -30

276 lines not on this page · raw message

--
This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.