/mandos/trunk

To get this branch, use:
bzr branch http://bzr.recompile.se/loggerhead/mandos/trunk

« back to all changes in this revision

Viewing changes to Makefile

  • Committer: teddy at bsnet
  • Date: 2010-08-16 19:00:59 UTC
  • mto: This revision was merged to the branch mainline in revision 420.
  • Revision ID: teddy@fukt.bsnet.se-20100816190059-69vvi27up95cgbbl
* Makefile (run-server, run-client): Add notices about harmless error
                                     messages.

Show diffs side-by-side

added added

removed removed

Lines of Context:
8
8
#       -Wunreachable-code 
9
9
#DEBUG=-ggdb3
10
10
# For info about _FORTIFY_SOURCE, see
11
 
# <http://www.kernel.org/doc/man-pages/online/pages/man7/feature_test_macros.7.html>
12
 
# and <http://gcc.gnu.org/ml/gcc-patches/2004-09/msg02055.html>.
 
11
# <http://gcc.gnu.org/ml/gcc-patches/2004-09/msg02055.html>
13
12
FORTIFY=-D_FORTIFY_SOURCE=2 -fstack-protector-all -fPIC
14
13
LINK_FORTIFY_LD=-z relro -z now
15
14
LINK_FORTIFY=
208
207
 
209
208
# Run the client with a local config and key
210
209
run-client: all keydir/seckey.txt keydir/pubkey.txt
 
210
        @echo "###################################################################"
 
211
        @echo "# The following error messages are harmless and can be safely     #"
 
212
        @echo "# ignored.  The messages are caused by not running as root, but   #"
 
213
        @echo "# you should NOT run \"make run-client\" as root unless you also    #"
 
214
        @echo "# unpacked and compiled Mandos as root, which is NOT recommended. #"
 
215
        @echo "# From plugin-runner: setuid: Operation not permitted             #"
 
216
        @echo "# From askpass-fifo:  mkfifo: Permission denied                   #"
 
217
        @echo "# From mandos-client: setuid: Operation not permitted             #"
 
218
        @echo "#                     seteuid: Operation not permitted            #"
 
219
        @echo "#                     klogctl: Operation not permitted            #"
 
220
        @echo "###################################################################"
211
221
        ./plugin-runner --plugin-dir=plugins.d \
212
222
                --config-file=plugin-runner.conf \
213
223
                --options-for=mandos-client:--seckey=keydir/seckey.txt,--pubkey=keydir/pubkey.txt \
220
230
 
221
231
# Run the server with a local config
222
232
run-server: confdir/mandos.conf confdir/clients.conf
 
233
        @echo "#################################################################"
 
234
        @echo "# NOTE: Please IGNORE errors about \"No permission to bind to    #"
 
235
        @echo "# interface\" or \"Could not open file u'/var/run/mandos.pid'\" -  #"
 
236
        @echo "# they are harmless and are caused by the server not running as #"
 
237
        @echo "# root.  Do NOT run \"make run-server\" server as root if you did #"
 
238
        @echo "# not also unpack and compile it as root.                       #"
 
239
        @echo "#################################################################"
223
240
        ./mandos --debug --no-dbus --configdir=confdir $(SERVERARGS)
224
241
 
225
242
# Used by run-server