klogd: Error return from sys_sycall
Tito
farmatito at tiscali.it
Mon Jun 12 05:16:31 PDT 2006
On Monday 12 June 2006 10:43, Rushi Lala wrote:
> kernel: klogd: Error return from sys_sycall: 1 - Operation not permitted.
> kernel: klogd started: BusyBox v1.1.0 (2006.02.01-13:34+0000)
>
>
> klogctl is returning an error , looks more like kernel related issue then
> busybox, but has any one come across this before ?? Any idea how can i fix
> it. It has always worked with pre1 version of busybox.
>
> while (1) {
> /* Use kernel syscalls */
> memset(log_buffer, '\0', sizeof(log_buffer));
> n = klogctl(2, log_buffer, sizeof(log_buffer));
> if (n < 0) {
> if (errno == EINTR)
> continue;
> syslog(LOG_ERR, "klogd: Error return from sys_sycall: %d -
> %m.\n", errno);
> exit(EXIT_FAILURE);
> }
>
>
> Cheers
>
> Rushi
>
ERRORS
EINVAL Bad parameters.
EPERM An attempt was made to change console_loglevel or clear the ker‐
nel message ring buffer by a process without root permissions.
ERESTARTSYS
System call was interrupted by a signal; nothing was read.
(This can be seen only during a trace.)
Maybe EPERM?!
Ciao,
Tito
More information about the busybox
mailing list