From bc5245d94ceb6b716e309318184d9f95655ba9f3 Mon Sep 17 00:00:00 2001 From: Robert Watson Date: Sat, 19 Oct 2002 21:06:57 +0000 Subject: [PATCH] Add a placeholder for the execve_mac() system call, similar to SELinux's execve_secure() system call, which permits a process to pass in a label for a label change during exec. This permits SELinux to change the label for the resulting exec without a race following a manual label change on the process. Because this interface uses our general purpose MAC label abstraction, we call it execve_mac(), and wrap our port of SELinux's execve_secure() around it with appropriate sid mappings. Obtained from: TrustedBSD Project Sponsored by: DARPA, Network Associates Laboratories --- sys/amd64/ia32/syscalls.master | 1 + sys/compat/freebsd32/syscalls.master | 1 + sys/ia64/ia32/syscalls.master | 1 + sys/kern/syscalls.master | 1 + 4 files changed, 4 insertions(+) diff --git a/sys/amd64/ia32/syscalls.master b/sys/amd64/ia32/syscalls.master index c79cd716930..63cdd502ecb 100644 --- a/sys/amd64/ia32/syscalls.master +++ b/sys/amd64/ia32/syscalls.master @@ -585,3 +585,4 @@ 412 UNIMPL BSD extattr_set_link 413 UNIMPL BSD extattr_get_link 414 UNIMPL BSD extattr_delete_link +415 UNIMPL BSD __execve_mac diff --git a/sys/compat/freebsd32/syscalls.master b/sys/compat/freebsd32/syscalls.master index c79cd716930..63cdd502ecb 100644 --- a/sys/compat/freebsd32/syscalls.master +++ b/sys/compat/freebsd32/syscalls.master @@ -585,3 +585,4 @@ 412 UNIMPL BSD extattr_set_link 413 UNIMPL BSD extattr_get_link 414 UNIMPL BSD extattr_delete_link +415 UNIMPL BSD __execve_mac diff --git a/sys/ia64/ia32/syscalls.master b/sys/ia64/ia32/syscalls.master index c79cd716930..63cdd502ecb 100644 --- a/sys/ia64/ia32/syscalls.master +++ b/sys/ia64/ia32/syscalls.master @@ -585,3 +585,4 @@ 412 UNIMPL BSD extattr_set_link 413 UNIMPL BSD extattr_get_link 414 UNIMPL BSD extattr_delete_link +415 UNIMPL BSD __execve_mac diff --git a/sys/kern/syscalls.master b/sys/kern/syscalls.master index 190405c9e48..f1b5db6e03b 100644 --- a/sys/kern/syscalls.master +++ b/sys/kern/syscalls.master @@ -598,6 +598,7 @@ void *data, size_t nbytes); } 414 STD BSD { int extattr_delete_link(const char *path, \ int attrnamespace, const char *attrname); } +415 UNIMPL BSD __execve_mac ; Please copy any additions and changes to the following compatability tables: ; sys/ia64/ia32/syscalls.master (take a best guess) -- 2.45.0