mirror of
https://github.com/yggdrasil-network/water.git
synced 2025-05-19 16:35:10 +03:00
linux: Adds Persistent Devs + Setting Owner/Group
This commit is contained in:
parent
70591d2499
commit
ad8a32dbd3
2 changed files with 75 additions and 4 deletions
|
@ -10,8 +10,22 @@ type PlatformSpecificParams struct {
|
|||
// field, i.e. an empty string, indicates that the default name should be
|
||||
// used.
|
||||
Name string
|
||||
|
||||
// Enable or disable persistence mode for the interface device.
|
||||
Persist bool
|
||||
|
||||
// ID of the user which will be granted ownership of the device.
|
||||
// The default value of -1 specifies that any user may use the device.
|
||||
Owner int
|
||||
|
||||
// ID of the group which will be granted access to the device.
|
||||
// The default value of -1 specifies that any group may use the device.
|
||||
Group int
|
||||
}
|
||||
|
||||
func defaultPlatformSpecificParams() PlatformSpecificParams {
|
||||
return PlatformSpecificParams{}
|
||||
return PlatformSpecificParams{
|
||||
Owner: -1,
|
||||
Group: -1,
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue