Lines Matching refs:sunaddr
94 static struct sockaddr_un sunaddr; variable
569 memset(&sunaddr, 0, sizeof(sunaddr)); in admin_init()
570 sunaddr.sun_family = AF_UNIX; in admin_init()
571 snprintf(sunaddr.sun_path, sizeof(sunaddr.sun_path), in admin_init()
581 unlink(sunaddr.sun_path); in admin_init()
582 if (bind(lcconf->sock_admin, (struct sockaddr *)&sunaddr, in admin_init()
583 sizeof(sunaddr)) != 0) { in admin_init()
586 sunaddr.sun_path, strerror(errno)); in admin_init()
591 if (chown(sunaddr.sun_path, adminsock_owner, adminsock_group) != 0) { in admin_init()
594 sunaddr.sun_path, adminsock_owner, in admin_init()
600 if (chmod(sunaddr.sun_path, adminsock_mode) != 0) { in admin_init()
603 sunaddr.sun_path, adminsock_mode, strerror(errno)); in admin_init()
611 sunaddr.sun_path, strerror(errno)); in admin_init()
616 "open %s as racoon management.\n", sunaddr.sun_path); in admin_init()