/* Determine whether the current process is permitted to use a particular syslog function, returning 0 if permission is granted, -ve if not.  */
int cap_syslog(int type)
/* Determine whether the current process is permitted to use a particular syslog function, returning 0 if permission is granted, -ve if not.  */
int cap_syslog(int type)
{
	if ((type != 3 && type != 10) && !capable(CAP_SYS_ADMIN))
		return -EPERM;
	return 0;
}