mirror of
https://github.com/openbsd/src.git
synced 2024-12-22 16:42:56 -08:00
Add PROTO_NORMAL() declarations for utrace (and ktrace) syscalls
so that the internal call can't be interposed over by the app. ok tb@ otto@ deraadt@
This commit is contained in:
parent
128c3c8c87
commit
4f585c7eec
26
lib/libc/hidden/sys/ktrace.h
Normal file
26
lib/libc/hidden/sys/ktrace.h
Normal file
@ -0,0 +1,26 @@
|
||||
/* $OpenBSD: ktrace.h,v 1.1 2023/05/18 16:07:12 guenther Exp $ */
|
||||
/*
|
||||
* Copyright (c) 2023 Philip Guenther <guenther@openbsd.org>
|
||||
*
|
||||
* Permission to use, copy, modify, and distribute this software for any
|
||||
* purpose with or without fee is hereby granted, provided that the above
|
||||
* copyright notice and this permission notice appear in all copies.
|
||||
*
|
||||
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
|
||||
* WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
|
||||
* MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
|
||||
* ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
||||
* WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
|
||||
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
|
||||
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||
*/
|
||||
|
||||
#ifndef _LIBC_SYS_KTRACE_H_
|
||||
#define _LIBC_SYS_KTRACE_H_
|
||||
|
||||
#include_next <sys/ktrace.h>
|
||||
|
||||
PROTO_NORMAL(ktrace);
|
||||
PROTO_NORMAL(utrace);
|
||||
|
||||
#endif /* !_LIBC_SYS_KTRACE_H_ */
|
Loading…
Reference in New Issue
Block a user