/mandos/trunk

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

  • Committer: Teddy Hogeborn
  • Date: 2014-03-23 19:24:40 UTC
  • Revision ID: teddy@recompile.se-20140323192440-d71iiqxebsxf9u2v
Update GCC warning flags and function attributes to GCC 4.7.

* Makefile (WARN): Update to include almost all warning flags.
* plugin-runner.c (getplugin, add_to_char_array, add_argument,
                   add_environment, set_cloexec_flag,
                   print_out_password): Add attribute
                                        "warn_unused_result".
  (main/parse_opt): Bug fix: Add error checking to --global-env,
                    --env-for, --plugin-dir, and --config-file, and
                    make sure errno does not "leak" from unrelated
                    functions.
* plugins.d/mandos-client.c
  (fprintf_plus, debuggnutls, resolve_callback): Add "nonnull"
                                                 attribute.
  (incbuffer, add_server, init_gpgme): Add "nonnull" and
                                       "warn_unused_result"
                                       attributes.
  (pgp_packet_decrypt, init_gnutls_global): - '' -
  (init_gnutls_session start_mandos_communication, get_flags): - '' -
  (good_flags, good_interface, interface_is_up): - '' -
  (interface_is_running, runnable_hook): - '' -
  (avahi_loop_with_timeout, bring_up_interface): : - '' -
  (safer_gnutls_strerror): Add "warn_unused_result" attribute.
  (notdotentries): Set "nonnull", "pure", and "warn_unused_result"
                   attributes.
  (raise_privileges, raise_privileges_permanently, lower_privileges,
  lower_privileges_permanently): Set "warn_unused_result" attribute.
  (run_network_hooks): Exit child process if it fails to do anything
                       it needs to do.  Make explicit cast to double
                       when passing float value to asprintf().  Change
                       return type to void - all callers changed.
  (bring_up_interface): Move variables "sd", "ret_errno", and
                        "ret_setflags" to innermost scope.  Bug fix:
                        Fail if could not get interface flags also in
                        non-debug mode, and restore old errno
                        correctly.  Print message if could not raise
                        (or later lower) privileges.
  (take_down_interface): Bug fix: When failing because it could not
                         get interface flags, restore old errno
                         correctly.  Print message if it could not
                         raise (or later lower) privileges.
  (main): Complain if failed to raise or lower privileges.  Only run
          network hooks or lower privileges if raising privileges was
          successful.
