mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 19:56:01 +00:00
Should use hostProcMountinfoPath
constant in nsenter_mount.go.
This commit is contained in:
parent
c0f91a8a1e
commit
28b6f34107
@ -333,7 +333,7 @@ func (mounter *NsenterMounter) GetMountRefs(pathname string) ([]string, error) {
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
return searchMountPoints(hostpath, procMountInfoPath)
|
return searchMountPoints(hostpath, hostProcMountinfoPath)
|
||||||
}
|
}
|
||||||
|
|
||||||
func (mounter *NsenterMounter) GetFSGroup(pathname string) (int64, error) {
|
func (mounter *NsenterMounter) GetFSGroup(pathname string) (int64, error) {
|
||||||
@ -345,5 +345,5 @@ func (mounter *NsenterMounter) GetFSGroup(pathname string) (int64, error) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (mounter *NsenterMounter) GetSELinuxSupport(pathname string) (bool, error) {
|
func (mounter *NsenterMounter) GetSELinuxSupport(pathname string) (bool, error) {
|
||||||
return getSELinuxSupport(pathname, procMountInfoPath)
|
return getSELinuxSupport(pathname, hostProcMountsPath)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user