fix: secure profile persistence ownership
This commit is contained in:
@@ -23,11 +23,11 @@ func run(args []string, input io.Reader, output io.Writer) error {
|
||||
if len(args) != 0 {
|
||||
return fmt.Errorf("this build supports no command-line arguments")
|
||||
}
|
||||
path, err := profile.ConfigPath()
|
||||
configuration, err := profile.ResolveConfigurationForCurrentProcess()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
application, err := app.New(profile.NewFileStore(path))
|
||||
application, err := app.New(profile.NewOwnedFileStore(configuration.Path, configuration.Owner))
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user