summaryrefslogtreecommitdiffstats
path: root/src/if.h
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2020-06-05 11:12:21 +0100
committerRoy Marples <roy@marples.name>2020-06-05 11:12:21 +0100
commit14af21e525d20018c73466f4c90afc3c4c2567fc (patch)
treece9774419ef10a2842ee505c360d13e54c645bf1 /src/if.h
parentd8abf7196114e205e2b6a6318111ea4b3f948668 (diff)
downloaddhcpcd-14af21e525d20018c73466f4c90afc3c4c2567fc.tar.xz
privsep: Remove pledges inet and dns from the master process
Achieved by adding IPC to ignore interfaces names based on the interface group. This means every process just pledges stdio for IPC which the exception of the master process which also pledges route so it can access the routing table.
Diffstat (limited to 'src/if.h')
-rw-r--r--src/if.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/if.h b/src/if.h
index e644afc8..8abf079a 100644
--- a/src/if.h
+++ b/src/if.h
@@ -182,6 +182,7 @@ int if_nametospec(const char *, struct if_spec *);
int if_conf(struct interface *);
int if_init(struct interface *);
int if_getssid(struct interface *);
+int if_ignoregroup(int, const char *);
bool if_ignore(struct dhcpcd_ctx *, const char *);
int if_vimaster(struct dhcpcd_ctx *ctx, const char *);
unsigned short if_vlanid(const struct interface *);