int sethostname(const char *buffer, size_t length);
This syscall sets the kernel hostname to the passed string. 0 is
returned on success and -1 on failure, with the following errno:
EFAULT: The passed buffer points to an invalid address.
EINVAL: The passed length is bigger than the kernel can handle or 0.
EACCES: MAC did not allow this.