Skip to main content

is_unix_socket_user_check 0.2.1 copy "is_unix_socket_user_check: ^0.2.1" to clipboard
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.toString turns line breaks in the exception's text into spaces, so every verdict prints on one line, as the README says.

0.2.0 #

  • SocketUserCheck.decide returns a sealed SocketUserVerdict: Allowed, NotAllowed(seen, allowed) or Unread(why), so a caller can log why a peer was refused.
  • SocketUserReader.read returns UserRead(user) or Unread(why).
  • WhyUnread names each way a read falls short: UnsupportedKernel, ReadFailed (with the SocketException and its OSError), ShortAnswer, OverflowUid, UnknownXucredVersion and RefusedUid.
  • SocketUserCheck.allows and SocketUserReader.userOf are deprecated in favour of decide and read. Their answers are unchanged.

0.1.0 #

  • First release: UserId, SocketUserReader and SocketUserCheck.
0
likes
140
points
236
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

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 allow list.

Repository (GitHub)
View/report issues

License

Apache-2.0 (license)

More

Packages that depend on is_unix_socket_user_check