(mountPt string)
| 1165 | } |
| 1166 | |
| 1167 | func (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 | |
| 1182 | func (p linux) SetupLogDir() error { |
| 1183 | logDir := "/var/log" |
no test coverage detected