Bug 204462

Summary: [patch] net/dhcp6: Set socket CLOEXEC and execute script later
Product: Ports & Packages Reporter: Renato Botelho <garga>
Component: Individual Port(s)Assignee: Hiroki Sato <hrs>
Status: Closed FIXED    
Severity: Affects Some People Keywords: patch
Priority: --- Flags: bugzilla: maintainer-feedback? (hrs)
Version: Latest   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
pfSense fixes none

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