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

Method remountWithSecurityFlags

platform/linux_platform.go:1167–1180  ·  view source on GitHub ↗
(mountPt string)

Source from the content-addressed store, hash-verified

1165}
1166
1167func (p linux) remountWithSecurityFlags(mountPt string) error {
1168 mounter := p.diskManager.GetMounter()
1169
1170 _, mounted, err := mounter.IsMountPoint(mountPt)
1171 if err != nil {
1172 return err
1173 }
1174
1175 if mounted {
1176 return mounter.RemountInPlace(mountPt, "noexec", "nodev", "nosuid")
1177 }
1178
1179 return nil
1180}
1181
1182func (p linux) SetupLogDir() error {
1183 logDir := "/var/log"

Callers 1

SetupSharedMemoryMethod · 0.95

Calls 3

GetMounterMethod · 0.65
IsMountPointMethod · 0.65
RemountInPlaceMethod · 0.65

Tested by

no test coverage detected