superuser 4.1.3
superuser: ^4.1.3 copied to clipboard
Detect, verify user who execute Dart CLI or Flutter program has superuser role and running with superuser permission with replicated UNIX identification commands.
4.1.3 #
- Bump UNIX and Windows plugins to latest patched version
- Expand version constraint range of
hookspackage due to new major release - Remove
native_toolchain_cmakepackage
- Expand version constraint range of
- Simplify dynamic library name to:
superuser_plugin.dll(Windows)superuser_plugin.dylib(macOS)libsuperuser_plugin.so(Linux)
4.1.2 #
- Limit condition of throwing
UnsupportedErrorif attempting to load defaultSuperuserPlatformin unsupported OS. - Indicate
lldmust be installed in Linux environment. - Change description in
pubspec.yaml.
4.1.1 #
- Fix wrongfully assume
sudoas sudoer group for all Linux.sudogroup is for Debian-based only, other distros useswheelinstead.
- Update
README.mdwith emphasise Dart CLI support. - ARM64 demo app shipped in Windows and Linux.
4.1.0 #
- Ditch instance construction guarding into
interfacemodule - Fix incorrect year range of license
- Uses group label detection to filter eligable groups in Windows platform
- Apply new line format with correction in
README.md
4.0.0 #
- Dark hook FFI implementation
- Minmum Dart SDK becomes
^3.10.0 - Cease Flutter dependencies
- Minmum Dart SDK becomes
- New
SuperuserProcessErrorstructure with enhanced readability. - New string wrapper:
OSString- Compare string depending on applied staregy in the platform.
- New collection:
OSStringSet
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 SDK constraint to
^3.8.0 - Windows
- Adapt UTF-16 for parsing string in Windows plugin rather than converting to UTF-8.
- Cease case insensitivity group set implementation.
- Unix
- Add few groups name for detecting superuser groups in other Unix platform.
- Fix name resolve error when fetching groups
superuser_demorejoined as workspace in repository.
2.1.1 #
- Case sensitivity in group set is depends on Operating System now (only Windows is case insensitive).
2.1.0 #
- Change Dart SDK to
^3.6.0for monorepo support. Superuser.groupsreturnsSetrather thanIterable.
2.0.0 #
- Add user's joined group in local machine scope.
2.0.0-m.1 #
isSuperusercan returns true without superuser permission activated.- Windows: Uses
NetUserGetLocalGroupsto find current user is a member ofAdministrators. - UNIX: Determine user joined default
sudocommand enabled groups (adminin macOS,sudoin Linux).
- Windows: Uses
- Expand UNIX's error code to unsigned 32-bits length with two 16-bits segmentes:
- Lower 16-bits reuses origin error numbers from libraries.
- Upper 16-bits denotes error categories that causing error thrown.
1.0.2 #
- Add assertion to prevent using mock interface in release mode.
1.0.1 #
- Resolve lower score due to violation of formatting
- Provide
SuperuserProcessErrorfor catching error when fetching from plugin.
1.0.0 #
- Add error handling
- Integrate instance managing feature into
SuperuserInstance - Improve effience of memory allocation in Windows platform.
- Remove
MockSuperuserrestriction and mark as constant.
0.1.1 #
- Exclude
SuperuserInterfaceinsuperuserlibrary. - Append
ffiin pubspec topic.
0.1.0 #
- New feature
- Detect user has superuser role
- Determine a Flutter program executed under superuser role
whoamicommand: Retrive current username who responsible of executing this program.