1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-18 10:35:55 +00:00
freebsd/sys/security/lomac
Seigo Tanimura 243917fe3b Lock down a socket, milestone 1.
o Add a mutex (sb_mtx) to struct sockbuf. This protects the data in a
  socket buffer. The mutex in the receive buffer also protects the data
  in struct socket.

o Determine the lock strategy for each members in struct socket.

o Lock down the following members:

  - so_count
  - so_options
  - so_linger
  - so_state

o Remove *_locked() socket APIs.  Make the following socket APIs
  touching the members above now require a locked socket:

 - sodisconnect()
 - soisconnected()
 - soisconnecting()
 - soisdisconnected()
 - soisdisconnecting()
 - sofree()
 - soref()
 - sorele()
 - sorwakeup()
 - sotryfree()
 - sowakeup()
 - sowwakeup()

Reviewed by:	alfred
2002-05-20 05:41:09 +00:00
..
kernel_interface.c Lock down a socket, milestone 1. 2002-05-20 05:41:09 +00:00
kernel_interface.h
kernel_lkm.c Change p_can{debug,see,sched,signal}()'s first argument to be a thread 2002-05-19 00:14:50 +00:00
kernel_log.c Use the proc lock to protect p_ucred while we read a few items from it. 2002-04-11 21:17:45 +00:00
kernel_log.h
kernel_mediate.c
kernel_mediate.h
kernel_mmap.c
kernel_monitor.c
kernel_monitor.h
kernel_pipe.c
kernel_pipe.h
kernel_plm.c
kernel_plm.h
kernel_socket.c Lock down a socket, milestone 1. 2002-05-20 05:41:09 +00:00
kernel_socket.h
kernel_util.c More s/file system/filesystem/g 2002-05-16 21:28:32 +00:00
kernel_util.h
lomac.h
lomacfs_subr.c
lomacfs_vfsops.c
lomacfs_vnops.c More s/file system/filesystem/g 2002-05-16 21:28:32 +00:00
lomacfs.h
lomacio.h
policy_plm.h
syscall_gate.c
syscall_gate.h