aboutsummaryrefslogtreecommitdiffstats
path: root/sys/linux/gen/amd64.go
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2018-09-13 12:00:58 +0200
committerDmitry Vyukov <dvyukov@google.com>2018-09-13 12:02:45 +0200
commit61ed43a86a3721708aeeee72b23bfa1eacd921b2 (patch)
tree1eed00dae3f4e2881650f53f34362b33960a0caf /sys/linux/gen/amd64.go
parent0e29942f77715486995d996f80f82742812d75a2 (diff)
sys/linux: prohibit EXT4_IOC_SHUTDOWN
EXT4_IOC_SHUTDOWN EXT4_IOC_SHUTDOWN on root fs effectively brings the machine down in weird ways.
Diffstat (limited to 'sys/linux/gen/amd64.go')
-rw-r--r--sys/linux/gen/amd64.go12
1 files changed, 2 insertions, 10 deletions
diff --git a/sys/linux/gen/amd64.go b/sys/linux/gen/amd64.go
index 8685fb837..e7b43a890 100644
--- a/sys/linux/gen/amd64.go
+++ b/sys/linux/gen/amd64.go
@@ -26031,11 +26031,6 @@ var syscalls_amd64 = []*Syscall{
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 1074292226},
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, Type: &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "ext4_inode_flags", TypeSize: 8}}, Vals: []uint64{1, 2, 4, 8, 16, 32, 64, 128, 536870912, 4194304, 16384, 32768, 65536, 131072, 524288}, BitMask: true}},
}},
- {NR: 16, Name: "ioctl$EXT4_IOC_SHUTDOWN", CallName: "ioctl", Args: []Type{
- &ResourceType{TypeCommon: TypeCommon{TypeName: "fd", FldName: "fd", TypeSize: 4}},
- &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 2147768445},
- &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, Type: &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "ext4_shutdown_flags", TypeSize: 8}}, Vals: []uint64{0, 1, 2}, BitMask: true}},
- }},
{NR: 16, Name: "ioctl$EXT4_IOC_SWAP_BOOT", CallName: "ioctl", Args: []Type{
&ResourceType{TypeCommon: TypeCommon{TypeName: "fd", FldName: "fd", TypeSize: 4}},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 26129},
@@ -29401,7 +29396,7 @@ var syscalls_amd64 = []*Syscall{
}},
{NR: 16, Name: "ioctl$void", CallName: "ioctl", Args: []Type{
&ResourceType{TypeCommon: TypeCommon{TypeName: "fd", FldName: "fd", TypeSize: 4}},
- &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "ioctl_void", FldName: "cmd", TypeSize: 8}}, Vals: []uint64{21585, 21584, 3221510263, 3221510264}},
+ &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "ioctl_void", FldName: "cmd", TypeSize: 8}}, Vals: []uint64{21585, 21584, 3221510264}},
}},
{NR: 173, Name: "ioperm", CallName: "ioperm", Args: []Type{
&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "from", TypeSize: 8}}},
@@ -35943,9 +35938,6 @@ var consts_amd64 = []ConstValue{
{Name: "EXT4_DIRSYNC_FL", Value: 65536},
{Name: "EXT4_EOFBLOCKS_FL", Value: 4194304},
{Name: "EXT4_EXTENTS_FL", Value: 524288},
- {Name: "EXT4_GOING_FLAGS_DEFAULT"},
- {Name: "EXT4_GOING_FLAGS_LOGFLUSH", Value: 1},
- {Name: "EXT4_GOING_FLAGS_NOLOGFLUSH", Value: 2},
{Name: "EXT4_IMMUTABLE_FL", Value: 16},
{Name: "EXT4_IOC_ALLOC_DA_BLKS", Value: 26124},
{Name: "EXT4_IOC_GROUP_ADD", Value: 1076389384},
@@ -41455,4 +41447,4 @@ var consts_amd64 = []ConstValue{
{Name: "bpf_insn_load_imm_dw", Value: 24},
}
-const revision_amd64 = "11225337e750e35b0a5e061fc783471b4dea4779"
+const revision_amd64 = "6bdfbb95f32c22baa7aa2c0ecbcc8a46c076d4b8"