OpenBSD CVS

CVS log for src/bin/systrace/Attic/intercept-translate.c


[BACK] Up to [local] / src / bin / systrace

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.19, Mon Apr 25 19:09:25 2016 UTC (8 years, 1 month ago) by tedu
Branch: MAIN
CVS Tags: HEAD
Changes since 1.18: +1 -1 lines
FILE REMOVED

boom goes the dynamite

Revision 1.18 / (download) - annotate - [select for diffs], Wed Dec 9 19:36:17 2015 UTC (8 years, 6 months ago) by mmcc
Branch: MAIN
CVS Tags: OPENBSD_5_9_BASE, OPENBSD_5_9
Changes since 1.17: +3 -5 lines
Diff to previous 1.17 (colored)

Remove NULL-check before free(). ok tb@

Revision 1.17 / (download) - annotate - [select for diffs], Sun Aug 10 04:57:33 2014 UTC (9 years, 10 months ago) by guenther
Branch: MAIN
CVS Tags: OPENBSD_5_8_BASE, OPENBSD_5_8, OPENBSD_5_7_BASE, OPENBSD_5_7
Changes since 1.16: +2 -2 lines
Diff to previous 1.16 (colored)

Only need <stdint.h> and not all of <inttypes.h> here

Revision 1.16 / (download) - annotate - [select for diffs], Tue Dec 4 02:24:47 2012 UTC (11 years, 6 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_5_6_BASE, OPENBSD_5_6, OPENBSD_5_5_BASE, OPENBSD_5_5, OPENBSD_5_4_BASE, OPENBSD_5_4, OPENBSD_5_3_BASE, OPENBSD_5_3
Changes since 1.15: +1 -2 lines
Diff to previous 1.15 (colored)

remove some unnecessary sys/param.h inclusions

Revision 1.14.2.1 / (download) - annotate - [select for diffs], Fri Apr 6 11:32:47 2012 UTC (12 years, 2 months ago) by sthen
Branch: OPENBSD_5_1
Changes since 1.14: +5 -2 lines
Diff to previous 1.14 (colored) next main 1.15 (colored)

MFC systrace intercept_translate() problem resulting in problems with
systrace and some *at functions, most noticable building ports using gtar
under systrace.

Date: 2012/03/02 17:23:08
Author: matthew
Branch: HEAD
Tag: (none)
Log:
Fix handling of 'offend' (OFFset from the END of the arg list)
arguments in systrace(1).  In intercept_translate(), argsize is
actually the number of *bytes* taken up by the arguments, not the
number of arguments.

ok ajacoutot, sthen, dcoppa

Members:
        intercept-translate.c:1.14->1.15

Revision 1.15 / (download) - annotate - [select for diffs], Fri Mar 2 17:23:08 2012 UTC (12 years, 3 months ago) by matthew
Branch: MAIN
CVS Tags: OPENBSD_5_2_BASE, OPENBSD_5_2
Changes since 1.14: +5 -2 lines
Diff to previous 1.14 (colored)

Fix handling of 'offend' (OFFset from the END of the arg list)
arguments in systrace(1).  In intercept_translate(), argsize is
actually the number of *bytes* taken up by the arguments, not the
number of arguments.

ok ajacoutot, sthen, dcoppa

Revision 1.14 / (download) - annotate - [select for diffs], Sun Sep 18 23:24:14 2011 UTC (12 years, 8 months ago) by matthew
Branch: MAIN
CVS Tags: OPENBSD_5_1_BASE
Branch point for: OPENBSD_5_1
Changes since 1.13: +76 -2 lines
Diff to previous 1.13 (colored)

Add support for *at(2) system calls to systrace(1).

ok deraadt@, sthen@, jasper@

Revision 1.13 / (download) - annotate - [select for diffs], Sat Jun 10 07:19:13 2006 UTC (18 years ago) by sturm
Branch: MAIN
CVS Tags: OPENBSD_5_0_BASE, OPENBSD_5_0, OPENBSD_4_9_BASE, OPENBSD_4_9, OPENBSD_4_8_BASE, OPENBSD_4_8, OPENBSD_4_7_BASE, OPENBSD_4_7, OPENBSD_4_6_BASE, OPENBSD_4_6, OPENBSD_4_5_BASE, OPENBSD_4_5, OPENBSD_4_4_BASE, OPENBSD_4_4, OPENBSD_4_3_BASE, OPENBSD_4_3, OPENBSD_4_2_BASE, OPENBSD_4_2, OPENBSD_4_1_BASE, OPENBSD_4_1, OPENBSD_4_0_BASE, OPENBSD_4_0
Changes since 1.12: +56 -1 lines
Diff to previous 1.12 (colored)

add a translation for sendmsg()

from provos, with feedback from ray and pat

Revision 1.12 / (download) - annotate - [select for diffs], Tue May 2 19:49:05 2006 UTC (18 years, 1 month ago) by sturm
Branch: MAIN
Changes since 1.11: +5 -5 lines
Diff to previous 1.11 (colored)

some type cleanup

with feedback from kettenis

Revision 1.11 / (download) - annotate - [select for diffs], Wed Jul 7 07:31:40 2004 UTC (19 years, 11 months ago) by marius
Branch: MAIN
CVS Tags: OPENBSD_3_9_BASE, OPENBSD_3_9, OPENBSD_3_8_BASE, OPENBSD_3_8, OPENBSD_3_7_BASE, OPENBSD_3_7, OPENBSD_3_6_BASE, OPENBSD_3_6
Changes since 1.10: +4 -4 lines
Diff to previous 1.10 (colored)

fix an issue when scripts are exec'd under systrace where
the argv[0] would be normalized, and hence break scripts
that depend on how they were called.

this fixes an issue in the ports builds.

ok provos@ deraadt@; lots of testing during hackathon sturm@ naddy@

Revision 1.10 / (download) - annotate - [select for diffs], Wed Oct 8 16:32:44 2003 UTC (20 years, 8 months ago) by sturm
Branch: MAIN
CVS Tags: OPENBSD_3_5_BASE, OPENBSD_3_5
Changes since 1.9: +3 -1 lines
Diff to previous 1.9 (colored)

originally from cb@openbsd.org, adapted by provos

itojun@ ok

fix a race condition between path resolution in userland
and the subsequent namei(): inform the kernel portion of
valid filenames and then disallow symlink lookups for
those filenames by means of a hook in namei().
with suggestions from provos@

also, add (currently unused) seqnr field to struct
systrace_replace, from provos@

Revision 1.9 / (download) - annotate - [select for diffs], Thu Aug 1 20:16:45 2002 UTC (21 years, 10 months ago) by provos
Branch: MAIN
CVS Tags: OPENBSD_3_4_BASE, OPENBSD_3_4, OPENBSD_3_3_BASE, OPENBSD_3_3, OPENBSD_3_2_BASE, OPENBSD_3_2
Changes since 1.8: +32 -3 lines
Diff to previous 1.8 (colored)

the last component in a filename for unlink may be a symlink

Revision 1.8 / (download) - annotate - [select for diffs], Sat Jul 20 04:19:53 2002 UTC (21 years, 10 months ago) by provos
Branch: MAIN
Changes since 1.7: +3 -2 lines
Diff to previous 1.7 (colored)

compile on sparc64

Revision 1.7 / (download) - annotate - [select for diffs], Fri Jul 19 14:38:57 2002 UTC (21 years, 10 months ago) by itojun
Branch: MAIN
Changes since 1.6: +16 -8 lines
Diff to previous 1.6 (colored)

constify, have missing prototypes, use pedantic compilation options.
niels ok

Revision 1.6 / (download) - annotate - [select for diffs], Sun Jul 14 22:34:55 2002 UTC (21 years, 11 months ago) by provos
Branch: MAIN
Changes since 1.5: +4 -1 lines
Diff to previous 1.5 (colored)

argv translation for exeve

Revision 1.5 / (download) - annotate - [select for diffs], Sat Jul 13 08:53:02 2002 UTC (21 years, 11 months ago) by provos
Branch: MAIN
Changes since 1.4: +8 -3 lines
Diff to previous 1.4 (colored)

use correct length for PF_LOCAL sockets; not all applications fill in
sa_len

Revision 1.4 / (download) - annotate - [select for diffs], Fri Jun 21 15:26:06 2002 UTC (21 years, 11 months ago) by provos
Branch: MAIN
Changes since 1.3: +6 -12 lines
Diff to previous 1.3 (colored)

rewrite all system call arguments in the permit case.  use realpath
when we still have the root and we of the monitored process.  this
eliminates almost all race coniditions.

Revision 1.3 / (download) - annotate - [select for diffs], Wed Jun 19 16:31:07 2002 UTC (21 years, 11 months ago) by provos
Branch: MAIN
Changes since 1.2: +3 -2 lines
Diff to previous 1.2 (colored)

more careful buffer handling; pointed out by deraadt@

Revision 1.2 / (download) - annotate - [select for diffs], Tue Jun 4 19:15:54 2002 UTC (22 years ago) by deraadt
Branch: MAIN
Changes since 1.1: +5 -5 lines
Diff to previous 1.1 (colored)

KNF

Revision 1.1 / (download) - annotate - [select for diffs], Tue Jun 4 17:20:04 2002 UTC (22 years ago) by provos
Branch: MAIN

initial import of systrace.  don't touch this, more stuff coming in a while

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.