Lines Matching refs:name

51 static inline bool fpm_unix_is_id(const char* name)  in fpm_unix_is_id()  argument
53 return strlen(name) == strspn(name, "0123456789"); in fpm_unix_is_id()
56 static struct passwd *fpm_unix_get_passwd(struct fpm_worker_pool_s *wp, const char *name, int flags) in fpm_unix_get_passwd() argument
58 struct passwd *pwd = getpwnam(name); in fpm_unix_get_passwd()
60 zlog(flags, "[pool %s] cannot get uid for user '%s'", wp->config->name, name); in fpm_unix_get_passwd()
85 wp->config->name, in fpm_unix_check_listen_address()
94 static inline bool fpm_unix_check_passwd(struct fpm_worker_pool_s *wp, const char *name, int flags) in fpm_unix_check_passwd() argument
96 return !name || fpm_unix_is_id(name) || fpm_unix_get_passwd(wp, name, flags); in fpm_unix_check_passwd()
99 static struct group *fpm_unix_get_group(struct fpm_worker_pool_s *wp, const char *name, int flags) in fpm_unix_get_group() argument
101 struct group *group = getgrnam(name); in fpm_unix_get_group()
103 zlog(flags, "[pool %s] cannot get gid for group '%s'", wp->config->name, name); in fpm_unix_get_group()
110 static inline bool fpm_unix_check_group(struct fpm_worker_pool_s *wp, const char *name, int flags) in fpm_unix_check_group() argument
112 return !name || fpm_unix_is_id(name) || fpm_unix_get_group(wp, name, flags); in fpm_unix_check_group()
174 zlog(ZLOG_SYSERROR, "[pool %s] cannot allocate ACL", wp->config->name); in fpm_unix_resolve_socket_permissions()
188 zlog(ZLOG_DEBUG, "[pool %s] user '%s' have uid=%d", wp->config->name, p, pwd->pw_uid); in fpm_unix_resolve_socket_permissions()
201 zlog(ZLOG_SYSERROR, "[pool %s] cannot create ACL for user '%s'", wp->config->name, p); in fpm_unix_resolve_socket_permissions()
220 zlog(ZLOG_DEBUG, "[pool %s] group '%s' have gid=%d", wp->config->name, p, grp->gr_gid); in fpm_unix_resolve_socket_permissions()
233 zlog(ZLOG_SYSERROR, "[pool %s] cannot create ACL for group '%s'", wp->config->name, p); in fpm_unix_resolve_socket_permissions()
242 …zlog(ZLOG_WARNING, "[pool %s] ACL set, listen.owner = '%s' is ignored", wp->config->name, c->liste… in fpm_unix_resolve_socket_permissions()
245 …zlog(ZLOG_WARNING, "[pool %s] ACL set, listen.group = '%s' is ignored", wp->config->name, c->liste… in fpm_unix_resolve_socket_permissions()
299 …zlog(ZLOG_SYSERROR, "[pool %s] failed to read the ACL of the socket '%s'", wp->config->name, path); in fpm_unix_set_socket_permissions()
306 …G_SYSERROR, "[pool %s] failed to add entry to the ACL of the socket '%s'", wp->config->name, path); in fpm_unix_set_socket_permissions()
315 …zlog(ZLOG_SYSERROR, "[pool %s] failed to write the ACL of the socket '%s'", wp->config->name, path… in fpm_unix_set_socket_permissions()
319 zlog(ZLOG_DEBUG, "[pool %s] ACL of the socket '%s' is set", wp->config->name, path); in fpm_unix_set_socket_permissions()
330 …zlog(ZLOG_SYSERROR, "[pool %s] failed to chown() the socket '%s'", wp->config->name, wp->config->l… in fpm_unix_set_socket_permissions()
395 zlog(ZLOG_ERROR, "[pool %s] please specify user and group other than root", wp->config->name); in fpm_unix_conf_wp()
401 …NOTICE, "[pool %s] 'user' directive is ignored when FPM is not running as root", wp->config->name); in fpm_unix_conf_wp()
404 …OTICE, "[pool %s] 'group' directive is ignored when FPM is not running as root", wp->config->name); in fpm_unix_conf_wp()
407 …TICE, "[pool %s] 'chroot' directive is ignored when FPM is not running as root", wp->config->name); in fpm_unix_conf_wp()
410 …ol %s] 'process.priority' directive is ignored when FPM is not running as root", wp->config->name); in fpm_unix_conf_wp()
435 …mits or decrease rlimit_files. setrlimit(RLIMIT_NOFILE, %d)", wp->config->name, wp->config->rlimit… in fpm_unix_init_child()
445 … limits or decrease rlimit_core. setrlimit(RLIMIT_CORE, %d)", wp->config->name, wp->config->rlimit… in fpm_unix_init_child()
451 zlog(ZLOG_SYSERROR, "[pool %s] failed to chroot(%s)", wp->config->name, wp->config->chroot); in fpm_unix_init_child()
459 zlog(ZLOG_SYSERROR, "[pool %s] failed to chdir(%s)", wp->config->name, wp->config->chdir); in fpm_unix_init_child()
464 zlog(ZLOG_WARNING, "[pool %s] failed to chdir(/)", wp->config->name); in fpm_unix_init_child()
472 zlog(ZLOG_SYSERROR, "[pool %s] Unable to set priority for this new process", wp->config->name); in fpm_unix_init_child()
479 zlog(ZLOG_SYSERROR, "[pool %s] failed to setgid(%d)", wp->config->name, wp->set_gid); in fpm_unix_init_child()
485 …zlog(ZLOG_SYSERROR, "[pool %s] failed to initgroups(%s, %d)", wp->config->name, wp->config->user, … in fpm_unix_init_child()
489 zlog(ZLOG_SYSERROR, "[pool %s] failed to setuid(%d)", wp->config->name, wp->set_uid); in fpm_unix_init_child()
500 zlog(ZLOG_SYSERROR, "[pool %s] ptrace is denied", wp->config->name); in fpm_unix_init_child()
505 zlog(ZLOG_SYSERROR, "[pool %s] failed to prctl(PR_SET_DUMPABLE)", wp->config->name); in fpm_unix_init_child()
513 zlog(ZLOG_SYSERROR, "[pool %s] failed to procctl(PROC_TRACE_CTL)", wp->config->name); in fpm_unix_init_child()
519 zlog(ZLOG_SYSERROR, "[pool %s] failed to setpflags(__PROC_PROTECT)", wp->config->name); in fpm_unix_init_child()
532 …r confinement. Please check if \"/proc/*/attr/current\" is read and writeable.", wp->config->name); in fpm_unix_init_child()
539 …g(ZLOG_SYSERROR, "[pool %s] failed to allocate memory for apparmor hat change.", wp->config->name); in fpm_unix_init_child()
545 zlog(ZLOG_SYSERROR, "[pool %s] failed to construct apparmor confinement.", wp->config->name); in fpm_unix_init_child()
552 …s read and writeable and \"change_profile -> %s//*\" is allowed.", wp->config->name, new_con, con); in fpm_unix_init_child()