From 35a1ff8d39f242415bde0e457c829a64a3b0ddf1 Mon Sep 17 00:00:00 2001 From: "Zyad A. Ali" Date: Fri, 11 Jun 2021 16:37:23 +0200 Subject: Create ipc.Registry. Create ipc.Registry to hold fields, and define functionality common to all SysV registries, and have registries use it. --- pkg/sentry/syscalls/linux/sys_sem.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pkg/sentry/syscalls/linux') diff --git a/pkg/sentry/syscalls/linux/sys_sem.go b/pkg/sentry/syscalls/linux/sys_sem.go index 4755bef18..f61cc466c 100644 --- a/pkg/sentry/syscalls/linux/sys_sem.go +++ b/pkg/sentry/syscalls/linux/sys_sem.go @@ -240,7 +240,7 @@ func Semctl(t *kernel.Task, args arch.SyscallArguments) (uintptr, *kernel.Syscal func remove(t *kernel.Task, id ipc.ID) error { r := t.IPCNamespace().SemaphoreRegistry() creds := auth.CredentialsFromContext(t) - return r.RemoveID(id, creds) + return r.Remove(id, creds) } func ipcSet(t *kernel.Task, id ipc.ID, uid auth.UID, gid auth.GID, perms fs.FilePermissions) error { -- cgit v1.2.3