https://github.com/getlantern/elevated
package elevated supports exporting certain functions for execution with elevated privileges
https://github.com/getlantern/elevated
Last synced: 8 months ago
JSON representation
package elevated supports exporting certain functions for execution with elevated privileges
- Host: GitHub
- URL: https://github.com/getlantern/elevated
- Owner: getlantern
- Created: 2015-02-02T21:42:43.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2016-08-21T01:30:09.000Z (almost 10 years ago)
- Last Synced: 2024-04-15T03:25:41.120Z (about 2 years ago)
- Language: Go
- Homepage:
- Size: 7.38 MB
- Stars: 3
- Watchers: 16
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
[Godoc](http://godoc.org/github.com/getlantern/elevated)
elevated currently only works on OS X and Windows.
See the demo programs for an example of using elevated.
The OS X demo program uses the networksetup utility to adjust the MTU on
interface en0, which requires root permissions.
The Windows demo program (which only works on Windows 7+ right now) uses the
netsh utility to update firewall settings. The setting that we're changing
requires admin privileges.
Both demo programs try their respective operations with and without elevation to
demonstrate that only the one with elevation works.