Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Need of /dev/log, even if syslog is disabled #106

Open
theundefined opened this issue Oct 11, 2018 · 0 comments
Open

Need of /dev/log, even if syslog is disabled #106

theundefined opened this issue Oct 11, 2018 · 0 comments

Comments

@theundefined
Copy link

akubra try to open /dev/log, even if syslog is disabled:

root@37545add92a4:/home# cat /etc/akubra/akubra.config |grep syslog
  #  syslog: LOG_LOCAL1  # default: LOG_LOCAL1
  #  syslog: LOG_LOCAL2  # default: LOG_LOCAL2
  #  syslog: LOG_LOCAL3  # default: LOG_LOCAL3
root@37545add92a4:/home# /usr/local/bin/akubra -c /etc/akubra/akubra.config                    
2018/10/11 13:48:24 Akubra (0.1.1d-dev version)
2018/10/11 13:48:24 Improperly configured Unix syslog delivery error

end of strace:

[pid   276] socket(AF_UNIX, SOCK_DGRAM|SOCK_CLOEXEC|SOCK_NONBLOCK, 0) = 5
[pid   276] setsockopt(5, SOL_SOCKET, SO_BROADCAST, [1], 4) = 0
[pid   276] connect(5, {sa_family=AF_UNIX, sun_path="/dev/log"}, 11 <unfinished ...>
[pid   277] <... nanosleep resumed> NULL) = 0
[pid   276] <... connect resumed> )     = -1 ENOENT (No such file or directory)
[pid   277] nanosleep({tv_sec=0, tv_nsec=20000},  <unfinished ...>
[pid   276] close(5)                    = 0
[pid   276] socket(AF_UNIX, SOCK_DGRAM|SOCK_CLOEXEC|SOCK_NONBLOCK, 0) = 5
[pid   276] setsockopt(5, SOL_SOCKET, SO_BROADCAST, [1], 4) = 0
[pid   277] <... nanosleep resumed> NULL) = 0
[pid   277] nanosleep({tv_sec=0, tv_nsec=20000},  <unfinished ...>
[pid   276] connect(5, {sa_family=AF_UNIX, sun_path="/var/run/syslog"}, 18) = -1 ENOENT (No such file or directory)
[pid   276] close(5)                    = 0
[pid   277] <... nanosleep resumed> NULL) = 0
[pid   276] socket(AF_UNIX, SOCK_DGRAM|SOCK_CLOEXEC|SOCK_NONBLOCK, 0 <unfinished ...>
[pid   277] nanosleep({tv_sec=0, tv_nsec=20000},  <unfinished ...>
[pid   276] <... socket resumed> )      = 5
[pid   276] setsockopt(5, SOL_SOCKET, SO_BROADCAST, [1], 4) = 0
[pid   277] <... nanosleep resumed> NULL) = 0
[pid   276] connect(5, {sa_family=AF_UNIX, sun_path="/var/run/log"}, 15) = -1 ENOENT (No such file or directory)
[pid   277] nanosleep({tv_sec=0, tv_nsec=20000},  <unfinished ...>
[pid   276] close(5)                    = 0
[pid   276] socket(AF_UNIX, SOCK_STREAM|SOCK_CLOEXEC|SOCK_NONBLOCK, 0 <unfinished ...>
[pid   277] <... nanosleep resumed> NULL) = 0
[pid   277] nanosleep({tv_sec=0, tv_nsec=20000},  <unfinished ...>
[pid   276] <... socket resumed> )      = 5
[pid   276] setsockopt(5, SOL_SOCKET, SO_BROADCAST, [1], 4) = 0
[pid   276] connect(5, {sa_family=AF_UNIX, sun_path="/dev/log"}, 11 <unfinished ...>
[pid   277] <... nanosleep resumed> NULL) = 0
[pid   276] <... connect resumed> )     = -1 ENOENT (No such file or directory)
[pid   277] nanosleep({tv_sec=0, tv_nsec=20000},  <unfinished ...>
[pid   276] close(5)                    = 0
[pid   276] socket(AF_UNIX, SOCK_STREAM|SOCK_CLOEXEC|SOCK_NONBLOCK, 0 <unfinished ...>
[pid   277] <... nanosleep resumed> NULL) = 0
[pid   276] <... socket resumed> )      = 5
[pid   276] setsockopt(5, SOL_SOCKET, SO_BROADCAST, [1], 4 <unfinished ...>
[pid   277] nanosleep({tv_sec=0, tv_nsec=20000},  <unfinished ...>
[pid   276] <... setsockopt resumed> )  = 0
[pid   276] connect(5, {sa_family=AF_UNIX, sun_path="/var/run/syslog"}, 18) = -1 ENOENT (No such file or directory)
[pid   276] close(5)                    = 0
[pid   277] <... nanosleep resumed> NULL) = 0
[pid   276] socket(AF_UNIX, SOCK_STREAM|SOCK_CLOEXEC|SOCK_NONBLOCK, 0 <unfinished ...>
[pid   277] nanosleep({tv_sec=0, tv_nsec=20000},  <unfinished ...>
[pid   276] <... socket resumed> )      = 5
[pid   276] setsockopt(5, SOL_SOCKET, SO_BROADCAST, [1], 4 <unfinished ...>
[pid   277] <... nanosleep resumed> NULL) = 0
[pid   276] <... setsockopt resumed> )  = 0
[pid   277] nanosleep({tv_sec=0, tv_nsec=20000},  <unfinished ...>
[pid   276] connect(5, {sa_family=AF_UNIX, sun_path="/var/run/log"}, 15) = -1 ENOENT (No such file or directory)
[pid   276] close(5)                    = 0
[pid   277] <... nanosleep resumed> NULL) = 0
[pid   276] close(3 <unfinished ...>
[pid   277] nanosleep({tv_sec=0, tv_nsec=20000},  <unfinished ...>
[pid   276] <... close resumed> )       = 0
[pid   276] openat(AT_FDCWD, "/etc//localtime", O_RDONLY) = 3
[pid   276] read(3, "TZif2\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\1\0\0\0\1\0\0\0\0"..., 4096) = 127
[pid   277] <... nanosleep resumed> NULL) = 0
[pid   276] read(3,  <unfinished ...>
[pid   277] nanosleep({tv_sec=0, tv_nsec=20000},  <unfinished ...>
[pid   276] <... read resumed> "", 4096) = 0
[pid   276] close(3)                    = 0
[pid   276] write(2, "2018/10/11 13:48:41 Akubra (0.1."..., 482018/10/11 13:48:41 Akubra (0.1.1d-dev version)
) = 48
[pid   276] write(2, "2018/10/11 13:48:41 Improperly c"..., 69 <unfinished ...>
[pid   277] <... nanosleep resumed> NULL) = 0
[pid   277] nanosleep({tv_sec=0, tv_nsec=20000}, 2018/10/11 13:48:41 Improperly configured Unix syslog delivery error

It prevent running akubra in default docker environment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant