Merge lp:~lool/ujail/misc-fixes into lp:ujail/proof-of-concept

Proposed by Loïc Minier
Status: Merged
Merged at revision: 4
Proposed branch: lp:~lool/ujail/misc-fixes
Merge into: lp:ujail/proof-of-concept
Diff against target: 72 lines (+16/-12)
4 files modified
.bzrignore (+3/-0)
Makefile (+10/-9)
proof_of_concept.c (+1/-1)
proof_of_concept_nopatch.c (+2/-2)
To merge this branch: bzr merge lp:~lool/ujail/misc-fixes
Reviewer Review Type Date Requested Status
Stephan Peijnik Approve
Review via email: mp+16644@code.launchpad.net
To post a comment you must log in.
Revision history for this message
Stephan Peijnik (speijnik) wrote :

Thanks for those fixes.

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== added file '.bzrignore'
--- .bzrignore 1970-01-01 00:00:00 +0000
+++ .bzrignore 2009-12-29 15:50:28 +0000
@@ -0,0 +1,3 @@
1hello
2proof_of_concept
3proof_of_concept_nopatch
04
=== modified file 'Makefile'
--- Makefile 2009-12-08 09:46:47 +0000
+++ Makefile 2009-12-29 15:50:28 +0000
@@ -1,16 +1,17 @@
1#!/usr/bin/make -f1#!/usr/bin/make -f
22
3OBJS=proof_of_concept.o3# x86-64 not yet supported, but can build and run the x86 version
4OBJS_nopatch=proof_of_concept_nopatch.o4ifeq ($(shell uname -m),x86_64)
5CFLAGS += -m32
6endif
7
8CFLAGS += -Wall -Werror
9
5all: build10all: build
611
7build: ${OBJS} ${OBJS_nopatch}12PROGS := proof_of_concept proof_of_concept_nopatch hello
8 gcc -Wall -Werror -o ujail-poc ${OBJS}
9 gcc -Wall -Werror -o ujail-poc-nopatch ${OBJS_nopatch}
10 gcc -Wall -Werror -o hello hello.c
1113
12.c.o:14build: $(PROGS)
13 gcc -Wall -Werror -o $@ -c $^
1415
15clean:16clean:
16 rm -f ujail-poc ujail-poc-nopatch hello ${OBJS} ${OBJS_nopatch}
17\ No newline at end of file17\ No newline at end of file
18 rm -f $(PROGS)
1819
=== modified file 'proof_of_concept.c'
--- proof_of_concept.c 2009-12-07 16:16:56 +0000
+++ proof_of_concept.c 2009-12-29 15:50:28 +0000
@@ -40,7 +40,7 @@
40 long patch_data = 0x01b80cd;40 long patch_data = 0x01b80cd;
41 long backup;41 long backup;
4242
43 printf("test.c starting...\n");43 printf(__FILE__ " starting...\n");
44 child_pid = fork();44 child_pid = fork();
45 45
46 if (child_pid == 0) {46 if (child_pid == 0) {
4747
=== modified file 'proof_of_concept_nopatch.c'
--- proof_of_concept_nopatch.c 2009-12-08 09:46:47 +0000
+++ proof_of_concept_nopatch.c 2009-12-29 15:50:28 +0000
@@ -1,5 +1,5 @@
1/*1/*
2 * proof_of_concept.c2 * proof_of_concept_nopatch.c
3 *3 *
4 * Copyright (C) 2009 Stephan Peijnik <debian at sp dot or dot at>4 * Copyright (C) 2009 Stephan Peijnik <debian at sp dot or dot at>
5 *5 *
@@ -39,7 +39,7 @@
39 /* patch data: x86 opcodes for int $0x80 */39 /* patch data: x86 opcodes for int $0x80 */
40 int int_ins_size = 2;40 int int_ins_size = 2;
4141
42 printf("test.c starting...\n");42 printf(__FILE__ " starting...\n");
43 child_pid = fork();43 child_pid = fork();
44 44
45 if (child_pid == 0) {45 if (child_pid == 0) {

Subscribers

People subscribed via source and target branches

to all changes: