e8e1f37493e07922bcb8be22ab9e2fe76e861b05 |
|
19-Oct-2015 |
Samuel Tan <samueltan@google.com> |
dhcpcd-6.8.2: do not use switch_user() in Brillo builds Brillo builds can use minijail to change dhcpcd-6.8.2 uid and gid, so do not use switch_user() in these builds. BUG: 25083940 Change-Id: I175191142015298db1909ee660d2a67672a4508c TEST: dhcpcd-6.8.2 runs as expected during weaved setup in brillo build.
/external/dhcpcd-6.8.2/dhcpcd.c
|
e0b0b41fe04d8189ecea8045464b4870b7ce4e23 |
|
01-Oct-2015 |
Jorge Lucangeli Obes <jorgelo@google.com> |
dhcpcd-6.8.2: switch user after starting dhcpcd-6.8.2 Have dhcpcd-6.8.2 switch itself to the dhcp uid and gid after spawning. This assumes that dhcpcd-6.8.2 is started as root, which is current the case when shill spawns it. BUG: 24408645 TEST: dhcpcd-6.8.2 builds and is started successfully by shill. Change-Id: Ia14c31ddd7ac06cc19f0541ae3c7bf0f019447ce
/external/dhcpcd-6.8.2/dhcpcd.c
|
e942e091ac1efb0ee1916add2b12f64fdfd59476 |
|
14-Aug-2015 |
Samuel Tan <samueltan@google.com> |
[PATCH] Add DBus RPC support Cherry-picked from https://chromium.googlesource.com/chromiumos/overlays/chromiumos-overlay/+/ master/net-misc/dhcpcd/files/patches/dhcpcd-6.8.2-Add-DBus-RPC-support.patch. Porting the DBus support from version 5.1.4 and allow it to be configurable through the package configuration. Removed the unused and incomplete implemention for DBus method GetInterfaces and GetStatus. Also: update the default lease file name to tailor around the expectation of shill ("dhcpcd-%dev.lease). Also: update the config file to meet shill's expectation. BUG: 22956197 Change-Id: Ic729dffc6b14fed0b27ed0731c11ef609434e03c Review URL: http://codereview.chromium.org/2428004 Review URL: http://codereview.chromium.org/2851022 Review URL: http://codereview.chromium.org/2851023 Review URL: http://codereview.chromium.org/2865017 Review URL: http://codereview.chromium.org/2965010 Review URL: http://codereview.chromium.org/2957010 Review URL: http://codereview.chromium.org/3060016 Reviewed-on: http://gerrit.chromium.org/gerrit/2228 Reviewed-on: https://gerrit.chromium.org/gerrit/22597 Reviewed-on: https://gerrit.chromium.org/gerrit/36716 Reviewed-on: https://gerrit.chromium.org/gerrit/38183 Reviewed-on: https://gerrit.chromium.org/gerrit/59967 Reviewed-on: https://chromium-review.googlesource.com/178462 Reviewed-on: https://chromium-review.googlesource.com/185086 Reviewed-on: https://chromium-review.googlesource.com/195269 Reviewed-on: https://chromium-review.googlesource.com/259072
/external/dhcpcd-6.8.2/dhcpcd.c
|
23ff6edd8b4ec796a32d36a3eca8a8d8c785b565 |
|
14-Aug-2015 |
Samuel Tan <samueltan@google.com> |
[PATCH] Add RPC support for DHCPv4 client Cherry-picked from https://chromium.googlesource.com/chromiumos/overlays/chromiumos-overlay/+/ master/net-misc/dhcpcd/files/patches/dhcpcd-6.8.2-Add-RPC-support-for- DHCPv4-client.patch. Define a RPC interface for the daemon to interact with other applications (command execution and status update), and integrate it with the DHCPv4 client. Default to stub implementation for now until new RPC mechanism is implemented and enabled. Also add a new compiler flag "PASSIVE_MODE" which will be enabled when a RPC mechanism is enabled (e.g. DBus). This compiler flag will prevent the daemon from modifying system configurations (e.g. routing table, interface address). The idea is that when RPC is enabled, the daemon will provide configurations through RPC, and the remote application will be the one responsible for modifying system configurations. Integration with DHCPv6 client will be added in the future. BUG: 22956197 Change-Id: I7147d13e2cfab5c209c1ab862f33ef9d1b1dddaf Reviewed-on: https://chromium-review.googlesource.com/208835 Review URL: http://codereview.chromium.org/3061018
/external/dhcpcd-6.8.2/dhcpcd.c
|
a3595821594453ea89ef8e6790927694b0a1adf1 |
|
14-Aug-2015 |
Samuel Tan <samueltan@google.com> |
[PATCH] dhcpcd: Allow lease file to be set on command line Cherry-picked from https://chromium.googlesource.com/chromiumos/overlays/chromiumos-overlay/+/ master/net-misc/dhcpcd/files/patches/dhcpcd-6.8.2-Allow-lease-file-to-be- set-on-command-line.patch. Currently, dhcpcd names its lease files using the interface name as the unique part of the name. There are a couple reasons why this may not work well: firstly if "eth0" can have different MAC addresses (multiple USB-Ethernet dongles for example) leases for one interface aren't valid for the other. Secondly, when using a wireless interface, it would be convenient to hold multiple leases in parallel for each SSID one is connected to. This change adds a suffix to each interface argument (dhcpcd can accept multiple interface arguments) that specifies the identifier to use to save lease files with. By default, the behavior is identical. The second CL (https://gerrit.chromium.org/gerrit/22170) for fixing pid file formating bug originally introduced by this CL is not needed anymore since this bug doesn't exist/apply in the updated implementation. BUG: 22956197 Change-Id: Id04168daa965065ca50e60f55c4cdc80f751c9c3 Reviewed-on: https://gerrit.chromium.org/gerrit/21991 Reviewed-on: https://gerrit.chromium.org/gerrit/22170
/external/dhcpcd-6.8.2/dhcpcd.c
|
dd90b01b5502dc66e00ea6a4d00ebdf77ea1eddc |
|
14-Aug-2015 |
Samuel Tan <samueltan@google.com> |
[PATCH] Fix dhcpcd running as a regular user. Cherry-picked from https://chromium.googlesource.com/chromiumos/overlays/chromiumos-overlay/+/ master/net-misc/dhcpcd/files/patches/dhcpcd-6.8.2-Fix-dhcpcd-running-as-a- regular-user.patch. Update the lease file permission to 0600 to prevent other users from reading the lease file. Moreover, also soften the log message shown when not running as root, since by using Linux capabilities dhcpcd can run fine as a regular user. BUG: 22956197 Change-Id: Ib6f4ae4a892c6f5697cd03e79e3aa018b80712fe Reviewed-on: https://gerrit.chromium.org/gerrit/22644
/external/dhcpcd-6.8.2/dhcpcd.c
|
d7ed851d6fc26c5e7db96971dbe6b44342b97727 |
|
14-Aug-2015 |
Samuel Tan <samueltan@google.com> |
Import dhcpcd 6.8.2 This is a simple import of dhcpcd 6.8.2. SRC URI: http://roy.marples.name/downloads/dhcpcd/dhcpcd-6.8.2.tar.bz2 SHA1 Hash: 134a7c06bffc20789fedd5c0d259145d2dc4f058 (on the private dhcpcd repo 'trunk') BUG: 22956197 Change-Id: I701af1d1532725b1058640fcb7ddeab1c24a797e
/external/dhcpcd-6.8.2/dhcpcd.c
|