The NetBSD Project

CVS log for src/external/bsd/dhcpcd/dist/src/privsep.c

[BACK] Up to [cvs.NetBSD.org] / src / external / bsd / dhcpcd / dist / src

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.18 / (download) - annotate - [select for diffs], Mon Dec 18 15:51:28 2023 UTC (4 months ago) by roy
Branch: MAIN
CVS Tags: HEAD
Changes since 1.17: +10 -11 lines
Diff to previous 1.17 (colored) to selected 1.12 (colored)

Sync with dhcpcd-10.0.6

Revision 1.1.1.19 / (download) - annotate - [select for diffs] (vendor branch), Mon Dec 18 15:49:42 2023 UTC (4 months ago) by roy
Branch: ROY
CVS Tags: dhcpcd-10_0_6a, dhcpcd-10_0_6
Changes since 1.1.1.18: +10 -11 lines
Diff to previous 1.1.1.18 (colored) to selected 1.12 (colored)

Import dhcpcd-10.0.6 with the following changes:

 * privsep: Stop proxying stderr to console and fix some detachment issues
 * non-privsep: Fix launcher hangup
 * DHCP6: Allow the invalid interface name - to mean don't assign an address from a delegated prefix
 * DHCP6: Load the configuration for the interface being activated from prefix delegation

Revision 1.17 / (download) - annotate - [select for diffs], Thu Oct 19 11:26:52 2023 UTC (6 months ago) by roy
Branch: MAIN
Changes since 1.16: +23 -0 lines
Diff to previous 1.16 (colored) to selected 1.12 (colored)

Sync with dhcpcd-10.0.4

Revision 1.1.1.18 / (download) - annotate - [select for diffs] (vendor branch), Thu Oct 19 11:25:19 2023 UTC (6 months ago) by roy
Branch: ROY
CVS Tags: dhcpcd-10_0_4
Changes since 1.1.1.17: +23 -0 lines
Diff to previous 1.1.1.17 (colored) to selected 1.12 (colored)

Import dhcpcd-10.0.4 with the following change:

privsep: Notify processes that dhcpcd has daemonised so they dup
         stdout and stderr to /dev/null.
         This avoids scripts failing with SIGPIPE if they try and write
         to these streams.

Revision 1.16 / (download) - annotate - [select for diffs], Fri Oct 6 08:49:42 2023 UTC (6 months, 1 week ago) by roy
Branch: MAIN
Changes since 1.15: +3 -4 lines
Diff to previous 1.15 (colored) to selected 1.12 (colored)

sync with dhcpcd-10.0.3

Revision 1.1.1.17 / (download) - annotate - [select for diffs] (vendor branch), Fri Oct 6 08:46:22 2023 UTC (6 months, 1 week ago) by roy
Branch: ROY
CVS Tags: dhcpcd-10_0_3
Changes since 1.1.1.16: +3 -4 lines
Diff to previous 1.1.1.16 (colored) to selected 1.12 (colored)

Import dhcpcd-10.0.3 with the following changes:

DHCP: Don't crash on a test run
dhcpcd: Fix off-by-one overflow when read() writes full BUFSIZ
privsep: fix strlcpy overflow in psp_ifname
privsep: Fix a FD leak when processes exit
dhcpcd: Use a local variable instead of the optind
dhcpcd: Guard against handling many SIGTERM/SIGINT
DHCP6: Send correct amount of used buffer for prefix exclude option
options: andsf6 is DHCPv6, not DHCP
options: introduce the uri option as opposed to a string
DHCP6: Set all requested addrs as not stale when starting discovery

Revision 1.15 / (download) - annotate - [select for diffs], Wed Jul 19 13:53:03 2023 UTC (9 months ago) by roy
Branch: MAIN
Changes since 1.14: +3 -11 lines
Diff to previous 1.14 (colored) to selected 1.12 (colored)

Sync with dhcpcd-10.0.2

Revision 1.1.1.16 / (download) - annotate - [select for diffs] (vendor branch), Wed Jul 19 13:51:09 2023 UTC (9 months ago) by roy
Branch: ROY
CVS Tags: dhcpcd-10_0_2
Changes since 1.1.1.15: +3 -11 lines
Diff to previous 1.1.1.15 (colored) to selected 1.12 (colored)

Import dhcpcd-10.0.2 with the following changes:
 * BSD: When we get RTM_NEWADDR the interface must have IFF_UP
 * BSD: Fix non INET6 builds
 * DHCP: Don't enforce the message came port 67
 * privsep: Allow zero length messages through
 * dhcpcd: deal with HANGUP and EPIPE better
 * dhcpcd: Fix waitip address family
 * privsep: Check if we have a root process before sending it stuff
 * privsep: Only unlink control sockets if we created them
 * common: Improve valid_domain and check correct return
 * common: Allow hwaddr_ntoa to print an empty string
 * privsep: Send only what we have put in the buffer to script env

Revision 1.14 / (download) - annotate - [select for diffs], Fri Apr 21 16:54:26 2023 UTC (11 months, 4 weeks ago) by roy
Branch: MAIN
Changes since 1.13: +307 -110 lines
Diff to previous 1.13 (colored) to selected 1.12 (colored)

Merge changes

Revision 1.1.1.15 / (download) - annotate - [select for diffs] (vendor branch), Fri Apr 21 16:52:45 2023 UTC (11 months, 4 weeks ago) by roy
Branch: ROY
CVS Tags: dhcpcd-10_0_1
Changes since 1.1.1.14: +307 -110 lines
Diff to previous 1.1.1.14 (colored) to selected 1.12 (colored)

Update to dhcpcd-10.0.1 with the following changes:

 * privsep: keep resources open rather than open/close
 * dhcp6: OPTION_NTP_SERVER is now preferred over OPTION_SNTP_SERVER
 * Misc bug fixes mainly around privsep for many platforms.
 * Fix for reading the some BSD routing table entries.
 * Fix reading authtokens from config.

Big new release, mainly around better privsep process management
which allows us to detect when they exit unexpectedly.

Revision 1.13 / (download) - annotate - [select for diffs], Fri Oct 22 13:23:20 2021 UTC (2 years, 5 months ago) by roy
Branch: MAIN
CVS Tags: netbsd-10-base, netbsd-10-0-RELEASE, netbsd-10-0-RC6, netbsd-10-0-RC5, netbsd-10-0-RC4, netbsd-10-0-RC3, netbsd-10-0-RC2, netbsd-10-0-RC1, netbsd-10
Changes since 1.12: +50 -21 lines
Diff to previous 1.12 (colored)

Sync update

Revision 1.1.1.14 / (download) - annotate - [select for diffs] (vendor branch), Fri Oct 22 13:21:59 2021 UTC (2 years, 5 months ago) by roy
Branch: ROY
CVS Tags: dhcpcd-9_4_1
Changes since 1.1.1.13: +50 -21 lines
Diff to previous 1.1.1.13 (colored) to selected 1.12 (colored)

Update to dhcpcd-9.4.1 with the following changes:

 * BSD: Find the correct interface for tunnelled routes
 * OpenBSD: Fix uniqueness of routes for matching priorities
 * Linux: Support more platforms for seccomp (thanks to Fabrice Fontaine)
 * eloop: Process all waiting fd's as they come in
 * control: Unlink sockets when not in privsep
 * privsep: Renamed Master to Manager
 * privsep: Renamed Privilged Actioneer to Privileged Proxy
 * privsep: Fix getting interface VLANID on BSD
 * privsep: Enforce proper alignment of serialized struct cmsghdr
 * IPv4LL: Don't remove statically assigned addresses
 * routes: Fix route comparision for network prefixes with different masks
 * DHCP6: Only send FQDN for SOLICIT, REQUEST, RENEW, or REBIND messages
 * DHCP6: Don't spam the log when a RA repeatedly triggers an INFORM
 * DHCP: Fix infinite INFORM messages

Revision 1.12 / (download) - annotate - [selected], Mon Dec 28 13:57:40 2020 UTC (3 years, 3 months ago) by roy
Branch: MAIN
CVS Tags: cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1, cjep_staticlib_x-base, cjep_staticlib_x
Changes since 1.11: +3 -1 lines
Diff to previous 1.11 (colored)

Sync with dhcpcd-9.4.0

