Permalink
Commits on Dec 3, 2016
  1. Spelling fixes

    Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
    committed Dec 3, 2016
  2. Update ChangeLog and bump version for v2.2.0 release

    Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
    committed Dec 3, 2016
  3. Add missing queue.h to SMCRoute distribution

    Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
    committed Dec 3, 2016
  4. Bump version to v2.2-rc2

    Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
    committed Dec 3, 2016
  5. ChangeLog: Update with systemd support

    Also, some minor cleanup.
    
    Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
    committed Dec 3, 2016
  6. Update man page with SSM group join/leave support

    Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
    committed Dec 3, 2016
  7. Minor whitespace and spelling fixes of man page

    Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
    committed Dec 3, 2016
  8. README: Update build instructions for users w/o libcap

    Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
    committed Dec 3, 2016
  9. The strtok() API modifies its argument, use copy

    Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
    committed Dec 3, 2016
  10. Add support for a default systemd service unit

    This patch adds support for a default systemd service unit.  Installing
    it in the recommended system unit directory by default.
    
    After install you need to:
    
           systemctl daemon-reload
    
    Then enable the SMCRoute service unit with the usual:
    
           systemctl enable smcroute.service
           systemctl start  smcroute.service
    
    Check status with:
    
           systemctl status smcroute.service
    
    The unit file declares documentation, test it with:
    
           systemctl help smcroute.service
    
    Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
    committed Dec 3, 2016
  11. Make sure to create PID file as correct user

    When dropping privileges we want that user to be able to touch the
    PID file after SIGHUP.  This may be used by other applications to
    detect that SMCRoute has competed setting all routes.
    
    Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
    committed Dec 3, 2016
  12. Check user:group exists already in arg parser

    When the user requests to drop privs, check the given user:group before
    we try to start the server.  This way we only need to deal with uid/gid
    in the rest of the code *and* we can let the pidfile() function chown()
    the PID file to the correct user.
    
    Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
    committed Dec 3, 2016
  13. Minor: Fix #ifdef comment

    Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
    committed Dec 3, 2016
Commits on Oct 26, 2016
  1. Merge pull request #48 from yarrr-ru/master

    Source Specific Multicast groups support (only IPv4 now)
    committed on GitHub Oct 26, 2016
Commits on Oct 10, 2016
  1. Fix typo

    Aleksei Safronov committed Oct 10, 2016
  2. Fix small bug in ipv6 checking in read_ipc_command

    Aleksei Safronov committed Oct 10, 2016
  3. SSM group in usage

    Aleksei Safronov committed Oct 10, 2016
  4. Fixes for configs

    Aleksei Safronov committed Oct 10, 2016
  5. ssmgroup support for smcroute.conf

    Aleksei Safronov committed Oct 10, 2016
  6. Fix LOG_WARNING format for mcgroup_join_leave_ssm_ipv4

    Aleksei Safronov committed Oct 10, 2016
  7. Merge remote-tracking branch 'upstream/master'

    Aleksei Safronov committed Oct 10, 2016
Commits on Sep 24, 2016
  1. README: Document kernel config requirements Linux + BSD

    Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
    committed Sep 24, 2016
Commits on Sep 15, 2016
  1. Update ChangeLog and bump version to v2.2-rc1

    No more features planned.
    
    Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
    committed Sep 15, 2016
Commits on Sep 2, 2016
  1. Move comment about dropping root to inside #ifdef

    As Markus points out, in issue #45, it is much clearer to have the
    comment inside the block, in particular after the pre-processing step.
    
    Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
    committed Sep 2, 2016
Commits on Sep 1, 2016
  1. Document new -p USER:GROUP option in man page

    Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
    committed Sep 1, 2016
  2. Support building without libcap

    By default SMCRoute requires libcap and its headers to build. This patch
    adds a `--without-libcap` option to configure that makes it possible to
    disable the new drop root feature on systems that do not require, or do
    not have libcap.
    
    Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
    committed Sep 1, 2016
Commits on Aug 31, 2016
  1. Minor code/style cleanup and refactor

    Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
    committed Aug 31, 2016
  2. Compat: Add OpenBSD queue.h since musl libc has no sys/queue.h

    We cannot assume every libc has sys/queue.h, in particular musl libc
    does not¹.  This patch adds OpenBSD r1.43 sys/queue.h from libite.
    
    No point in trying to detect if the system has one though, we only
    use the singly linked list implementation.
    
    _____
    ¹ http://wiki.musl-libc.org/wiki/FAQ#Q:_why_is_sys.2Fqueue.h_not_included_.3F
    
    Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
    committed Aug 31, 2016
  3. Refactor ARRAY_ELEMENTS() --> NELEMS()

    Revert to use the less verbose, and more common NELEMS() macro to figure
    out the number of elements in an array. This is not just the more common
    definition but arguably more readable.
    
    Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
    committed Aug 31, 2016
  4. Replace %m GNUism with %s and strerror()

    Many C libraries do not support the GLIBC %m format spefifier extension,
    in particular *BSD and musl libc.  This patch replaces %m with a simple
    %s and strerror(errno), which is all what %m does.
    
    Unfortunately %m is very handy, but this is a more portable solution.
    
    Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
    committed Aug 31, 2016
  5. Proposal to support disabling libcap in configure

    Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
    committed Aug 31, 2016
  6. v2.2-beta1: Update README and check for libcap

    Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
    committed Aug 31, 2016
  7. Update Travis-CI, libcap-dev now required

    Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
    committed Aug 31, 2016
  8. Merge pull request #45 from remedi/master

    Resolve #43: Run daemon as specific user and group
    
    Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
    committed on GitHub Aug 31, 2016
Commits on Aug 30, 2016
  1. Resolve #43: Run daemon as specific user and group

    smcroute daemon starts with root privileges. After startup procedure
    it will try to change UID and GID to user and group specified with
    command-line argument -p. It assumes that the user and group exists,
    otherwise it will just print error message and continue running the
    daemon as root.
    
    NOTE: smcroute now depends on library libcap.
    remedi committed Aug 30, 2016