diff --git a/.gitignore b/.gitignore index 7605460..0690116 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,4 @@ c.out coverage.html + +\.idea/ diff --git a/sys_linux_arm.go b/sys_linux_arm.go new file mode 100644 index 0000000..8202b66 --- /dev/null +++ b/sys_linux_arm.go @@ -0,0 +1,7 @@ +package keyctl + +const ( + syscall_keyctl uintptr = 9437495 + syscall_add_key uintptr = 9437493 + syscall_setfsgid uintptr = 9437323 +) \ No newline at end of file diff --git a/sys_linux_arm64.go b/sys_linux_arm64.go new file mode 100644 index 0000000..72c5520 --- /dev/null +++ b/sys_linux_arm64.go @@ -0,0 +1,7 @@ +package keyctl + +const ( + syscall_keyctl uintptr = 219 + syscall_add_key uintptr = 217 + syscall_setfsgid uintptr = 152 +) diff --git a/sys_linux_ppc.go b/sys_linux_ppc.go new file mode 100644 index 0000000..c9fb4a2 --- /dev/null +++ b/sys_linux_ppc.go @@ -0,0 +1,7 @@ +package keyctl + +const ( + syscall_keyctl uintptr = 271 + syscall_add_key uintptr = 269 + syscall_setfsgid uintptr = 139 +) \ No newline at end of file diff --git a/sys_linux_ppc64.go b/sys_linux_ppc64.go new file mode 100644 index 0000000..e173413 --- /dev/null +++ b/sys_linux_ppc64.go @@ -0,0 +1,7 @@ +package keyctl + +const ( + syscall_keyctl uintptr = 271 + syscall_add_key uintptr = 269 + syscall_setfsgid uintptr = 139 +) diff --git a/sys_linux_ppc64le.go b/sys_linux_ppc64le.go new file mode 100644 index 0000000..0e00304 --- /dev/null +++ b/sys_linux_ppc64le.go @@ -0,0 +1,7 @@ +package keyctl + +const ( + syscall_keyctl uintptr = 219 + syscall_add_key uintptr = 217 + syscall_setfsgid uintptr = 152 +) \ No newline at end of file