Revision 1.1.1.13 / (download) - annotate - [select for diffs] (vendor branch), Mon Dec 28 13:56:26 2020 UTC (3 years, 3 months ago) by roy
Branch: ROY
CVS Tags: dhcpcd-9_4_0
Changes since 1.1.1.12: +3 -1 lines
Diff to previous 1.1.1.12 (colored) to selected 1.12 (colored)

Update to dhcpcd-9.4.0 with the following changes:

 * DHCP: For anonymous, just use a generic ClientID
 * link: Split hardware address randomisation out of anonymous option
 * link: Only report hardware changes for active interfaces
 * link: Report errors obtaining recv buffer size on overflow
 * hooks: Add NOCARRIER_ROAMING reason
 * hooks: interface_order now reflects priorities again

Revision 1.11 / (download) - annotate - [select for diffs], Fri Nov 20 13:24:58 2020 UTC (3 years, 4 months ago) by roy
Branch: MAIN
Changes since 1.10: +5 -4 lines
Diff to previous 1.10 (colored) to selected 1.12 (colored)

Sync with dhcpcd-9.3.3

Revision 1.1.1.12 / (download) - annotate - [select for diffs] (vendor branch), Fri Nov 20 13:23:39 2020 UTC (3 years, 4 months ago) by roy
Branch: ROY
CVS Tags: dhcpcd-9_3_4, dhcpcd-9_3_3
Changes since 1.1.1.11: +5 -4 lines
Diff to previous 1.1.1.11 (colored) to selected 1.12 (colored)

Update to dhcpcd-9.3.3 with the following changes:

 * dhcpcd: Don't create a launcher process if keeping in foreground
 * dhcpcd: Add --noconfigure option
 * control: Create an unpriv socket for non master mode
 * options: Don't log unknown ones when printing pidfile location

Revision 1.10 / (download) - annotate - [select for diffs], Sun Nov 1 14:24:01 2020 UTC (3 years, 5 months ago) by roy
Branch: MAIN
Changes since 1.9: +13 -0 lines
Diff to previous 1.9 (colored) to selected 1.12 (colored)

Sync with dhcpcd-9.3.2

Revision 1.1.1.11 / (download) - annotate - [select for diffs] (vendor branch), Sun Nov 1 14:23:03 2020 UTC (3 years, 5 months ago) by roy
Branch: ROY
CVS Tags: dhcpcd-9_3_2
Changes since 1.1.1.10: +13 -0 lines
Diff to previous 1.1.1.10 (colored) to selected 1.12 (colored)

Update to dhcpcd-9.3.2 with the following changes:

 * DHCP: Add support for IPv6-Only Preferred option, RFC 8925.
 * BSD: `LINK_STATE_UNKNOWN` is treated as UP once again
 * privsep: pass logging to the privileged actioneer
 * privsep: allow logfile re-opening to work
 * privsep: close BPF socket on ENXIO
 * privsep: don't leave a BOOTP BPF listener rebooting in non master mode

Revision 1.9 / (download) - annotate - [select for diffs], Mon Oct 12 14:09:03 2020 UTC (3 years, 6 months ago) by roy
Branch: MAIN
Changes since 1.8: +7 -6 lines
Diff to previous 1.8 (colored) to selected 1.12 (colored)

Sync withn dhcpcd-9.3.1

Revision 1.1.1.10 / (download) - annotate - [select for diffs] (vendor branch), Mon Oct 12 14:07:56 2020 UTC (3 years, 6 months ago) by roy
Branch: ROY
CVS Tags: dhcpcd-9_3_1
Changes since 1.1.1.9: +7 -6 lines
Diff to previous 1.1.1.9 (colored) to selected 1.12 (colored)

Update to dhcpcd-9.3.1 with the following changes:
 * dhcpcd: carrier handling issue fixed from 9.3.0
 * dhcpcd: log if interface type is unsupported in debug
 * duid: memory leak fixed if UUID wanted but none available
 * privsep: fix receiving inet and no BPF running
 * privsep: allow gettimeofday for SECCOMP
 * privsep: fix stderr redirection again

Revision 1.8 / (download) - annotate - [select for diffs], Mon Oct 5 16:02:15 2020 UTC (3 years, 6 months ago) by roy
Branch: MAIN
Changes since 1.7: +87 -22 lines
Diff to previous 1.7 (colored) to selected 1.12 (colored)

Sync with dhcpcd-9.3.0

Revision 1.1.1.9 / (download) - annotate - [select for diffs] (vendor branch), Mon Oct 5 16:01:14 2020 UTC (3 years, 6 months ago) by roy
Branch: ROY
CVS Tags: dhcpcd-9_3_0
Changes since 1.1.1.8: +87 -22 lines
Diff to previous 1.1.1.8 (colored) to selected 1.12 (colored)

Update to dhcpcd-9.3.0 with the following changes:
 * dhcpcd: Backticks have been removed from quoting filenames
 * dhcpcd: Only manipulate stdin, stdout and stderr if they are valid
 * duid: Adjust option so the type can be specified
 * logerr: Don't leak logfile fd to scripts
 * privsep: Run the launcher process in the sandbox
 * BSD: Use `ifi_link_state` as the single source of truth about carrier
 * BSD: Ignore vether(4) devices by default

Revision 1.7 / (download) - annotate - [select for diffs], Sun Sep 6 14:55:34 2020 UTC (3 years, 7 months ago) by roy
Branch: MAIN
Changes since 1.6: +35 -25 lines
Diff to previous 1.6 (colored) to selected 1.12 (colored)

Sync

Revision 1.1.1.8 / (download) - annotate - [select for diffs] (vendor branch), Sun Sep 6 14:54:29 2020 UTC (3 years, 7 months ago) by roy
Branch: ROY
CVS Tags: dhcpcd-9_2_0
Changes since 1.1.1.7: +35 -25 lines
Diff to previous 1.1.1.7 (colored) to selected 1.12 (colored)

Update to dhcpcd-9.2.0 with the following changes:

 * route: ensure IPv4LL routes come last in priority
 * DHCP: fix many issues with extending the last lease
 * privsep: don't read control group from config in privsep
 * privsep: only the master process responds to signals
 * privsep: use a socketpair for stderr/stdin rather than dupping /dev/null
 * privsep: right limit stdin/stderr/stdout
 * privsep: dumping a lease is now run in a sandbox
 * options: check if kernel supports INET or INET6 before enabling default
 * options: let clientid override a prior duid
 * options: allow -1 to represent infinity for requested lease time
 * dhcpcd: fix a crash initing a new interface after route overflow

Revision 1.6 / (download) - annotate - [select for diffs], Thu Jul 2 13:59:19 2020 UTC (3 years, 9 months ago) by roy
Branch: MAIN
Changes since 1.5: +3 -9 lines
Diff to previous 1.5 (colored) to selected 1.12 (colored)

Sync

Revision 1.1.1.7 / (download) - annotate - [select for diffs] (vendor branch), Thu Jul 2 13:57:41 2020 UTC (3 years, 9 months ago) by roy
Branch: ROY
CVS Tags: dhcpcd-9_1_4, dhcpcd-9_1_3
Changes since 1.1.1.6: +3 -9 lines
Diff to previous 1.1.1.6 (colored) to selected 1.12 (colored)

Update to dhcpcd-9.1.3 with the following changes:

 * inet6: Add support for reporting Mobile IPv6 RA's
 * inet6: Report RA Proxy flag if set
 * BSD: Allow non NetBSD and OpenBSD to set IN6_IFF_AUTOCONF
 * privsep: Don't handle any signals meant for the main process
 * eloop: Try and survive a signal storm
 * dhcpcd: Add an option to poll the interface carrier state
 * script: Make visible some link level parameters to lease dumping
 * inet6: Don't regen temp addresses we didn't add
 * privsep: Don't limit file writes if logging to a file
 * DHCP6: Fix lease timings with nodelay option

Revision 1.5 / (download) - annotate - [select for diffs], Mon Jun 15 16:59:05 2020 UTC (3 years, 10 months ago) by roy
Branch: MAIN
Changes since 1.4: +173 -27 lines
Diff to previous 1.4 (colored) to selected 1.12 (colored)

Sync

Revision 1.1.1.6 / (download) - annotate - [select for diffs] (vendor branch), Mon Jun 15 16:58:02 2020 UTC (3 years, 10 months ago) by roy
Branch: ROY
CVS Tags: dhcpcd-9_1_2
Changes since 1.1.1.5: +173 -27 lines
Diff to previous 1.1.1.5 (colored) to selected 1.12 (colored)

