diff options
author | Robert Watson <rwatson@FreeBSD.org> | 2004-10-22 12:12:40 +0000 |
---|---|---|
committer | Robert Watson <rwatson@FreeBSD.org> | 2004-10-22 12:12:40 +0000 |
commit | 857a600580685f08dc13e7ffc4f01745e8501049 (patch) | |
tree | e454de9c46eb1a6e60d2000e7b6ab0043a3fde5c /sys/kern/sysv_ipc.c | |
parent | 397b3428eb3698cc1b82caab2bd51a72da41022c (diff) | |
download | src-857a600580685f08dc13e7ffc4f01745e8501049.tar.gz src-857a600580685f08dc13e7ffc4f01745e8501049.zip |
Add an annotation to the comment for sysv_ipc.c to indicate that the
MAC Framework doesn't require checks in ipcperm() because checks
relating to System V IPC will be performed in individual IPC
implementations.
Notes
Notes:
svn path=/head/; revision=136778
Diffstat (limited to 'sys/kern/sysv_ipc.c')
-rw-r--r-- | sys/kern/sysv_ipc.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/sys/kern/sysv_ipc.c b/sys/kern/sysv_ipc.c index cc8531dcbab6..e8ea41d89cbf 100644 --- a/sys/kern/sysv_ipc.c +++ b/sys/kern/sysv_ipc.c @@ -67,9 +67,13 @@ shmexit(struct vmspace *vm) } /* - * Check for ipc permission + * Check for IPC permission. + * + * Note: The MAC Framework does not require any modifications to the + * ipcperm() function, as access control checks are performed throughout the + * implementation of each primitive. Those entry point calls complement the + * ipcperm() discertionary checks. */ - int ipcperm(td, perm, mode) struct thread *td; |