On Tue, Mar 15, 2016 at 04:38:36PM +0800, Fei Jie wrote: > + int rc = syscall(__NR_syslog, SYSLOG_ACTION_READ, buf, -1); > + printf("syslog(SYSLOG_ACTION_READ, %p, -1) = %d %s (%m)\n", > + buf, rc, > + errno == ENOSYS ? "ENOSYS" : "EINVAL");
SYSLOG_ACTION_READ will return EPERM unless the process is privileged enough. -- ldv
pgpqhDLwfOVW3.pgp
Description: PGP signature
------------------------------------------------------------------------------ Transform Data into Opportunity. Accelerate data analysis in your applications with Intel Data Analytics Acceleration Library. Click to learn more. http://pubads.g.doubleclick.net/gampad/clk?id=278785231&iu=/4140
_______________________________________________ Strace-devel mailing list Strace-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/strace-devel