Bug 204462 - [patch] net/dhcp6: Set socket CLOEXEC and execute script later
Summary: [patch] net/dhcp6: Set socket CLOEXEC and execute script later
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: Hiroki Sato
URL:
Keywords: patch
Depends on:
Blocks:
 
Reported: 2015-11-11 09:49 UTC by Renato Botelho
Modified: 2015-12-02 11:01 UTC (History)
0 users

See Also:
bugzilla: maintainer-feedback? (hrs)


Attachments
pfSense fixes (3.38 KB, patch)
2015-11-11 09:49 UTC, Renato Botelho
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Renato Botelho freebsd_committer freebsd_triage 2015-11-11 09:49:25 UTC
Created attachment 163002 [details]
pfSense fixes

Import 2 changes from pfSense:

- Call script after address and prefix are all set in the interface
- Mark socket CLOEXEC to avoid leaking it around

Sponsored by: Rubicon Communications (Netgate)
Obtained from: pfSense
Comment 1 commit-hook freebsd_committer freebsd_triage 2015-11-12 03:46:37 UTC
A commit references this bug:

Author: hrs
Date: Thu Nov 12 03:46:06 UTC 2015
New revision: 401318
URL: https://svnweb.freebsd.org/changeset/ports/401318

Log:
  - Set FD_CLOEXEC on sockets to prevent leakage.

  - Call a configuration script after addresses and prefixes are set
    on an interface.

  - Do not call rc.d scripts during uninstallation.

  Submitted by:	garga
  PR:		204462
  Obtained from:	pfSense
  Sponsored by:	Rubicon Communications (Netgate)

Changes:
  head/net/dhcp6/Makefile
  head/net/dhcp6/files/patch-Makefile.in
  head/net/dhcp6/files/patch-dhcp6c.c
  head/net/dhcp6/pkg-plist