superuser_plugin_unix 4.1.2 copy "superuser_plugin_unix: ^4.1.2" to clipboard
superuser_plugin_unix: ^4.1.2 copied to clipboard

PlatformLinuxmacOS
unlisted

Detect, verify user who execute Dart program has superuser role in UNIX (or POSIX) API

4.1.2 #

  • Detecting Debian distro should be handled by FFI itself rather than compile time.

4.1.1 #

  • Fix wrongfully assume sudo as sudoers across all Linux distros rather than Debian-based only
  • Default sudoer group is wheel instead

4.1.0 #

  • Fix wrong year range of license
  • Add missing message when throwing UnsupportedError

4.0.1 #

  • Fix groups returns mutable set that it suppose should be unmodifiable.

4.0.0 #

  • Dart hook based implementationsda

3.0.0+1 #

  • Fix Flutter and Dart SDK version unaligned problem.
  • Fix repository link unreachable problem as the default branch renamed.

3.0.0 #

  • Change Dart constraint to ^3.8.0
  • Add various UNIX system of superuser groups name.
  • Resolve name resolve error when fetching groups.

2.1.0 #

  • Change Dart SDK constraint to ^3.6.0 for applying monorepo support.
  • Remove unused plugin_platform_interface dependencies.

2.0.1 #

  • Fix compare group id overflow issue.

2.0.0+1 #

  • Update podspec information.

2.0.0 #

  • Implement current user associated groups.

2.0.0-m.2 #

  • Expand error code length to two 16-bits, which lower 16-bit denote value of errno and upper 16-bit uses for category.

2.0.0-m.1 #

  • Change definitions of isActivated and isSuperuser
    • isActivated reuses original isSuperuser code
    • isSuperuser will also determine a user which allow uses sudo command in corresponded group.

1.0.0 #

  • Add throw error if native code returns with error.

0.1.0 #

  • Define interface's result
    • isActivated is alias getter of isSuperuser since root is a definition of superuser in UNIX system.
0
likes
150
points
195
downloads

Documentation

API reference

Publisher

verified publisherrk0cc.xyz

Weekly Downloads

Detect, verify user who execute Dart program has superuser role in UNIX (or POSIX) API

Homepage
Repository (GitHub)
View/report issues

License

BSD-3-Clause (license)

Dependencies

code_assets, ffi, hooks, native_toolchain_c, native_toolchain_cmake, superuser_interfaces

More

Packages that depend on superuser_plugin_unix