Place the ifchange socket in /var/state/ifchange within the chroot

jail and change configuration instructions as well.

Change default configuration instructions to specify setting root
of the chroot jail as owned by root.root.
This commit is contained in:
Nicholas J. Kain
2011-05-01 20:43:29 -04:00
parent b3f9115689
commit 59beb159d3
4 changed files with 23 additions and 17 deletions

View File

@@ -1,5 +1,5 @@
/* ifchange.c - functions to call the interface change daemon
* Time-stamp: <2011-03-31 03:44:58 nk>
* Time-stamp: <2011-05-01 19:04:06 njk>
*
* (c) 2004-2011 Nicholas J. Kain <njkain at gmail dot com>
*
@@ -143,7 +143,7 @@ static int open_ifch(void) {
int sockfd, ret;
struct sockaddr_un address = {
.sun_family = AF_UNIX,
.sun_path = "ifchange"
.sun_path = "/var/state/ifchange"
};
sockfd = socket(AF_UNIX, SOCK_STREAM, 0);