Filename Latest Rev Last Changed Committer Comment Size
..
.bzr-builddeb 185 16 years ago Teddy Hogeborn * .bzr-builddeb/default.conf: New. * Makefile (in Diff
debian 185 16 years ago Teddy Hogeborn * .bzr-builddeb/default.conf: New. * Makefile (in Diff
network-hooks.d 505.3.10 12 years ago Teddy Hogeborn * network-hooks.d: New directory. * network-hooks. Diff
plugins.d 13 16 years ago Björn Påhlsson Added following support: Pluginbased client handle Diff
.bzrignore 585 12 years ago Teddy Hogeborn * .bzrignore (statedir): Added. 188 bytes Diff Download File
clients.conf 609 12 years ago Teddy Hogeborn * clients.conf: Convert all time intervals to new 3.1 KB Diff Download File
common.ent 237.4.41 10 years ago Teddy Hogeborn * Makefile (version): Changed to "1.6.4". * NEWS ( 93 bytes Diff Download File
COPYING 24.1.51 16 years ago Björn Påhlsson Added configuration files support for mandos-clien 34.2 KB Diff Download File
DBUS-API 556 12 years ago Teddy Hogeborn * DBUS-API (se.recompile.Mandos.Client.LastChecker 6.7 KB Diff Download File
dbus-mandos.conf 24.1.186 13 years ago Björn Påhlsson transitional stuff actually working documented cha 820 bytes Diff Download File
default-mandos 185 16 years ago Teddy Hogeborn * .bzr-builddeb/default.conf: New. * Makefile (in 174 bytes Diff Download File
init.d-mandos 648 10 years ago Teddy Hogeborn Update init script to modern standards. * init.d- 4.3 KB Diff Download File
File initramfs-tools-hook 640 11 years ago Teddy Hogeborn Use architecture libdir. Instead of always using 6 KB Diff Download File
initramfs-tools-hook-conf 237.2.19 15 years ago Teddy Hogeborn * initramfs-tools-hook-conf: Security bug fix: Add 407 bytes Diff Download File
File initramfs-tools-script 487 13 years ago Teddy Hogeborn * initramfs-tools-script: Abort if plugin-runner i 3.6 KB Diff Download File
File initramfs-unpack 624 11 years ago Teddy Hogeborn * initramfs-unpack: Bug fix: Made executable. 2.2 KB Diff Download File
INSTALL 618 11 years ago Teddy Hogeborn * mandos: Bug fix: Make boolean options work from 5 KB Diff Download File
intro.xml 544 12 years ago Teddy Hogeborn Updated year in copyright notices. 15.3 KB Diff Download File
legalnotice.xml 174 16 years ago Teddy Hogeborn * legalnotice.xml: Copy DocBook 4.4-formatted text 1 KB Diff Download File
Makefile 672 10 years ago Teddy Hogeborn Update GCC warning flags and function attributes t 16.1 KB Diff Download File
File mandos 658 10 years ago Teddy Hogeborn * mandos (ClientDBus.start_checker): Removed unuse 117 KB Diff Download File
mandos-clients.conf.xml 626 11 years ago Teddy Hogeborn * Makefile (CFLAGS, LDFLAGS): Keep default flags f 18.2 KB Diff Download File
File mandos-ctl 659 10 years ago Teddy Hogeborn * debian/copyright: Change year to "2014". * mando 18.8 KB Diff Download File
mandos-ctl.xml 608 12 years ago Teddy Hogeborn * Makefile (check): Also check mandos-ctl. * mando 16.3 KB Diff Download File
File mandos-keygen 663 10 years ago Teddy Hogeborn * mandos-keygen (keygen): Add workaround for Debia 9.7 KB Diff Download File
mandos-keygen.xml 631 11 years ago Teddy Hogeborn * mandos (priority): Bug fix: Add even more magic 14.3 KB Diff Download File
File mandos-monitor 659 10 years ago Teddy Hogeborn * debian/copyright: Change year to "2014". * mando 29.1 KB Diff Download File
mandos-monitor.xml 544 12 years ago Teddy Hogeborn Updated year in copyright notices. 6 KB Diff Download File
mandos-options.xml 634 11 years ago Teddy Hogeborn * debian/control (Build-Depends): Changed debhelpe 4.9 KB Diff Download File
mandos.conf 631 11 years ago Teddy Hogeborn * mandos (priority): Bug fix: Add even more magic 1.4 KB Diff Download File
mandos.conf.xml 634 11 years ago Teddy Hogeborn * debian/control (Build-Depends): Changed debhelpe 8.7 KB Diff Download File
mandos.lsm 657 10 years ago Teddy Hogeborn * mandos.lsm: Fix formatting to be acceptable by t 912 bytes Diff Download File
mandos.service 647 10 years ago Teddy Hogeborn Specify BusName in systemd service file. * mandos 660 bytes Diff Download File
mandos.xml 636 11 years ago Teddy Hogeborn Fall back to /var/run for pidfile if /run is not a 23.5 KB Diff Download File
NEWS 237.4.41 10 years ago Teddy Hogeborn * Makefile (version): Changed to "1.6.4". * NEWS ( 11.2 KB Diff Download File
overview.xml 183 16 years ago Teddy Hogeborn * Makefile (install-client-nokey): Do "&&" instead 926 bytes Diff Download File
plugin-runner.c 672 10 years ago Teddy Hogeborn Update GCC warning flags and function attributes t 35.4 KB Diff Download File
plugin-runner.conf 342 15 years ago Teddy Hogeborn * initramfs-tools-hook: Bug fix: Add "--userid" an 380 bytes Diff Download File
plugin-runner.xml 544 12 years ago Teddy Hogeborn Updated year in copyright notices. 20.5 KB Diff Download File
README 550 12 years ago Teddy Hogeborn * README: Hint that the intro(8mandos) manual page 409 bytes Diff Download File
TODO 669 10 years ago Teddy Hogeborn Use "struct sockaddr_storage" instead of a union i 5.2 KB Diff Download File