freebsd-skq/sys/security/lomac
tanimura 92d8381dd5 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 DBA update: pick the right DBA for various LOMAC copyrights. 2002-03-13 22:55:20 +00:00
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 DBA update: pick the right DBA for various LOMAC copyrights. 2002-03-13 22:55:20 +00:00
kernel_mediate.c DBA update: pick the right DBA for various LOMAC copyrights. 2002-03-13 22:55:20 +00:00
kernel_mediate.h DBA update: pick the right DBA for various LOMAC copyrights. 2002-03-13 22:55:20 +00:00
kernel_mmap.c Change the suser() API to take advantage of td_ucred as well as do a 2002-04-01 21:31:13 +00:00
kernel_monitor.c DBA update: pick the right DBA for various LOMAC copyrights. 2002-03-13 22:55:20 +00:00
kernel_monitor.h DBA update: pick the right DBA for various LOMAC copyrights. 2002-03-13 22:55:20 +00:00
kernel_pipe.c DBA update: pick the right DBA for various LOMAC copyrights. 2002-03-13 22:55:20 +00:00
kernel_pipe.h DBA update: pick the right DBA for various LOMAC copyrights. 2002-03-13 22:55:20 +00:00
kernel_plm.c DBA update: pick the right DBA for various LOMAC copyrights. 2002-03-13 22:55:20 +00:00
kernel_plm.h DBA update: pick the right DBA for various LOMAC copyrights. 2002-03-13 22:55:20 +00:00
kernel_socket.c Lock down a socket, milestone 1. 2002-05-20 05:41:09 +00:00
kernel_socket.h DBA update: pick the right DBA for various LOMAC copyrights. 2002-03-13 22:55:20 +00:00
kernel_util.c More s/file system/filesystem/g 2002-05-16 21:28:32 +00:00
kernel_util.h DBA update: pick the right DBA for various LOMAC copyrights. 2002-03-13 22:55:20 +00:00
lomac.h DBA update: pick the right DBA for various LOMAC copyrights. 2002-03-13 22:55:20 +00:00
lomacfs_subr.c DBA update: pick the right DBA for various LOMAC copyrights. 2002-03-13 22:55:20 +00:00
lomacfs_vfsops.c DBA update: pick the right DBA for various LOMAC copyrights. 2002-03-13 22:55:20 +00:00
lomacfs_vnops.c More s/file system/filesystem/g 2002-05-16 21:28:32 +00:00
lomacfs.h DBA update: pick the right DBA for various LOMAC copyrights. 2002-03-13 22:55:20 +00:00
lomacio.h DBA update: pick the right DBA for various LOMAC copyrights. 2002-03-13 22:55:20 +00:00
policy_plm.h DBA update: pick the right DBA for various LOMAC copyrights. 2002-03-13 22:55:20 +00:00
syscall_gate.c DBA update: pick the right DBA for various LOMAC copyrights. 2002-03-13 22:55:20 +00:00
syscall_gate.h DBA update: pick the right DBA for various LOMAC copyrights. 2002-03-13 22:55:20 +00:00