is_unix_socket_user_check 0.2.1
is_unix_socket_user_check: ^0.2.1 copied to clipboard
Decides whether the user on the other end of a Unix-domain socket may connect, from the kernel's peer credentials. A peer whose user cannot be read is denied, and the overflow uid can never be in an a [...]
Changelog #
0.2.1 #
ReadFailed.toStringturns line breaks in the exception's text into spaces, so every verdict prints on one line, as the README says.
0.2.0 #
SocketUserCheck.decidereturns a sealedSocketUserVerdict:Allowed,NotAllowed(seen, allowed)orUnread(why), so a caller can log why a peer was refused.SocketUserReader.readreturnsUserRead(user)orUnread(why).WhyUnreadnames each way a read falls short:UnsupportedKernel,ReadFailed(with theSocketExceptionand itsOSError),ShortAnswer,OverflowUid,UnknownXucredVersionandRefusedUid.SocketUserCheck.allowsandSocketUserReader.userOfare deprecated in favour ofdecideandread. Their answers are unchanged.
0.1.0 #
- First release:
UserId,SocketUserReaderandSocketUserCheck.