@@ -56,7 +56,7 @@ Once you have an instance of the factory created we can create a configuration
56
56
struct describing how the container is to be created. A sample would look similar to this:
57
57
58
58
``` go
59
- defaultMountFlags := syscall .MS_NOEXEC | syscall .MS_NOSUID | syscall .MS_NODEV
59
+ defaultMountFlags := unix .MS_NOEXEC | unix .MS_NOSUID | unix .MS_NODEV
60
60
config := &configs.Config {
61
61
Rootfs : " /your/path/to/rootfs" ,
62
62
Capabilities : []string {
@@ -112,14 +112,14 @@ config := &configs.Config{
112
112
Source: " tmpfs" ,
113
113
Destination: " /dev" ,
114
114
Device: " tmpfs" ,
115
- Flags: syscall .MS_NOSUID | syscall .MS_STRICTATIME ,
115
+ Flags: unix .MS_NOSUID | unix .MS_STRICTATIME ,
116
116
Data: " mode=755" ,
117
117
},
118
118
{
119
119
Source: " devpts" ,
120
120
Destination: " /dev/pts" ,
121
121
Device: " devpts" ,
122
- Flags: syscall .MS_NOSUID | syscall .MS_NOEXEC ,
122
+ Flags: unix .MS_NOSUID | unix .MS_NOEXEC ,
123
123
Data: " newinstance,ptmxmode=0666,mode=0620,gid=5" ,
124
124
},
125
125
{
@@ -139,7 +139,7 @@ config := &configs.Config{
139
139
Source: " sysfs" ,
140
140
Destination: " /sys" ,
141
141
Device: " sysfs" ,
142
- Flags: defaultMountFlags | syscall .MS_RDONLY ,
142
+ Flags: defaultMountFlags | unix .MS_RDONLY ,
143
143
},
144
144
},
145
145
UidMappings : []configs.IDMap {
@@ -165,7 +165,7 @@ config := &configs.Config{
165
165
},
166
166
Rlimits : []configs.Rlimit {
167
167
{
168
- Type: syscall .RLIMIT_NOFILE ,
168
+ Type: unix .RLIMIT_NOFILE ,
169
169
Hard: uint64 (1025 ),
170
170
Soft: uint64 (1025 ),
171
171
},
0 commit comments