MCPcopy Create free account
hub / github.com/cloudfoundry/bosh-agent / SetupSharedMemory

Method SetupSharedMemory

platform/linux_platform.go:1156–1165  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1154}
1155
1156func (p linux) SetupSharedMemory() error {
1157 for _, mnt := range []string{"/dev/shm", "/run/shm"} {
1158 err := p.remountWithSecurityFlags(mnt)
1159 if err != nil {
1160 return err
1161 }
1162 }
1163
1164 return nil
1165}
1166
1167func (p linux) remountWithSecurityFlags(mountPt string) error {
1168 mounter := p.diskManager.GetMounter()

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected