Drop geesefs root privileges
This commit is contained in:
parent
bfba08742c
commit
2ad5d21714
1 changed files with 5 additions and 0 deletions
|
@ -93,6 +93,11 @@ func (geesefs *geesefsMounter) Mount(source, target, volumeID string) error {
|
||||||
if geesefs.region != "" {
|
if geesefs.region != "" {
|
||||||
args = append(args, "--region", geesefs.region)
|
args = append(args, "--region", geesefs.region)
|
||||||
}
|
}
|
||||||
|
args = append(
|
||||||
|
args,
|
||||||
|
"--setuid", "65534", // nobody. drop root privileges
|
||||||
|
"--setgid", "65534", // nogroup
|
||||||
|
)
|
||||||
useSystemd := true
|
useSystemd := true
|
||||||
for i := 0; i < len(geesefs.meta.MountOptions); i++ {
|
for i := 0; i < len(geesefs.meta.MountOptions); i++ {
|
||||||
if geesefs.meta.MountOptions[i] == "--no-systemd" {
|
if geesefs.meta.MountOptions[i] == "--no-systemd" {
|
||||||
|
|
Loading…
Reference in a new issue