Update to dhcpcd-9.1.2 with the following changes:

* NetBSD: free ARP state once IPv4LL address announced
* NetBSD: Mark RA dervied addresses as AUTOCONF
* BSD: Only mark static routes from dhcpcd.conf as static
* DHCP6: Ensure requested addresses are requested
* DHCP6: Fix prefix length calculation when no prefix specified
* privsep: Implement a resource limited sandbox

Revision 1.4 / (download) - annotate - [select for diffs], Thu Jun 4 13:08:13 2020 UTC (3 years, 10 months ago) by roy
Branch: MAIN
Changes since 1.3: +64 -59 lines
Diff to previous 1.3 (colored) to selected 1.12 (colored)

Sync

Revision 1.1.1.5 / (download) - annotate - [select for diffs] (vendor branch), Thu Jun 4 13:07:13 2020 UTC (3 years, 10 months ago) by roy
Branch: ROY
CVS Tags: dhcpcd-9_1_1
Changes since 1.1.1.4: +64 -59 lines
Diff to previous 1.1.1.4 (colored) to selected 1.12 (colored)

Update to dhcpcd-9.1.1 with the following changes:

 * Restore dumping leases from stdin
 * auth: Only accept RECONFIGURE messages from LL addresses
 * auth: Access the RDM monotonic counter file via privsep
 * ARP: call arp_announced() when cancelling it
 * BSD: fwip(4) interfaces are now ignored by default
 * privsep: Ensure IPC buffers are large enough to carry messages
 * privsep: Only open RAW sockets for the needed protocols
 * privsep: Fix indirect ioctls returning data
 * privsep: wait for processes on SIGCHLD rather than when sent a STOP cmd
 * eloop: just use ppoll/pollts(2), falling back to pselect(2)

Revision 1.3 / (download) - annotate - [select for diffs], Sun May 31 12:52:11 2020 UTC (3 years, 10 months ago) by roy
Branch: MAIN
Changes since 1.2: +93 -71 lines
Diff to previous 1.2 (colored) to selected 1.12 (colored)

Sync

Revision 1.1.1.4 / (download) - annotate - [select for diffs] (vendor branch), Sun May 31 12:50:47 2020 UTC (3 years, 10 months ago) by roy
Branch: ROY
CVS Tags: dhcpcd-9_1_0
Changes since 1.1.1.3: +93 -71 lines
Diff to previous 1.1.1.3 (colored) to selected 1.12 (colored)

Update to dhcpcd-9.1.0 with the following changes:

 * Leases are stored outside the chroot again
 * The chroot directory can now be (and should be) empty [1]
 * ARP is now per address rather than per interface
 * Filter allowed ioctls in the privileged actioneer
 * Filter allowed UDP ports used by sendto(2) in the privileged actioneer
 * Filter allowed file paths in the privileged actioneer
 * route socket is now drained on overflow as it cannot be
   re-opened by the unpriviledged user

 * hostname can no longer be clobbered by SLAAC
 * grep is no longer used by the test hook
 * Interface hardware address type changes are now picked up
 * Fixed some RA timing issues
 * Fixed nd_* option parsing in dhcpcd.conf
 * Allow SIGPIPE in scripts
 * Default dhcpcd.conf no longer sends the current hostname
 * Default dhcpcd.conf no longer sends a vendorclassid

Revision 1.1.1.1.2.3 / (download) - annotate - [select for diffs], Tue Apr 21 18:41:55 2020 UTC (3 years, 11 months ago) by martin
Branch: phil-wifi
Changes since 1.1.1.1.2.2: +7 -2 lines
Diff to previous 1.1.1.1.2.2 (colored) to branchpoint 1.1.1.1 (colored) next main 1.1.1.2 (colored) to selected 1.12 (colored)

Sync with HEAD

Revision 1.1.1.3 / (download) - annotate - [select for diffs] (vendor branch), Tue Apr 21 09:54:17 2020 UTC (3 years, 11 months ago) by roy
Branch: ROY
CVS Tags: dhcpcd-9_0_2
Changes since 1.1.1.2: +3 -1 lines
Diff to previous 1.1.1.2 (colored) to selected 1.12 (colored)

Update to dhcpcd-9.0.2 with the following changes:
 * Control sockets are not opened in test mode
 * privsep: no longer aborts if protocol not available
 * inet6: Don't regen temporary addresses without a state
 * inet6: Reduce RA log spam
 * dhcp6: Don't log when things consitently fail
 * inet6: Add temporary directive to slaac option [1]
 * Ensure current interface flags persist when setting a flag
 * DHCP via BPF is now aligned correctly
 * CMSG buffers are now aligned correctly
 * hostnames are no longer clobbered when being forced and a RA is recieved

[1] dhcpcd no longer looks at any possible kernel settings when deciding to
manage IPv6 temporary addresses or not. You now instruct dhcpcd to do this
in dhcpcd.conf. Playing whack-a-mole with various kernel knobs wasn't fun
and some OS's have or are removing RA and thus temporary address managemnt
from the kernel so said knobs are no longer there.

Revision 1.2 / (download) - annotate - [select for diffs], Wed Apr 15 15:55:24 2020 UTC (4 years ago) by roy
Branch: MAIN
CVS Tags: phil-wifi-20200421
Changes since 1.1: +7 -2 lines
Diff to previous 1.1 (colored) to selected 1.12 (colored)

privsep: Redirect to /dev/null unless test or quiet and not debug

Keeps the rtsol like behaviour the same.

Fixes PR bin/55170

Revision 1.1.1.2 / (download) - annotate - [select for diffs] (vendor branch), Mon Apr 13 15:42:21 2020 UTC (4 years ago) by roy
Branch: ROY
CVS Tags: dhcpcd-9_0_1
Changes since 1.1.1.1: +4 -1 lines
Diff to previous 1.1.1.1 (colored) to selected 1.12 (colored)

Update to dhcpcd-9.0.1 with the following changes:

* privsep: Improve error when we don't have permission to write lease
  PR bin/55135
* privsep: Fix hooks restarting other daemons

Revision 1.1.1.1.2.2 / (download) - annotate - [select for diffs], Wed Apr 8 14:04:03 2020 UTC (4 years ago) by martin
Branch: phil-wifi
Changes since 1.1.1.1.2.1: +736 -0 lines
Diff to previous 1.1.1.1.2.1 (colored) to branchpoint 1.1.1.1 (colored) to selected 1.12 (colored)

Merge changes from current as of 20200406

Revision 1.1.1.1.2.1, Thu Apr 2 12:38:55 2020 UTC (4 years ago) by martin
Branch: phil-wifi
Changes since 1.1.1.1: +0 -736 lines
FILE REMOVED

file privsep.c was added on branch phil-wifi on 2020-04-08 14:04:03 +0000

Revision 1.1.1.1 / (download) - annotate - [select for diffs] (vendor branch), Thu Apr 2 12:38:55 2020 UTC (4 years ago) by roy
Branch: ROY
CVS Tags: phil-wifi-20200411, phil-wifi-20200406, dhcpcd-9_0_0
Branch point for: phil-wifi
Changes since 1.1: +0 -0 lines
Diff to previous 1.1 (colored) to selected 1.12 (colored)

Update to dhcpcd-9.0.0 with the following changes:

 * Decode interface complex interface names eth0.100:2 eth0i100:2.
   This allows us to ignore some virtual interfaces by default
 * ARP: Report L2 header address on conflict for more clarity
 * DHCP: Support jumbo frames (untested)
 * DHCP6: Clean up old lease on failure to confirm/rebind, etc
 * RA: Prefer older routers
 * INET6: Obscure prefixes are now calculated correctly

 * Privilege Separation
 * default hostname is now a blank string rather than localhost
 * Leases are now dumped over the control socket - you get RA's now as well.
 * Better support for many IPv6 routers
 * RTM_MISS filtering
 * RA: Deprecate stale addresses by setting pltime 0
 * DHCP6: Deprecate stale addresses by setting pltime 0

Revision 1.1 / (download) - annotate - [select for diffs], Thu Apr 2 12:38:55 2020 UTC (4 years ago) by roy
Branch: MAIN
Diff to selected 1.12 (colored)

Initial revision

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.




CVSweb <webmaster@jp.NetBSD.org>