aboutsummaryrefslogtreecommitdiffstats
path: root/sys/linux/init.go
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2020-05-04 09:21:34 +0200
committerDmitry Vyukov <dvyukov@google.com>2020-05-04 20:56:20 +0200
commit71db69869e82cce9af00f8660c6e867936b19212 (patch)
treecf59b7d7d6173ea870e9197df2b9b0b8be1dfa26 /sys/linux/init.go
parenta4d38b39a8e23244bea7a53e9d7a759474f85dae (diff)
sys/linux: mark some ioctls as disabled
Mark ioctls we disable in init.go as disabled. Update #477 Update #502
Diffstat (limited to 'sys/linux/init.go')
-rw-r--r--sys/linux/init.go4
1 files changed, 1 insertions, 3 deletions
diff --git a/sys/linux/init.go b/sys/linux/init.go
index 65faad183..f4f000cfa 100644
--- a/sys/linux/init.go
+++ b/sys/linux/init.go
@@ -24,7 +24,6 @@ func InitTarget(target *prog.Target) {
FIFREEZE: target.GetConst("FIFREEZE"),
FITHAW: target.GetConst("FITHAW"),
SNAPSHOT_FREEZE: target.GetConst("SNAPSHOT_FREEZE"),
- SNAPSHOT_UNFREEZE: target.GetConst("SNAPSHOT_UNFREEZE"),
EXT4_IOC_SHUTDOWN: target.GetConst("EXT4_IOC_SHUTDOWN"),
EXT4_IOC_RESIZE_FS: target.GetConst("EXT4_IOC_RESIZE_FS"),
EXT4_IOC_MIGRATE: target.GetConst("EXT4_IOC_MIGRATE"),
@@ -132,7 +131,6 @@ type arch struct {
FIFREEZE uint64
FITHAW uint64
SNAPSHOT_FREEZE uint64
- SNAPSHOT_UNFREEZE uint64
EXT4_IOC_SHUTDOWN uint64
EXT4_IOC_RESIZE_FS uint64
EXT4_IOC_MIGRATE uint64
@@ -252,7 +250,7 @@ func (arch *arch) neutralizeIoctl(c *prog.Call) {
cmd.Val = arch.FITHAW
case arch.SNAPSHOT_FREEZE:
// SNAPSHOT_FREEZE freezes all processes and leaves the machine dead.
- cmd.Val = arch.SNAPSHOT_UNFREEZE
+ cmd.Val = arch.FITHAW
case arch.EXT4_IOC_SHUTDOWN:
// EXT4_IOC_SHUTDOWN on root fs effectively brings the machine down in weird ways.
// Fortunately, the value does not conflict with any other ioctl commands for now.