Update runc to v1.0.0-rc91
https://github.com/opencontainers/runc/releases/tag/v1.0.0-rc91 Signed-off-by: Davanum Srinivas <davanum@gmail.com>
This commit is contained in:
		
							
								
								
									
										22
									
								
								vendor/github.com/opencontainers/selinux/go-selinux/label/label.go
									
									
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										22
									
								
								vendor/github.com/opencontainers/selinux/go-selinux/label/label.go
									
									
									
										generated
									
									
										vendored
									
									
								
							@@ -1,8 +1,6 @@
 | 
			
		||||
package label
 | 
			
		||||
 | 
			
		||||
import (
 | 
			
		||||
	"fmt"
 | 
			
		||||
 | 
			
		||||
	"github.com/opencontainers/selinux/go-selinux"
 | 
			
		||||
)
 | 
			
		||||
 | 
			
		||||
@@ -48,7 +46,7 @@ var PidLabel = selinux.PidLabel
 | 
			
		||||
 | 
			
		||||
// Init initialises the labeling system
 | 
			
		||||
func Init() {
 | 
			
		||||
	_ = selinux.GetEnabled()
 | 
			
		||||
	selinux.GetEnabled()
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// ClearLabels will clear all reserved labels
 | 
			
		||||
@@ -77,21 +75,3 @@ func ReleaseLabel(label string) error {
 | 
			
		||||
// can be used to set duplicate labels on future container processes
 | 
			
		||||
// Deprecated: use selinux.DupSecOpt
 | 
			
		||||
var DupSecOpt = selinux.DupSecOpt
 | 
			
		||||
 | 
			
		||||
// FormatMountLabel returns a string to be used by the mount command.
 | 
			
		||||
// The format of this string will be used to alter the labeling of the mountpoint.
 | 
			
		||||
// The string returned is suitable to be used as the options field of the mount command.
 | 
			
		||||
// If you need to have additional mount point options, you can pass them in as
 | 
			
		||||
// the first parameter.  Second parameter is the label that you wish to apply
 | 
			
		||||
// to all content in the mount point.
 | 
			
		||||
func FormatMountLabel(src, mountLabel string) string {
 | 
			
		||||
	if mountLabel != "" {
 | 
			
		||||
		switch src {
 | 
			
		||||
		case "":
 | 
			
		||||
			src = fmt.Sprintf("context=%q", mountLabel)
 | 
			
		||||
		default:
 | 
			
		||||
			src = fmt.Sprintf("%s,context=%q", src, mountLabel)
 | 
			
		||||
		}
 | 
			
		||||
	}
 | 
			
		||||
	return src
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user