~ubuntu-branches/ubuntu/lucid/samba/lucid-security

« back to all changes in this revision

Viewing changes to source3/lib/netapi/tests/Makefile

  • Committer: Bazaar Package Importer
  • Author(s): Marc Deslauriers
  • Date: 2010-03-08 17:50:57 UTC
  • Revision ID: james.westby@ubuntu.com-20100308175057-z5ao2e65nqgiovbn
Tags: 2:3.4.6~dfsg-1ubuntu2
* SECURITY UPDATE: permission bypass via incorrect CAP_DAC_OVERRIDE
  handling.
  - debian/patches/security-CVE-2010-0728.patch: fix capability handling
    in source3/{include/smb.h,lib/system.c,smbd/server.c}.
  - CVE-2010-0728
* Removed patches:
  - debian/patches/debian-changes-2:3.4.5~dfsg-2ubuntu2: merge error
  - debian/patches/debian-changes-2:3.4.6~dfsg-1ubuntu1: merge error

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
KRB5LIBS=-Wl,-Bsymbolic-functions -Wl,-Bsymbolic-functions -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err
2
 
LDAP_LIBS=-lldap -llber 
3
 
LIBS=-lcap -lresolv -lnsl -ldl -lnetapi -ltdb -ltalloc
4
 
DEVELOPER_CFLAGS=-g -Wall -Wshadow -Wpointer-arith -Wcast-align -Wwrite-strings -DDEBUG_PASSWORD -DDEVELOPER -Wdeclaration-after-statement -Werror-implicit-function-declaration
5
 
CCFLAGS=-I../ -L../../../bin  -g -Wall -O2 $(FLAGS) -D_SAMBA_BUILD_=3 $(GTK_FLAGS)
6
 
CC=gcc
7
 
PICFLAG=-fPIC
8
 
LDFLAGS=-pie -Wl,-Bsymbolic-functions -Wl,-z,now -L./bin
9
 
DYNEXP=-Wl,--export-dynamic
10
 
NETAPI_LIBS=$(LIBS) $(KRB5LIBS) $(LDAP_LIBS)
11
 
CMDLINE_LIBS=$(NETAPI_LIBS) -lpopt
12
 
 
13
 
# Compile a source file.
14
 
COMPILE_CC = $(CC) -I. $(CCFLAGS) $(PICFLAG) -c $< -o $@
15
 
COMPILE = $(COMPILE_CC)
16
 
 
17
 
PROGS = bin/netapitest
18
 
 
19
 
all: $(PROGS)
20
 
 
21
 
MAKEDIR = || exec false; \
22
 
          if test -d "$$dir"; then :; else \
23
 
          echo mkdir "$$dir"; \
24
 
          mkdir -p "$$dir" >/dev/null 2>&1 || \
25
 
          test -d "$$dir" || \
26
 
          mkdir "$$dir" || \
27
 
          exec false; fi || exec false
28
 
 
29
 
BINARY_PREREQS = bin/.dummy
30
 
 
31
 
bin/.dummy:
32
 
        @if (: >> $@ || : > $@) >/dev/null 2>&1; then :; else \
33
 
          dir=bin $(MAKEDIR); fi
34
 
        @: >> $@ || : > $@ # what a fancy emoticon!
35
 
 
36
 
.c.o:
37
 
        @if (: >> $@ || : > $@) >/dev/null 2>&1; then rm -f $@; else \
38
 
         dir=`echo $@ | sed 's,/[^/]*$$,,;s,^$$,.,'` $(MAKEDIR); fi
39
 
        @echo Compiling $*.c
40
 
        @$(COMPILE) && exit 0;\
41
 
                echo "The following command failed:" 1>&2;\
42
 
                echo "$(COMPILE_CC)" 1>&2;\
43
 
                $(COMPILE_CC) >/dev/null 2>&1
44
 
 
45
 
CMDLINE_OBJ = common.o
46
 
NETAPIBUFFER_OBJ = netapibuffer.o
47
 
NETAPITEST_OBJ = netapitest.o netlocalgroup.o netuser.o netgroup.o netdisplay.o netshare.o netfile.o netserver.o $(CMDLINE_OBJ)
48
 
 
49
 
bin/netapitest: $(BINARY_PREREQS) $(NETAPITEST_OBJ)
50
 
        @echo Linking $@
51
 
        @$(CC) $(CCFLAGS) -o $@ $(NETAPITEST_OBJ) $(LDFLAGS) $(DYNEXP) $(CMDLINE_LIBS)
52
 
 
53
 
clean:
54
 
        -rm -f $(PROGS)
55
 
        -rm -f core */*~ *~ \
56
 
                */*.o */*/*.o */*/*/*.o
57