Getting uid of connected user from daemon (possibly using kernel?)